Questions tagged [pdf]

Portable Document Format (PDF) is a file format used to present documents in a manner independent of application software, hardware, and operating systems.

Filter by
Sorted by
Tagged with
1
vote
2answers
516 views

Header Image in Visualforce PDF not displayed

Image not getting displayed in PDF though I tried doing this.Can Anyone Please correct me what is wrong? I tried using it both in div.header and in @page.Both doesn't work fine? Visualforce: <...
7
votes
2answers
136 views

Generating quote PDF in the same context the quote is created (I found a dwarf)

When attempting to create a quote and then generate a PDF using the quote in the same context, I get one of the dwarf errors: Line: -1, Column: -1 ORA-20001: ORA-06512: at "HAPPY.CACCESS", line ...
1
vote
1answer
233 views

Error while opening PDF document created through Future method

I have a webservice class 'restExample' which first performs DML operations and then calls a future method 'createDocument()'. This method will create PDF document. One important point: Running user ...
1
vote
1answer
38 views

Render PDF Count Characters

So I am building a PDF in Visualforce and have came across an issue I am not sure how to handle. Is there a way to count the number of characters in the PDF? My requirement is if the text goes over ...
1
vote
1answer
2k views

How to save Renderas='pdf' in files folder

Is it possible to save a visualforce page with renderas='pdf' to the files folder so I can attacht the files to an email in lightning? Something like files f = new files( FolderId = UserInfo....
0
votes
1answer
226 views

Any Reason why someone can open PDF Attachment in Classic, but cannot open the same attachment in Lightning?

There is a PDF attachment on a custom object, this is opening fine in Classic​ but in Lightning​ it throws Insufficient Privileges error (in a classic window) as below when user tries to view it. ...
14
votes
1answer
545 views

Status of renderAs advanced_pdf

I just wondering if this promising feature has been evolved or is evolving to GA https://releasenotes.docs.salesforce.com/en-us/summer17/release-notes/rn_vf_advanced_pdf.htm Any info about current ...
0
votes
2answers
600 views

How to convert a visualforce page to PDF and preserve the visualforce styles at the same time?

I want to convert a Visualforce to Pdf and preserve the visualforce css styling the same time in the generated PDF. I am able to achieve the first part using the attribute renderas='pdf'. However the ...
1
vote
1answer
1k views

Why are my emails with .pdf attachments and sent via SF are converted to .html files?

Why my emails with attachments are converted from PDF to HTML? The email I've sent had only 1 attachments 1MB so why it is converted from PDF to HTML? Any suggestions please?
0
votes
1answer
29 views

Child Vf pages styling not respected when included in parent vf page

Here's the scenario: We have 1 parent Vf page rendered as advanced_pdf. We have multiple child VF pages conditionally rendered on opportunity record type, each one has their attribute renderedAs = ...
-1
votes
1answer
19 views

Avoid printing Pdfs [closed]

I get a Pdf from a WS, then I have to show it but need to hide the print option. What I get from the WS is an Uri and it is shown with an iframe or embed tag. Thanks in advance
2
votes
0answers
81 views

Render div on one page without overflowing

So I am using a Visualforce page and RenderAS PDF. I have split the page into 2 columns (as seen below). The issue I am having is when the text becomes to long, it goes onto the next page. I want to ...
1
vote
1answer
534 views

Create a pdf attachment when you are a guest user

Good day Everyone. I am trying to create a functionality that will create a pdf and make it as an attachment. It is working fine when you are an authenticated user however when I try to create a ...
1
vote
1answer
2k views

Create PDF from the created record and save it as attachment

Good day everyone. I am trying to create a pdf from a newly created record. I search in the internet and I find this link : https://jungleeforce.wordpress.com/2014/06/11/generate-a-pdf-and-attach-it-...
3
votes
1answer
500 views

Visualforce Page renderAs pdf styling does not apply

<!-- Begin inline CSS --> <style type="text/css" > .NMA-mobile-logo{ width:57%; } .NMA-other-logo{ width: 25%; } .headerWrap { border-radius: 15px; background: ...
2
votes
0answers
362 views

Visualforce render as pdf doesn't render arabic content

We are trying to render a VF page as pdf using visualforce render as pdf in arabic language. Except for the english text below none of the other text appear in the pdf especially the one in arabic in ...
0
votes
1answer
446 views

pdf generation with arabic content -not display arabic content

I try to generate a document visualforce page with both english and arabic content. in our browsers, we can see both languages, however the generated PDF only contains the english content, whereas ...
0
votes
1answer
834 views

Apex Page Language attribute - Dynamic Assignment - Strange Beahviour

Following scenario: A custom label has to be displayed in a rendered PDF (display in a VF Iframe). Now - it should display the specific custom label translation language found in a controller function ...
4
votes
1answer
596 views

css trouble using visualforce renderas PDF

This is probably more than you need . . . I can't make my content italics, bold or underline . . . <apex:page standardcontroller="test" renderAs="pdf" applyBodyTag="false" applyHtmlTag="false" ...
1
vote
1answer
604 views

How to attach pdf file represented as bytes(response from SOAP API) to an Opportunity?

I have e response from a SOAP API which looks like the following <GetReportResult> <Xml> <report xmlns=""/> </Xml> <Html/> <...
0
votes
1answer
101 views

Visualforce PDF with links

I want to render page as PDF, and add there link to other section in the same page. Is it possible in SF? E.g: first page in the PDF should be table of content, and pressing each title should direct ...
2
votes
1answer
56 views

PDF Attachment Recursion

I have a VF page rendered as pdf that has an action=savePDF(). This uses the getcontent() function to save the pdf to the parent record. However it is recurring and causing 5 copies of the pdf to ...
0
votes
1answer
510 views

Is it possible to use Javascript in an Apex class?

I am trying to use an inbound email handler to extract a PDF attachment, and then parse out all of the PDF text and save it on a field. The way I am currently doing this is by using a 3rd party ...
0
votes
0answers
62 views

Map key null when using getContentAsPDF() method

I have a Visualforce page that is used to generate a PDF document by our users. Recently we started experimenting with the Community License, and I'm facing an unusual error with this user. The ...
1
vote
1answer
867 views

Apply styling to VisualForce PDF

I have created a page like below , when i run this , styles are not applied. <apex:page renderAs="pdf"> <style> body { font-family: Arial Unicode MS; font-size:72px;} </style> ...
0
votes
1answer
762 views

Accessing a pdf as content document via URL

I have a problem when accesing a pdf stored as salesforce file via URL. At some point in time I was able to load a pdf (stored as note and attachment) in my browser using the following link : [...
-3
votes
2answers
68 views

Null object Error in a test class

I currently get 56% code coverage. Getting a Null object error public class CustomerInfoSheet { public String PrintOut { get; set; } public String LookupID; public String LookupType; ...
0
votes
2answers
217 views

Dynamic Contract generation using existing PDF

I have a contract template PDF file. I want to send this contract to multiple contacts or users, but with their respective names on PDF. For example, If PDF is like below Hi Mark, This is content. ...
0
votes
1answer
187 views

SObject row was retrieved via SOQL without querying the requested field Quote.QuoteLineItems

I'm using this controller to create a PDF and send it as an attachement. I originally had the PDF/attachment portion working correctly but could only get it to send the email with the address hard ...
1
vote
2answers
292 views

VF PDF render : Display related list without gridlines and column title (Professional version so no custom controller)

I am trying to render a PDF with related object list without column titles and grid lines. I found this apex code for the table : <apex:pageBlock title="Lines List"> <apex:...
0
votes
1answer
425 views

Page getting blank while downloading pdf

The current page getting blank whenever i download pdf file in vf page.Here is my code: This is the UI code: <button aria-live="assertive" class="slds-button slds-button--neutral ...
0
votes
1answer
598 views

renderas pdf “PDF generation failed. Check the page markup is valid”, position: fixed;

I am trying to create a pdf using a Visualforce page with renderas="pdf" tag but I get below error message PDF generation failed. Check the page markup is valid. Here is my code below: <apex:...
0
votes
1answer
179 views

Standard create PDF is not working from detail page button

We have a requirement to show two quote to customer so, what we did is we have created custom visualforce page for custom users and standard view for standard user which is absolutely working as ...
2
votes
1answer
2k views

PDF File preview

In Salesforce lightning in files/notes&attachments of a contact or account you can see a preview of the first page from the pdf. How is that possible? Here is the code which I extract from the ...
2
votes
1answer
4k views

Lightning component pdf viewer iframe

I want to create a custom lightning component to view pdf files; Pdf files are stored in my attachments salesfoce object; To do that, i have just, create simple component: <aura:component ...
1
vote
1answer
436 views

Cannot use the getContentAsPDF function

BACKGROUND I have a VF page with one field on it: Page 1 <apex:page standardController="Opportunity" showHeader="false" sidebar="false" renderAs="pdf" > <apex:outputText value="{!...
2
votes
1answer
750 views

send form as pdf in email attachment lightning componnet

I want to send the form filled up during registration as an pdf in email attachment.The form is build using lightning component. I didn't find any solution for this. Is this possible in lightning?
2
votes
1answer
360 views

How to show google drive images in VF Pdf file

I need to show google drive bulk images in VF PDF file. currently am getting broken image. that image url saved in salesforce and remote site settings. how can i get that real image in vf pdf file.
2
votes
1answer
1k views

Generate PDF with REST Web service

I've created an Apex RestResource that accepts JSON string in POST method. When external system calls that endpoint and pass data, i need to retrieve the JSON and parse it into a PDF file. Here is ...
0
votes
2answers
113 views

Invalid left hand side in custom Javascript

I'm trying to edit a custom OnClick JS button which creates a PDF from a quote, provided the quote passes certain checks. this code works: {!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} var q = ...
0
votes
0answers
504 views

jsPdf not working in Visualforce page for large documents

Task: To convert a document[visualforce generated one] into pdf. Solution I am using now : making use of salesforce renderAs="pdf" method Problem Faced : RenderAs pdf method is not working as ...
0
votes
1answer
201 views

Same image displayed in footer and body of PDF,but with different size in footer and body

Same image want to display with different size in PDF. image size 20px in footer and 200px in page . In normal visualforce page it works fine but when rendered as PDF. it's not working, its overriding ...
0
votes
1answer
92 views

Remote Objects do not work when rendered as PDF?

I want to use Visualforce remote object to retrieve data and display it as PDF. I use this code. <apex:remoteObjects jsNamespace="RemoteObjectModel"> <apex:remoteObjectModel name="...
1
vote
3answers
739 views

Attaching a visualforce pdf page inside an email

I am trying to come up with a flexible system to attached donation receipts to emails. Right now I have the pdf html in two places: inside in the visualforce email Inside another visualforce page ...
1
vote
1answer
190 views

PDF preview with visualforce page

I need to open a pdf preview of my offer generated by a custom button on opportunity page. [![enter image description here][1]][1] Currently this works as normal html page, but my problem is that I ...
3
votes
1answer
1k views

PDF's generated using Visualforce renderAs= “pdf” or renderAs=“advanced_pdf” are not accessibility/screen reader compliant?

We're generating a report in a VF Page which is being shown as a PDF file using renderAs="pdf". Our Client wants the PDF to be readable by screen readers and OCR tools. We tried to create a couple ...
2
votes
3answers
727 views

Header border not getting from 2nd page in pdf?

I generating the pdf and i am getting header border in first page only. from the 2nd page i am not able to get border in the header. How can i get the border.. below is the code for vf page.. <...
0
votes
2answers
8k views

Save base64 data as Attachment

This has been bugging me for a while. I think I am missing something very obvious. So from a REST api I am getting a base64 data of a PDF. I am trying to save the PDF as Attachment under an object. I ...
3
votes
0answers
503 views

Rendering VF page as PDF in Lightning

I have a question about an issue with rendering VF page as PDF in Lightning Experience (same code works fine with Classic). I have a button that calls visualforce page which calls VF page and saves ...
2
votes
1answer
174 views

reference to undefined property “{!$RemoteAction”

This is my Javascript $scope.getRemoteCase = function() { var caseID = []; var caseID = $scope.caseIdInfo; alert("caseID" + caseID); Visualforce.remoting.Manager.invokeAction( ...

1 2
3
4 5
11