Skip to main content

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
14 votes
1 answer
2k 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 ...
Uwe Heim's user avatar
  • 28.4k
21 votes
7 answers
15k views

word-wrap not working with VisualForce PDF generation?

I cannot get word-wrap to work in a VisualForce page, which is rendered as a PDF. There is a table with a column called Comments and this contains a long string without any spaces. The long string is ...
LMcDonald's user avatar
  • 463
23 votes
2 answers
15k views

How can I specify a file name for a Visualforce generated PDF

What can I do on a Visualforce page that is a renderAs="pdf" that will result in the name of the file that shows up when the user clicks Save As... to not be the name of the Visualforce page. The ...
Peter Knolle's user avatar
  • 29.1k
2 votes
0 answers
90 views

Split Data Based on Year in a Visual force Page PDF

Can any on help me out how to get the Data split based on the year and product name in a visual force page which is in a PDF format . ProductName Year Q1 Q2 Q3 Q4 Total ...
nikkey's user avatar
  • 1,365
14 votes
1 answer
13k views

Display PDF with Visualforce

I have a PDF which is retrieved via web services calls. The PDF is sent over in a base64 encoded string. I would like to be able to visit a page and output the result of this request. Currently I am ...
Kyle's user avatar
  • 143
14 votes
3 answers
4k views

How to download a VF page as PDF and email it from a trigger?

I have a renderAsPDF VF page that takes an object id parameter as part of the URL string. It returns a PDF with some textual data and some images (e.g. <apex:image id="theImage" value="/servlet/...
pfeilbr's user avatar
  • 281
10 votes
1 answer
16k views

Rendering a VF page as PDF and saving it as an attachement

How can I render a VisualForce Page as PDF and have a button on the page that saves this PDF as an attachment to a record? I want to have a button on my object detail page, 'Generate PDF' which will ...
Dedo's user avatar
  • 5,017
8 votes
1 answer
5k views

Can You Use A PDF Template In Apex?

I was curious if I could leverage a standard PDF template or make a custom one that I can then render via Apex somehow. I'm curious if I can either: Render it as a PDF directly in Apex via ...
Programmable Medley's user avatar
6 votes
3 answers
7k views

pageblocktable rows spanning over page breaks when rendered as pdf

I have a pageblocktable that is being rendered as a pdf. The PDF is set as A4 landscape with small margins and page numbering in a style sheet. The problem is that rows in the pageblocktable span the ...
GdD's user avatar
  • 163
5 votes
2 answers
4k views

Best way to create PDFs on a schedule?

I'm currently trying to set up a schedule that will create PDF files and save them as attachments in Salesforce. Methods I have tried: PageReference.getContentAsPdf() - works fine by itself but is ...
Davin Casey's user avatar
  • 4,217
3 votes
3 answers
178 views

need a customised pdf

I have a table that shows 10 record and whenever i click on 'create PDF' button..whole page is rendered as PDF..But i have a requirement that if i select lets say any 5 record from the table using the ...
Ankita Singh's user avatar
3 votes
1 answer
6k views

Generating pdf - LWC - using jsPDF

I am trying to generate pdf using JSPdf in LWC using the below code. The lwc is embedded on Account record page. However I am getting the error. It is happening just before the line in JS doc.table(30,...
Priyanka's user avatar
  • 1,909
16 votes
5 answers
7k views

Is it possible to use images in Visualforce generated PDFs which are not static resources?

I'm trying to generate a Visualforce PDF (renderAs) with a variety of images from different sources includes Salesforce Attachments and Documents, as well as third party sites. So far I've only been ...
paul's user avatar
  • 1,019
9 votes
2 answers
14k views

Custom Fonts in Visualforce Page (renderas="pdf")

Trying to use a custom font in my visualforce page (rendered as pdf). I have looked at many conflicting articles saying that the only option are the "limited" fonts supported, whereas others say that ...
Justin's user avatar
  • 101
8 votes
3 answers
9k views

Render a Visualforce page as PDF issues

I'm trying to render a HTML table in a Visualvorce page as PDF and I'm having the following issues: I used the CSS below to display the page in landscape but it doesn't work. @page { ...
Chicho's user avatar
  • 485
7 votes
2 answers
18k views

How to repeat HTML table header (thead) for each page rendersAs pdf

I would like to as you how to repeat table header ( thead) for each page on the top ?? the simple code is like this : </messaging:htmlEmailBody> <messaging:attachment renderAs="pdf&...
Julio Ludovic Ramihone's user avatar
6 votes
1 answer
3k views

External Image Link Broken when Rendering as PDF

When referencing an external image in a Visualforce PDF rendered image, the image is displaying a broken link. It works perfectly without the renderAs="PDF".
S Morgan Robertson's user avatar
6 votes
2 answers
31k views

How to generate a PDF and have it download from a Lightning Web Component

I'm trying to show a button on a Lightning Web Component, that when clicked generates a PDF and immediately starts downloading it on the browser. The LWC lives in a Screen Flow and I'm currently ...
Dan's user avatar
  • 215
5 votes
1 answer
4k views

Visualforce RenderAs PDF not supporting SLDS CSS

I have a VF page built on Lightning Design system (LDS) framework. When I add the renderAs="PDF" attribute, pdf does not show the content with LDS CSS/Style. Reference Link: SLDS not rendering CSS ...
Syed Moosa Nazir TN's user avatar
4 votes
1 answer
2k views

PDF unable to load..when using oncomplete or rerender..Any Help..?

I have created a VF page and used "render as pdf" <apex:commandButton value="Save to Opportunity" action="{!savePdf}" /> Its working fine when i am using above line without rerender and ...
miku's user avatar
  • 1,761
4 votes
3 answers
5k views

Visualforce: Rendering PDF with international characters and bold/italic - Arial Unicode MS not working

I just had the problem to create a VF page that renders as a pdf and outputs polish text. The only font that supports polish characters is Arial Unicode MS but with this font, I can't output bold or ...
eto's user avatar
  • 368
4 votes
1 answer
5k views

Combine multiple PDF's together and attach them in a mail?

As of now , all i have is a VF page which renders as a PDF and it needs Account ID to be passed to generate a PDF . Is there a way wherein i can group all the PDF's into a single PDF ? Should i change ...
TroubleShooter's user avatar
4 votes
2 answers
4k views

Sending a PDF from Salesforce through a REST call

How do I send a pdf through REST call out of Salesforce? Should we use sites? Any idea?
akash's user avatar
  • 937
4 votes
1 answer
6k views

renderAs PDF page numbering

I'm trying to get page numbering showing up on Visualforce renderAs PDF page. I was following the example provided in the developer guide, but it isn't working for me. Here is a simple Visualforce ...
Dman100's user avatar
  • 2,445
3 votes
2 answers
7k views

How do I convert a visualforce page to a PDF?

How do I convert a visualforce page to a PDF? Please provide a code sample.
rakesh's user avatar
  • 239
2 votes
2 answers
5k views

PDF editing within Apex/Visualforce

I want to edit a PDF file in the Salesforce Document folder to add some text or background image to it, and then save the changes in a new PDF document. I tried to include the PDF in a Visualforce ...
Riadh Mankai's user avatar
  • 1,088
2 votes
2 answers
4k views

Add CSS classes and repeating header to Visualforce PDF

I have a Visualforce page that renders as a PDF. It displays a table of data and an image on the header on each page: <apex:page renderAs="pdf"> <head> <style type="text/css" media=...
jonathanwiesel's user avatar
2 votes
1 answer
3k views

Pageblocktable to be rendered as table in PDF

I have a VF code below where I am trying to display the related list of an object using and command. I am rendering this page as PDF , doing that in my PDF I am unable to see the content in a ...
SfdcBat's user avatar
  • 4,811
1 vote
1 answer
2k 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 ...
Jerard Dela Victoria's user avatar
1 vote
3 answers
920 views

Generate RADAR chart in PDF

I'm working on a custom report (Visual Force) to generate specific charts(using apex:radar chart) to our client. The problem is that we have to export the information to PDF format. Using the ...
Josue Nogueira's user avatar
1 vote
3 answers
5k views

Access Document(pdf or doc) without Salesforce login

I have 3 Document records with pdf, word document & image respectively. I need to show the files outside Salesforce(i.e without salesforce login). All of the records have 'Externally Available ...
Santanu Halder's user avatar
1 vote
1 answer
10k views

How to render a PDF generated with jsPDF in a LWC

I'm new to Salesforce development and currently try to render a PDF that has been generated with jsPDF in a modal (i.e., I managed to generate PDFs from an LWC using jsPDF, yet I'd like to render it ...
Benjamin Behringer's user avatar
1 vote
1 answer
6k 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:...
devforce's user avatar
  • 1,573
1 vote
1 answer
634 views

Limit number of tables displayed in one page (When using Apex:Repeat), when redering as pdf to avoid page/table breaks

I have the following VF page, but when I render it as pdf the Apex:repeat tables break in the middle to the next page. I'm thinking of limiting the tables displayed in each page to avoid table breaks. ...
Tinkerbell's user avatar
1 vote
2 answers
810 views

PDF from Salesforce

I have a requirement to create separate pdf files with informations of HCPs having been called where samples are dropped. I can extract in csv, but how to do that in a presentable format in pdf? ...
Testing_SFDC's user avatar
  • 2,950
0 votes
1 answer
941 views

How to Watermark PDF

I have a VF page with file upload control ,Users will upload PDF file along with other details and the file will be stored in Attachments. Requirement : When user uploads PDF then file should be ...
Nanda Kumar's user avatar
0 votes
1 answer
1k views

Count Number of Pages in Salesforce Files

Is there any way to count the number of pages in apex if a file of PDF type is stored in Salesforce?
Gaurav Chauhan's user avatar
17 votes
2 answers
13k views

Convert HTML to PDF in APEX

I am trying to convert an HTML email that is sent to an Email Service into a PDF file. Some of the options I have explored: attachment.fileName = fileName + '.pdf'; attachment.mimeTypeSubType = '...
rumdumdum's user avatar
  • 695
12 votes
5 answers
3k views

Download Invoice PDF's On List View without saving to Notes and Attachment as a zip file

Scenario: Am having Invoice__c Object. On the list view I have download button to download the selected invoices PDF's. What my below code is doing is it is after fetching the selected records id's of ...
mohammed azarudeen's user avatar
11 votes
1 answer
7k views

generating PDF of a record's printable view in batch apex

Some of my users cannot view the Case object owing to restricted licenses. To avoid paying for service cloud licenses, I need to generate PDF snapshots of all Case records using a batch (the are many ...
max's user avatar
  • 2,419
8 votes
3 answers
5k views

too many nested getContent calls?

I have a Visualforce page that renders perfectly as a PDF that I'd like to attach to an opportunity record and to attach to an email. Whenever the code gets to getContent(), I keep getting an error ...
sberley's user avatar
  • 554
7 votes
1 answer
3k views

How to render Multiple PDFs from a single Visualforce page?

I working on a visualforce page (running a tabular report) with a table (13 columns) and am rendering a PDF as well for this. Firstly, all the columns are not fitting in a single PDF. Secondly, how ...
Sapthagiri's user avatar
7 votes
3 answers
12k views

renderas=pdf not generating borders in html tables

I have a Vf page which i am generating as pdf using renderas="pdf". The issue i am facing is that the html tables i am using in the Vf page dont seem to show the borders. They are visible when i view ...
Prady's user avatar
  • 12.3k
7 votes
4 answers
8k views

Render PDF Blob data in visualforce page

I have pdf blob data returning in my webservice.. I want to display this blob data as pdf in visualforce page. Is there any way to render the page as pdf with this blob data looking like pdf page. ...
NoNicknameSFDC's user avatar
7 votes
1 answer
2k views

RenderAs PDF with Bootstrap

I'm building out a Bootstrap website in Salesforce and I now have a requirement to allow the users to download some of the pages as PDFs. Unfortunately, when I use renderAs="PDF", I get this error: ...
ricksmt's user avatar
  • 602
6 votes
1 answer
4k views

Generating Barcodes in Salesforce

Is there any standard/ acceptable way of generating barcodes in salesforce? I'm exporting some pdf reports and there I need to print a barcode. I found some third party libraries like this. But when ...
highfive's user avatar
  • 6,241
6 votes
2 answers
5k views

Remove Last Page from the PDF

I have created PDF of Multipage, where in VF page I am using <apex:repeat .......> ///////// some code <div style="page-break-before:always;"/> </apex:repeat> But it adds a ...
Salesforce Steps's user avatar
5 votes
2 answers
4k views

Apex & VF Code of Send Quote as E-Mail

I'd like to send my own Quote-PDF as E-Mail and not use the useless Salesforce Quote-PDF function. Problem is, using my own templates I can no longer use the native send Quote per E-Mail button. My ...
Atroxy's user avatar
  • 103
4 votes
1 answer
4k views

Images are not displaying in MS Word Doc

I want to display the images into word document and here two types of images are there Static resource image(not working, in PDF format working) Rich Text Area(not working, in PDF format is working)...
Vivekananda Reddy's user avatar
4 votes
1 answer
4k views

Reading a pdf file in apex controller

I am trying to read a pdf file that is stored in Static resources.The body of the pdf comes in a Blob format, but I am not able to get the blob back to the readable format.How do I accomplish it.
user6886's user avatar
  • 103