Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
45 views

jsPDF and Salesforce Lightning Web Component

I'm trying to create a Salesforce Lightning Web Component to create a custom Quote PDF using jsPDF. I mastered to use the external chart.js library with uploading it as a static resource, but when I ...
0
votes
0answers
10 views

How to send canvas chart as an attachment in email in Lightning component

I want to save the canvas chart as an image in attachment unfortunately i didn't get any way to do that.Please help me. This is my code. createGraph: function (component, temp) { component.set("v....
1
vote
0answers
17 views

How to show Chart in Visualforce page which has renderas = pdf [duplicate]

I have VF page with renderAs = PDF. I want to display a chart on that PDF? I have tried https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_charting_example.htm and Display ...
0
votes
0answers
21 views

Repeat HTML Table in Render as PDF VF Page

In my PDF Visualforce page, below table breaks and goes to new page. Is there any way that I can repeat the header of the table if it breaks to new page at the beginning? Visualforce HTML Table <...
1
vote
0answers
39 views

Display a PDF in Salesforce from Blob data

For our project, we need to get a PDF via API from an external private filestore, and display it within a Lightning Component. With the blob that is returned, if I set that to the src of an iFrame, it ...
0
votes
1answer
75 views

download base64 as PDF seting a name for it

I'm trying to download a PDF file and I wish to give a name to this file and a extension. Here is what I did: Component: <aura:component implements="forceCommunity:availableForAllPageTypes" ...
0
votes
1answer
26 views

Is there a way to add particular <div> tags into a pdf on a button click in a vf page using javascript or the apex controller?

I know we can use the renderAs property to get whole vf pages as a pdf but I don't want that. I want particular tags in my pdf. I need a 'view/print pdf' button which opens the pdf in a new tab. I ...
3
votes
1answer
55 views

Visualforce rendered as PDF not working in Production but works in Sandbox (using Lightning in both)

I'm stumped by a very strange issue. We have Lightning enabled in Production and sandboxes. I have an Action (on Opportunity object) which points to a Visualforce page. The Visualforce page is ...
0
votes
1answer
26 views

Reports and Dashboard view as pdf

Is it possible for Salesforce to generate dashboard into pdf without having print, save as and so? Right now, what I know is to use: conga composer. create vfp and use "renderAs=pdf".
2
votes
0answers
53 views

Generate PDF preview from APEX class

What I'm doing is retrieving a PDF and save that PDF into the notes & attachment of my current object. Everything works fine, I'm able to get the base 64 encoding of the PDF, convert it and save ...
0
votes
2answers
98 views

how to download a PDF file with public URL?

I have created a accordion in lightning component where I want to display a link to download a pdf file publicly(that exists in database) for anyone visiting the community. I am querying ...
1
vote
1answer
131 views

page break in visualforce pdf after 10 records

I need to modify the below page to generate a PDF and modify the PDF exporting settings to export a table of only 10 records on each page. <apex:page standardController="Contact" recordSetvar="...
0
votes
1answer
37 views

Is there a way to export custom devleoped Chart(Chart was developed using Chart.js) to PDF with out using any other library

I have developed a bar chart using Chart.js library in lighting as standard dashboard doesn't help me to meet my requirements. I want to export to PDF with out using any other library. I tried ...
0
votes
1answer
62 views

Visualforce Render Details Tab as PDF - Opens Blank PDF

I want to open case details in PDF view when clicking on custom button in Lightning. I have a custom button(added it to standard layout) with Content Source Visualforce Page. Below is my VF Code: &...
1
vote
0answers
79 views

Cannot preview PDF publicly shared file

I have a couple of PDF files that have public links that are no longer showing a file preview.  Any thoughts why or what I can do to fix this problem.  I have refreshed the preview link & also re-...
0
votes
1answer
67 views

Visual Force: Have footer only on the last page of a document

I have a visual force page. It gets turned into a PDF if a button is pressed. There will be multiple pages. I want to have my footer at the bottom of only the last one, but I cannot figure out how. ...
2
votes
1answer
55 views

Save PDF Visualforce as attachment - mergefields not showing

I really need your help because I'm completely stuck. I want to render a PDF from a Contract in Salesforce, and save it as a record's attachment. I followed several tutorials and I created a PDF ...
0
votes
1answer
76 views

Visualforce renderAs PDF page size error

I need to render a small pdf page, height = 15mm and width = 30 mm. I have developed a VF page but I am not able to get the required page size. I am getting the error 'Page style attributes result in ...
0
votes
0answers
86 views

Advanced PDF status update?

I'm interested in rendering Visualforce as advanced_pdf, but I can't find any new details since it went Pilot in Summer'17. Are there any updates?
1
vote
1answer
28 views

Hide all images on Visualforce page, minus one

I'm hiding all images on my page via css, so that an tag will look better on a pdf and not include the image icons. My issue is that I would like to render a single logo at the top of the page. I'm ...
0
votes
1answer
23 views

Can't get record from controller to visualforce page

Visualforce page <apex:variable value="{!record.Reservation__c}" var="Client"> <p align="left" > full {!Client.Name} <br/> address{!Client....
3
votes
1answer
32 views

Visualforce <style> tag outputting as text in PDF

Here is the beginning of my visualforce page: <apex:page StandardController="Project__c" extensions="projectToPDFController" renderAs="pdf" standardStylesheets="false"> <style> body { ...
0
votes
1answer
40 views

Render as PDF not showing the file in proper format header/content/footer issue

I am having an issue with generating a pdf file with the following code. The issue I am facing is that I want the header to show on every page of the pdf and the content not to go out of bounds. Can ...
1
vote
2answers
49 views

Visualforce page rendered as pdf on quote [closed]

How do I create a Visualforce page rendered as pdf with header and footer keeping 'Quote' as standard controller and displaying an image and table on the page. Show company address on top right and ...
0
votes
0answers
159 views

Images in rendered PDF fail to load

I have a JPG image publishing problem on a VF page with renderAs = "pdf" Here is my code: <apex:variable var="rowcount" value="{!rowcount+1}"/> <!--Variable pour photo sur site via apache ?...
1
vote
2answers
43 views

IF clause in VF page to render PDF

Below is my VF code, I need to render my PDF only if status__C = approved. How to achieve it. I'm new to development <apex:page controller="MyController" renderAs="pdf" applyBodyTag="false"> &...
1
vote
1answer
108 views

Download Screenshot in PDF on button click in lightning component

I have a lightning component which displays list of accounts in table. And I need to create a button. On clicking , screenshot of the screen should be downloaded as PDF/excel file. I am not sure how ...
0
votes
1answer
63 views

how to display my field values in VF PDF from controller class for a custom object

my VF code <apex:page controller="MyController" renderAs="pdf" applyBodyTag="false"> <head> <style> body { font-family: 'Arial Unicode MS'; } @page{ size: letter; margin:10%...
1
vote
1answer
1k views

Render as PDF in table format in lightning component

I am displaying data in lightning component in table format and have the render the same in PDF.I am able to render this in PDF format but it is not in the table format. Format in lightning component:...
0
votes
1answer
41 views

How to get opportunity history value and convert it to pdf?

im new in salesforce programming.. I made an pdf report (button) on opportunity.. I can get the opportunity object field value (and opportunityLineItem) and convert it to pdf.. but down below the ...
1
vote
0answers
20 views

Best possible approach(inbuilt sf method, iframe, 3rdpart js libs) to display pdfs for ipads using Visualforce

We have scenario where visualforce pages need to display pdfs in ipad browsers. We were able to display attachments but not files. Is there a way/solution to display pdfs in ipads that works with ...
0
votes
3answers
66 views

Download a PDF as a download popup rather than the inbuilt browser PDF viewer

I'm trying to get a PDF to download via a cloud page, so when the user accesses the page it will show them a popup to download a PDF from a URL. I have the code that achieves this but my PDF that is ...
0
votes
1answer
48 views

Unable view the attachment saved as pdf Blob

I'm getting a base64 String pdfContent from a callout response which I'm trying to save as a attachment of a record. I tried to save it after decoding it with EncodingUtil.base64Decode('base64String'...
0
votes
1answer
158 views

Images in PDF attachment of a Visualforce email Template

When I try to a add an image in my PDF attachment of my email : <messaging:attachment filename="test.pdf" renderAs="PDF"> <apex:image value="https://drive.google.com/uc?id=1dRlAxFf-...
3
votes
2answers
1k views

How to generate PDF in Salesforce Lightning Experience [closed]

I created a button to link to a PDF Visualforce Page (one that uses <apex:page renderAs="PDF">) in Classic Salesforce. But now I want the same effect in Salesforce Lightning Experience. How can ...
1
vote
2answers
117 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
94 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
113 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
37 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 ...
0
votes
1answer
560 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
66 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. ...
8
votes
0answers
162 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
1answer
194 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
544 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
0answers
17 views

Ending div tag produces a blank page when rendering Visualforce page as pdf

I have a visualforce page that have some paragraph, table and footer. There is a list variable that is initialized via controller function. Apex-repeat is used to loop through the list variable and ...
0
votes
1answer
24 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
3
votes
0answers
58 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 ...
0
votes
0answers
127 views

Salesforce PDF Viewer with custom PDF page Does not Save

I have a vf page that I render as a pdf. I found code that would open this in the salesforce pdf viewer with a button to save and a button to cancel. The save button works fine for users with ...
1
vote
1answer
326 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 ...