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
-3
votes
0answers
40 views

Issue with opportunity attachment [on hold]

trigger copyattachfromfactopp on Attachment (after insert) { Set<ID> attId = new Set<ID>(); Set<ID> factID = new Set<ID>(); /* ******This block collects all the attachment ...
1
vote
1answer
34 views

Error when pulling PDF from HTTP response

I have a question regarding this post: handle PDF content in HTTP callout When I try the above code I'm getting this: "Unrecognized base64 character: %" The logs show this as well: 19:53:04:658 ...
0
votes
1answer
16 views

Optional parameter in apex (sending email with PDF)

I have Messaging.SingleEmailMessage method return type that requires several parameters when its called, the code is below; public Messaging.SingleEmailMessage createEmailMessage(Id templateName, Id ...
3
votes
0answers
129 views

Some users get the error “Unable to set property” when clicking a custom Javascript button

Since a couple of weeks, some of my users have a problem with a custom Javascript button in Classic. They get the error message "Unable to set property 'innerHTML' of undefined or null reference". No ...
0
votes
1answer
31 views

apex:outputField not formatting phone numbers in pdf

Is there any reason why the apex:outputField in a visualforce page rendered as a PDF would not be formatting the phone numbers? <apex:outputPanel rendered="{! generalContact.Phone_Field__c== '' }"&...
1
vote
1answer
46 views

How do you break out of an apex:repeat tag after specific number of iterations?

I'm creating a Visualforce Page that will render as a PDF. The page is part of a webform and it is supposed to show all the fields in the form. I've created a table for that: <table style=" ...
0
votes
2answers
15 views

Completely remove <apex:outputText> string if the value is blank

I'm using this code now: <apex:outputText rendered="{!NOT(ISBLANK(Description__c))}" value="{!Description__c}"/> But sthis string is between another strings, and when I use this code, I'm ...
1
vote
1answer
25 views

Visualforce PDF table cells styling issue

I have been banging my head against the wall to get the table styling correctly in Visualforce PDF. Here is a simple example of the problem I am facing. Can someone help me with this? <apex:page ...
0
votes
0answers
25 views

Visualforce page rendered as PDF saving to salesforce files (Content document) but failed to reload error on opening pdf

Rendering VF page as PDF. Attachment pdf is working fine in classic. On opening pdf in classic view PDF is correctly opening but when i switch to lightning then on click of button pdf is saved in ...
0
votes
1answer
20 views

Pdf logo and Header adjustment in Visualforce Page

I have a VF page which shows the logo and header in pdf(dynamic) like this:(by renderAs="pdf")- but on the next page the "header and logo overlaps" and look like this:- I am using this part of code ...
0
votes
0answers
27 views

How to convert LWC pages into PDF format? [duplicate]

My current requirement is to convert LWC page into PDF format. I tried built in 're-render as PDF' option though VF page. But it does not look good & i am not able to add Graphs/Charts into it. ...
2
votes
1answer
52 views

Place image on last page in PDF document

I have a Visualforce page rendered as PDF with a static first page and dynamic pages following. I have a header and footer set and they are working as expected. My issue is trying to place an image ...
0
votes
1answer
67 views

Issue in PDF generation of a LWC component in Visualforce

Does anybody done pdf generation by means of LWC(with Visualforce page). I have done following code and it is working fine, until renderAs comes. If anybody knows a solution/workaround, please let me ...
0
votes
0answers
15 views

Product info with Quotes PDF

Hi i have task to create Quote email and PDF, there are few product info pdf documents, i need to merge the quote line info with existing product info pdf document or more than one pdf document. Any ...
1
vote
1answer
50 views

renderAS = “advanced_pdf” with API Version 46.0 not rendering PDF with SDLS framework

Why is the renderAS = "advanced_pdf" not working ? Trying to apply SDLS to existing classic visualforce page. This page is renderedAs a 'PDF'. If I add renderAS = "advanced_pdf" the page ...
0
votes
1answer
48 views

Can I have PageReference within PageReference?

I am working on this requirement. I have a SaveAction() pagereference method in my controller on the Button click from the Input VF Page, where I am saving the VF page's input field values to an ...
0
votes
1answer
52 views

Generating a PDF and attaching after clicking on Submit from VF page?

I have a simple Contact creationg VF page with bunch of input fields. Clicking on the Submit button would create a Contact record and shows a confirmation message on the screen. Now, I would like to ...
0
votes
1answer
17 views

Why is my Visualforce PDF footer just off-center?

I have a Visualforce PDF page with a footer section, but this isn't centered - it is just off center and I can't figure out why. What do I need to do to get it centered? My CSS classes contain this: ...
0
votes
0answers
11 views

How to generate the pdf based on the data visible in the vf page?

I am trying to generate the pdf of the records that are visible based on the two filter that are the user name and the Category by choosing these two options I am filtering the records and now I want ...
0
votes
0answers
18 views

Chrome pdf not working get contentaspdf [duplicate]

In my sandbox I created a method that generate a pdf from a vf page. Everything was working perfectly. I am now in my prod and when I use google chrome, the pdf is not working anymore, it does a weird ...
0
votes
1answer
43 views

Sandbox to prod getcontentaspdf not working

I have everything working normally in my sandbox (render as pdf on a vf page), but when I copied everything and paste inside my prod, I have a pdf that look likes this when I render it as pdf If I ...
0
votes
0answers
16 views

Merge string is not working to display PDF

I am using below code to merge two pdf into one page, Apex Class public String pdf { get { PageReference pg = new PageReference('/apex/demoVF'); Blob b = pg.getContentAsPDF(); ...
0
votes
1answer
27 views

Undo changes of JSENCODE() when used in output text

I have VF page in which i have a output text like the below one. <apex:outputText value=" {!SUBSTITUTE(JSENCODE(title),'\n','<br/>')}" escape="false"/> Lets say the value of the title ...
0
votes
2answers
64 views

Combine two different PDFs in single Visualforce page?

I have used below visualforce code to display two pdf in a single page but in the result, I am getting two different PDFs with two sections with iframe. Is it possible to combine these two PDFs in ...
0
votes
1answer
33 views

How to send a email(pdf visualforce page) to particular user on clicking the custom button? [closed]

I have made a visualforce page to generate a pdf when a custom button is clicked and I'm struggling to send the generated pdf to mail id of that particular user.I tried all the possibilities.How ...
1
vote
1answer
38 views

Generated PDF from Visualforce page cannot be read by Robotic Process Automation

I have a request, the client what to creat Robotic Process Automation that can read and treat a pdf generated from a visualforce. To do that, all the fields should be readable as it is appearing in ...
0
votes
1answer
35 views

I am not able to call the Apex variable in my visualforce page how can I fix?

So I have a lightning component that will open a visualforce page when you click the pdf button. The visualforce page opens in pdf format but I can't call the Apex variable to get the Account Name, ...
1
vote
1answer
493 views

How to display downloaded PDF blob in an iframe?

I am using a HttpRequest to GET a PDF: http://www.example.com/path/some.pdf I am using response.getBodyAsBlob() to store the data into a ContentVersion I can view the PDF if I open the ...
0
votes
1answer
53 views

Download VF page as PDF file on local drive when user clicks on download button [closed]

Can someone help me to download a VF page when the user clicks on the download button? Current functionality is when the user clicks on the download button it will take the user to Print page and ...
0
votes
0answers
51 views

The report returned no results

I use a link of a chart in a report to display this chart on a Visualforce page that is rendered as PDF. (copy image address). It seems like the page is reaching that chart but it displays no ...
0
votes
1answer
89 views

How to generate multi page PDF using Visualforce

I would like to generate a multi-page PDF using Salesforce \ Visualforce, so that I can print multiple records at once. Each PDF page comes from a ContentVersion record. I know I can generate a PDF ...
0
votes
1answer
178 views

Render as pdf with css not working properly

I have a controller which calls a couple of function. The variables are then send to the apex page, which is mostly a html page. When I am redirecting to the visual force page, the report I want to ...
0
votes
0answers
64 views

SOQL error on custom object

I'm trying to set up the following tutorial : https://blogs.absyz.com/2017/07/13/workaround-for-pdf-rendering-in-sf1/ It works perfectly for the Contact tab but, when i try to adapt this for my ...
1
vote
1answer
116 views

Is it possible to retrieve a signed PDF from Docusign and then put it in the Notes & Attachments?

We are currently developing an app in Salesforce for docusign in which when we click on a button called, 'Send to Docusign', an Apex code is run and this will push the pdf to Docusign for signing. ...
1
vote
1answer
108 views

Is it possible to generate a PDF with a signature tag for DocuSign?

Is it possible to generate a PDF using Apex and then embed the 'Signature tab' of DocuSign into the PDF? For example: in the Contract Object we have a text area in which the user could add legal ...
0
votes
1answer
35 views

Unable to avoid the page breaking of a list in visualforce PDF

I have to do a visualforce that render a list of list of quotelineitem, that can be spited on more page cause the visualforce is seted to renderAs="pdf". To reach my goal i decide to use an apex ...
2
votes
0answers
27 views

Japanese in VF generated pdf

I need to render Japanese characters as HTML in a pdf that's generated using Visualforce page. I want all the formatting to be applied along with the Japanese characters. I have used 'Arial Unicode ...
2
votes
1answer
140 views

Render Visualforce page as PDF not working in a Community

I have a VisualForce page that contains an image that I want to render as a PDF. This rendering is done as part of a controller call, which will take the rendered PDF blob and attach it as a File to ...
1
vote
0answers
89 views

How do we name a Visualforce PDF without Apex (Filename)

Here is our Visualforce Page Attributes In this example we are trying to name the PDF "Hello" <apex:page title="PDFPage" renderAs="pdf" standardStylesheets="false" standardcontroller="...
0
votes
0answers
19 views

Visualforce ONLY, Sorting a related list of records within the Parent Record

Using Standard Controller No APEX, we can generate a Quote PDF using Visualforce without any Apex. Our only issue is we are not sure how to order the Quote_Line_Item__r records. They seem to be ...
0
votes
0answers
51 views

The content that i received through mail as a pdf attachment is partial of the actual content sent

public static String AcceptTnC(String contractInfo2){ system.debug('contractId2'+contractInfo2); Messaging.SingleEmailMessage semail = new Messaging.SingleEmailMessage(); Messaging....
1
vote
0answers
24 views

Getting an PDF from external webservice and store it as attachment creates empty pdf

I have to get a pdf from an external web service and store it as an attachment of an object. Im getting the pdf with the following code public override Blob getPDFReport(String token, String jobId) {...
0
votes
1answer
94 views

How do we convert pdf in html format in visualforce page?

Following code takes me with pdf but i wanted to view this pdf as html because in my pdf some buttons are clickable and i wanted to capture that click event from pdf so it is not possible in pdf and ...
0
votes
0answers
91 views

How to pass id of selected record from sobject list to the pdf page

I have a Visualforce page with a page block table which contains multiple rows based on the search result from sosl query.Now I need to select multiple rows using checkbox and on button click need to ...
0
votes
0answers
27 views

Transpose table as PDF issue

I want to display the transpose table in PDF. Name : Bharath : Graham : Andrew Age : 25 : 26 : 27 Country: IND : UK : US I have achieved with the help of Bob Buzzard's Rotating ...
0
votes
0answers
48 views

PDF Page break and Adding footer line

Hi please help me how to fix this <style type="text/css" media="print"> @page { margin-left: 1cm; margin-right: 1cm; margin-top: ...
1
vote
1answer
83 views

How to control the page size of the PDF generated from Visualforce page

Background I am generating a PDF using this visualforce page: <apex:page controller="ExampleController" renderAs="pdf" applyBodyTag="false"> <head> <style> ...
2
votes
2answers
566 views

jsPDF in Lightning component: get blob in Apex controller

I'm trying to use the library jsPDF on a lightning component. The lighting component handles the creation, and needs to pass it to my apex controller (in order to save the file in Salesforce). ...
1
vote
0answers
49 views

How do I open a Visualforce PDF page from a Lightning component button?

I have a lightning component (called from a quick action), on which a few inputs are taken. On clicking of a button I need to show a Visualforce PDF page. Can I do so directly from the button or do I ...
0
votes
0answers
28 views

Can I get a public link to an attached PDF?

We have a 3rd party that is generating PDF quotes, and attaches these to a (custom) quote object. I'd like to generate public links for these so they can be emailed to customers - but from https://...