Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
12 views

Scheduling Survey in Salesforce [on hold]

Scheduling Surveys in Salesforce - How to SCHEDULE a Survey once in a quarter in salesforce? Survey should auto trigger every 3 months with provision to edit the questions.
0
votes
1answer
22 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
44 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
17 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
33 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
50 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
71 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
23 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
36 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
49 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
30 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
36 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
42 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
55 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
24 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
29 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
33 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
34 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
139 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
42 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
68 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
35 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
749 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
37 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
19 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
59 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
41 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
128 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-...
2
votes
2answers
766 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
84 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
92 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
87 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
401 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
60 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
127 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
163 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
434 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
16 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
23 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
49 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
99 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
285 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
750 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-...
1
vote
1answer
208 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: ...
1
vote
0answers
192 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
217 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
258 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 ...