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.

174 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
576 views

Merging multiple pdf files

I was just wondering if anyone has created a method to merge 2 or more pdf files into one single pdf using Apex. I basically want to give the option to users by uploading or selecting few different ...
Metawaa's user avatar
  • 709
4 votes
0 answers
565 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 ...
user46375's user avatar
3 votes
1 answer
503 views

I can set a dynamic filename of PDF(Visualforce page). but only Japanese characters are not shown

The codes are below. I can set the name of pdf dynamically and when I use the "save as" the name of pdf is set the filename. But the filename will be set if it is an alphabetic or numeric ...
user97538's user avatar
3 votes
0 answers
591 views

Visualforce Page as a PDF File with metadata

Is there a way to render a Visualforce Page as a PDF File with metadata. Ex: Title , Authour, Subject and Keywords. I tried adding meta tags to the VF page and so many other ways. But non of them were ...
Gaiya's user avatar
  • 31
3 votes
0 answers
2k 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 ...
Zeno Trevisan's user avatar
3 votes
0 answers
1k 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 ...
RedDevil's user avatar
  • 7,821
3 votes
0 answers
578 views

  in PDF is shown as square

I have this page <apex:page showHeader="false" sidebar="false" standardStylesheets="false" applyHtmlTag="false" applyBodyTag="false" ...
Serg Woron's user avatar
3 votes
1 answer
1k views

Multiple column layouts in renderAsPDF vf page

I need to generate a pdf vf page with multiple column layouts. I read there is something in the css 3 specification: http://www.w3.org/TR/css3-multicol/ But when I tried: div.wrapper{ columns: 2; ...
user5283's user avatar
2 votes
0 answers
2k views

LWC save or print as pdf

I have built out an LWC to that I'm displaying externally in a community (public). I trying to put a print/save button on the LWC to print/save the LWC as a PDF. I've looked into jspdf and some others,...
mackmama's user avatar
  • 709
2 votes
0 answers
321 views

Unable to Pass parameters to a visual force page as PDF in queueable class

I am trying to pass variables to visual force page PDF that I generate using blob in the controller which gets its variable values from the queueable class. I am required to create 1000s of PDFs per ...
Muhammad Ali's user avatar
2 votes
0 answers
181 views

How to disable generic @page rule in VF page rendered as PDF?

I have following two requirements: (1) Several single Visualforce pages rendered as PDF with a running header/footer as well as each VF page having a different “padding-top” value of it’s content, i.e....
Marvel's user avatar
  • 21
2 votes
0 answers
338 views

Looking for a way to generate and show a Quote PDF in Lightning

My org has a number of Quote templates. In Classic we have created a custom JS button that automatically selects the proper template, generates the Quote PDF and pops up the generated PDF along with ...
Sander de Jong's user avatar
2 votes
0 answers
279 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 ...
Swatz's user avatar
  • 61
2 votes
0 answers
952 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="...
TheArchitecta's user avatar
2 votes
1 answer
2k 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 ...
Michael's user avatar
  • 21
2 votes
0 answers
1k views

Base 64 Content in PDF

We are receiving a base64encoded string from apex webservices and we have to display that as pdf whenever user clicks on a button. currently we have the below code var isIE = false || !!document....
Jagan's user avatar
  • 21
2 votes
0 answers
2k views

Rest API PDF Document is stored as base64 and not getting opened

I am using 3rd party document drive. I am sending files from salesforce via rest api. All the files are stored as base64 and not getting opened when it is downloaded. What i am sending is as ...
itsme's user avatar
  • 21
2 votes
0 answers
801 views

Visualforce PDF page break doesn't work

I'm creating Visualforce page rendered as PDF and struggling with page-break. I have a really long table which is stretched across 5-20 pages. The rows are rendered using apex:repeat. Source for ...
mascot's user avatar
  • 583
2 votes
1 answer
1k views

Filling a third party PDF form with Salesforce data

I have been trying to figure out how to fill a PDF form with contact data and I found a helpful post here. I followed the instructions but it didn't say what to do with the code or how to set up the ...
Sam Pickard's user avatar
2 votes
0 answers
272 views

Make 2nd page blank when render as PDF

I have varying content tables in my visual force page. There will be only one table in first page. But when it overflows, it should extend to 3rd page instead of 2nd page. I am also having a running ...
Jithin B's user avatar
  • 121
2 votes
0 answers
623 views

Embedding an image in PDF attachment using html tags and Blob.toPdf()

I want to add an image to a pdf I am creating and attach it to an email that I send via apex code. I am using html and Blob.toPdf() to make the pdf. I saw this post regarding Blob.toPdf()'s ...
user24398's user avatar
2 votes
0 answers
287 views

Visualforce PDF after attaching to record says 'This PDF document might not be displayed correctly.'

I have a Visualforce page that is rendered as PDF. It works from the browser: I have a method that attaches a Visualforce PDF pageReference to a record: public static Id attach_PDF_To_Record(...
Lightning Evangelist's user avatar
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
2 votes
0 answers
314 views

Customizing the article attachment in the send an email functionality

As per standard salesforce functionality, while using Send an Email from a case, you have the option to attach the article as an attachment to the email that is sent. Salesforce has a certain ...
Jayashree's user avatar
2 votes
2 answers
661 views

Handling styling CSS in renderAs PDF with Escape option

I'm using escape attribute to have my exact design to be printed on PDF. BUt, i can't able apply styling for this output text: <apex:outputText value="{!tic}" escape="false" styleClass="h2" > &...
Rv1's user avatar
  • 756
2 votes
0 answers
112 views

Email a PDF page to User who clicks

I have a custom button on Custom object Incident. When it is clicked from a particular Incident record a VF page is displayed in PDF format. I need not to show this PDF to the User instead the PDF ...
Testing_SFDC's user avatar
  • 2,950
2 votes
0 answers
2k views

CSS not displaying border when rendered as PDF in 2nd page

I have created a visualforce page rendered as PDF.But in PDF the first page is showing with lot of whitespace on the top and in the remaining pages the border on the top is not displaying . i think -...
khan's user avatar
  • 21
2 votes
0 answers
833 views

Generating a Quote PDF after record is locked

In our company, the sale rep. has to go through the approval process and then, when the record is locked, generate a PDF. The problem is that he cannot save the pdf in the quote since the record is ...
jpmonette's user avatar
  • 4,440
1 vote
0 answers
214 views

Create PDF (or other exportable file) out of a LWC

How can one export a LWC as a PDF? (Same as this post, with a slightly different angle) A couple hours of research have not yielded any useful results Requirement: Create a way to export the LWC so it ...
Miguel Diaz's user avatar
1 vote
1 answer
493 views

jsPDF is not working in LWC

Trying to generate PDF with JSPDF library but getting below error message when I'm trying to preview the PDF through Community or record pages in salesforce. Error TypeError: Cannot destructure ...
mandeep singh's user avatar
1 vote
1 answer
379 views

Overcoming Salesforce API Heap Size Limitations in Document Retrieval - Need Advice

I am currently working on an integration project involving the Salesforce API. My project uses an Apex class to call a Quarkus service that interacts with a Document Management System (DMS) on Azure. ...
Kévin's user avatar
  • 11
1 vote
0 answers
591 views

PDF File Preview Not Showing Correctly - Setting "Display alternative file previews" Doesn't Work

I have a problem with PDF File previews which are attached to Account records in Salesforce. When users enter inside the 'Related' tab and try to preview a PDF file, not all the contents inside the ...
Emmanuel_M's user avatar
1 vote
0 answers
154 views

Blank PDF on quote after create from Apex

I have to add funcionality to my class where i can create PDF file on quote. I'm trying to use code like this : public static void createPDF(String quote) { Quote_Setting__mdt quoteSetting = ...
Marko Polo's user avatar
1 vote
0 answers
903 views

Generate PDF With LWC

Need to save a pdf of the particular div which include Lightning-Datatable. Below are options I don't want to use as workaround: window.print(); Vf redirect(Solutions without Visualforce Page) Tried ...
Shreyash Vyas's user avatar
1 vote
0 answers
185 views

How to properly adjust width and size to image rendered with apex:outputField

I am developing a visualforce renderAs pdf. One of the requirements is to show a couple of images stored in formula fields in Product2 objects (formula using IMAGE()). This means that querying those ...
joacoiudica's user avatar
1 vote
0 answers
77 views

Include many visualForce page into one

I want to include many visualForce page into a single with apex:repeat. the pages are all rendered as a pdf, because what I want to obtain is like a big pdf that includes many pdf that can be ...
Alexis's user avatar
  • 129
1 vote
0 answers
1k views

LWC: Render PDF files as images using pdfjs

TLDR: Any working implementation of pdf.js or other 3rd party js to render pdf as images in LWC would be helpful. I want to render pdf pages as images in order to plot dynamic SVGs. Similar to image ...
Pranav Parakh's user avatar
1 vote
0 answers
226 views

QuoteDocument, convert data from document field to pdf

I've been trying for days to access the quote's PDF file from an external site linked to my org with heroku connect, I was finally able to retrieve data from QuoteDocument Object documentation. It ...
Vancleef's user avatar
1 vote
0 answers
193 views

Change the locale of Quote PDF

We have a problem in my org related to the locale and the creation of the Quote PDF. We have 2 offices ("Europe" and "America") for the Quote object, specified in the Office (...
Enrique Muñoz's user avatar
1 vote
0 answers
859 views

Visualforce PDF rendering sans-serif font with bold elements in same section not working

I have a Visualforce page with a sans-serif font: <apex:page showHeader="false" applyHtmlTag="false" applyBodyTag="false" standardStylesheets="...
Andy Ray's user avatar
  • 1,468
1 vote
0 answers
223 views

Visualforce Page PDF table overflow

I`m having some trouble with Visualforce Page render as PDF. I need that the text still going bellow de image but breaks the line when touches it. The line where its written "Partida do Motor ...
Guilherme Weissheimer's user avatar
1 vote
0 answers
217 views

How to add complete child LWC component HTML content in PDF file?

I have two child LWC components and I have merged in parent component. Now I want to create PDF file which will be having data of HTML content of both the child HTML component. Using below code I am ...
Vani Mude's user avatar
1 vote
0 answers
174 views

Quote PDF generated by automated process missing fields

I have a community site with e-shop. I have a process builder which fires a platform event after 24 h of opportunity creation if it is not closed by then. Opportunities are created by community users. ...
Patryk Badowiec's user avatar
1 vote
0 answers
293 views

Overriding Name for QuoteDocument

We create PDFs from quotes, and they get filenames on the form VX.pdf (where X increments). So customer wants to have the filenames be -.pdf. I've tried setting the ContentVersion PathOnClient to ...
Torvald Baade Bringsvor's user avatar
1 vote
0 answers
1k views

Tables in visualforce page renderAs Pdf are moving to the top of the page

I am rendering a html code as pdf in visualforce page. But the tables in the page are going to the TOP. If I remove renderAs="pdf" and check the VF page, everything looks fine. Please advice....
AshSFcloud's user avatar
1 vote
1 answer
5k views

Convert base64 to pdf and display it in LWC

I have an apex that returns a string, and I want this string to decode it and display it as a pdf to a modal in Lightning Web Component. How can I achieve this? How can I display the pdf without ...
Kostas Karagiannis's user avatar
1 vote
0 answers
172 views

Upload Visualforce PDF to Files Related List Using Apex (getContentAsPdf() and Future Method Issue)

I'm currently trying to upload my Visualforce-rendered PDF to the Files related list of my record. I understand PageReference and getContentAsPDF() both behave as Callouts and thus needs to be ...
Sid Fortunato's user avatar
1 vote
0 answers
606 views

VF Page rendered as pdf download without redirecting to any screen

I've a vf page rendered as pdf which has to be downloaded on click of a button. This button has to be present on detail page of 3 objects: Account, Contact and Opportunity. To support 3 objects, a ...
Abhishek's user avatar
1 vote
0 answers
557 views

Add 2 differents visualforce page to one pDF

I have 2 VF pages : - one that display a quote, with repeatable header and repeatable footer (if there is 2 or more pages the header and footer will be displayed on each pages) - one that I want to ...
dou's user avatar
  • 1,959
1 vote
0 answers
427 views

Attachment as PDF is blank

I'm trying to save an attachment as PDF inside a record. The process happens after insert trigger - when I send the data to a function to generate a pdf as an attachment and saving it in the record. ...
Salvation's user avatar
  • 1,189