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
1 vote
1 answer
65 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
0 votes
1 answer
25 views

How to generate e PDF in Apex from a VFP containing multiple aura components and attach it to an email

I currently have a VFP without any controller attached to it which displays some aura components and passes them input values from URL parameters. This is used to print a pdf or paper version of the ...
Frans's user avatar
  • 29
0 votes
0 answers
46 views

Getting Error 'An internal server error has occurred' while passing invoice template html data from LWC to Visualforce Page to render as PDF

Html Code : <div class="invoice_container" style="width: 100%; max-width: 900px; margin: 0 auto; padding: 20px; font-family: Arial, sans-serif; color: #333; background-...
Pratik Bokade's user avatar
0 votes
1 answer
45 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
  • 1
0 votes
0 answers
44 views

Open Visualforce page as pdf in a different tab without downloading pdf

I have a requirement to open a pdf in a different tab in same window on click of a button on a visualforce page.Currently in the system - Chrome HTML Document (.pdf) is getting downloaded. Current ...
Mayank Parnami's user avatar
0 votes
2 answers
50 views

Format Amount in Vietnamese in vf Page

I am having a requirement where I have to display amount coming from apex in Vietnamese format in VF page. As there are lots of amount and lots of calculation going behind it so I can't do it in Apex. ...
darkshadowrule's user avatar
1 vote
1 answer
60 views

Visualforce Page: How to display all the content/data in a single VF PDF page

I am trying a display a content/data in a pdf in VF page rendered as PDF, but in pdf the content is splitting into multiple pages which I dont want, is there a way we can try displaying everything in ...
Sagar 's user avatar
  • 25
0 votes
0 answers
85 views

PDF File Preview Not Working On Salesforce Mobile App - "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 on the Salesforce mobile app using an Android tablet and try to preview a PDF file, not ...
Emmanuel_M's user avatar
0 votes
0 answers
27 views

Salesforce CPQ document preview rendering incorrectly

When I enter the following into a Rich Text Area field: this is what renders in the document preview: and this is the HTML from the Rich Text Area field: <p>Normal text <span style="...
user123647's user avatar
0 votes
1 answer
319 views

Not able to render HTML in PDF using jsPDF library in LwC

I am trying to build a simple custom pdf in LwC using jsPDF v2.5.1 library and loading this library using loadscript in rendered callback method, now I am trying render HTML content in PDF using doc....
Sagar 's user avatar
  • 25
0 votes
0 answers
293 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
  • 659
2 votes
1 answer
132 views

Visualforce CORS Error Even When Origin Is Whitelisted, Headers Are Also Set

I'm creating a PDF viewer using Visualforce and the PDF.js library. My project doesn't include react. When I try to execute pdfjsLib.getDocument() passing the URL of a PDF stored in Salesforce itself, ...
Emmanuel_M's user avatar
0 votes
0 answers
177 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
0 votes
0 answers
42 views

Quote PDF generated from Community Page is blank

I am trying to automate generating Quote PDF Documents. My goal is to create a button, which creates Opportunity, Quote and QuoteDocument. I am using such code for generating QuoteDocument: String ...
adkowal's user avatar
0 votes
1 answer
27 views

dynamic input value in my vf page is not getting save while I save vf page as an attachment

I have a requirement that I have to create a form where some values will be prepopulated and some values will be filled by user then on clicking on button, page will be rendered as PDF and then attach ...
vidushi agarwal's user avatar
0 votes
1 answer
35 views

display paragraph based on conditions

I have a VFP and I'd like to show some of my paragraph based on conditions. Here is one example of my code: <apex:outputText rendered="{!Offer__c.Offer_Type__c == 'Conditional' && ...
bbas's user avatar
  • 1
0 votes
1 answer
61 views

I want to add image on Visualforce PDF but i cant change its size

<table border="1"> <tr> <th>Before Trial Image</th> <th>After Trial Image- 1ST Week</th> <th>After Trial Image- 2nd Week&...
user131546's user avatar
0 votes
0 answers
166 views

How to set header height in visual-force pdf and issue in content over laying in pdf

My issue is table content overlap in second page please guide me to increase header height ========================== My issue is table content overlap in second page please guide me to increase ...
Ravi Mavenprofserv's user avatar
0 votes
0 answers
287 views

OmniStudio PDF Action will not Open PDF for Non-System Administrators

I have built an OmniScript that collects information from the user through steps and saves it back to Salesforce via a DataRaptor Load. It then generates a PDF (throught the OmniScript PDF Action) ...
Nicole's user avatar
  • 1
0 votes
0 answers
87 views

Visualforce .pdf Page Break Table Row Borders appearing on Previous Page

I am using a Visualforce Page to output to a .pdf. On my page I have some large table rows that I want to stay together on page breaks. In my stylesheet I have added "page-break-inside:avoid&...
Jeff Callahan's user avatar
0 votes
0 answers
27 views

CPQ quote generation not recognizing line feed (\u000A) from SFDC text field

CPQ quote generation not recognizing line feed (\u000A) from SFDC text field. Resulting PDF lines run together. Is there a different code that should be used.
Philip Ammon's user avatar
-1 votes
2 answers
339 views

PDF from SFMC Cloud Page?

I am looking for a way to use Cloud Pages to build a PDF. Use case: User gets email with a link "click here for account summary" and the info needed to build the account summary is in a DE. ...
JulieHurtz's user avatar
0 votes
0 answers
109 views

DocuSign EmbeddedSign for Portal user notworking

I am using this code to call docusign EmbeddedSignature using Screen Flow as a portal user. The issue is in Debug mode I am able to see the docusign popup. When I run as user I am not able to see the ...
Tamil's user avatar
  • 714
0 votes
1 answer
259 views

Visualforce pdf - only show footer on even pages

I am trying to make a visualforce page that omits the footer if certain conditions are true. I made a test page that uses apex:repeat to only show the footer on even-numbered pages, but it's not ...
Tom's user avatar
  • 153
0 votes
0 answers
59 views

set VF outputText value using REST call

I'm trying to generate PDF from richtext(which is not saved in SF) that I get from Flow via InvocableMethod. Im not able to set it as VF URL parameter because in that case the URL size will over the ...
elvi's user avatar
  • 1
0 votes
0 answers
31 views

Is it possible to use font type Calibri or Garamond on a Visualforce page which is rendered as pdf? [duplicate]

We have a scenario in which we have to set font type Calibri and Garamond on a VF page which is rendered as pdf. We have tried it using Static resource which is working fine on the VF page only if we ...
Nikita Gupta's user avatar
0 votes
0 answers
159 views

How can I make max-width work on Visualforce page with renderAs='PDF'

I'm trying to apply the max-width CSS attribute on an image inside a apex:outputText but it is not working, while if I use the width it is working. Here is my code: <apex:page id="ContentPDF&...
Lior Lavi's user avatar
  • 334
3 votes
1 answer
474 views

Is it possible to call a LWC from Apex?

I need to create a PDF document completely customizable and I decided to use an external JS PDF generation lib (PDF-lib) to create the documents from a LWC instead of using the Visualforce PDF method. ...
Luis Fernando Kumruyan's user avatar
0 votes
1 answer
94 views

SFDC Probelm while viewing preview in LWC

While previewing the document , it is showing no preview, please give input if possible , and i have pasted the code below handleDocumentView(event){ console.log('view button called'); console.log(...
sharanabasava jnv's user avatar
0 votes
0 answers
282 views

Issue with PDF file using getContentAsPDF

I am creating attachment with paypal invoice using getContent method in apex and attaching file under record but there issue with pdf file. it's not creating properly Here is my code : String ...
uday chavan's user avatar
0 votes
2 answers
556 views

problem with adding custome font and pdf-lib

I am trying to use pdf-lib to create and edit pdf files. Imported libraries as static resources, source code from here https://unpkg.com/pdf-lib/dist/pdf-lib.js https://unpkg.com/@pdf-lib/[email protected]....
Kam Kaliev's user avatar
-1 votes
1 answer
652 views

How we can export data in PDF format in lightning web Component?

html:- <template> <lightning-card title="Account to Contact Communication in LWC" icon- name="standard:contact"> <div class="slds-var-m-...
Crazy XYZ's user avatar
1 vote
1 answer
700 views

How to pass data from javascript controller to iframe in LWC

I am trying to pass a pdf as a preview to an Iframe in LWC. Note: a preview, not showing an existing pdf I followed following example: How to render a PDF generated with jsPDF in a LWC How do I pass ...
Thomas's user avatar
  • 2,294
1 vote
1 answer
600 views

How to create pdf using pdfjs library in lwc

I have a lwc in which I try to render a pdf. I have zipped the pdfjs library and added this as a static resource. In my template I can call the library as following: <iframe id="...
Thomas's user avatar
  • 2,294
3 votes
1 answer
243 views

Charts in Visualforce generated PDFs in early 2023

I needed to return to this subject this week and Googling revealed some potentially misleading fairly complicated solutions. There are multiple posts on the subject here e.g. Image Charts in ...
Keith C's user avatar
  • 134k
0 votes
0 answers
297 views

Omnistudio Docusign-Integration procedure send Quote PDF document as attachment

In my sf org, in quote object i have the pdf generation button, upon clicking the button it will give the quote data as pdf. this is existing functionality. My requirment is to send this pdf to ...
Kani's user avatar
  • 1
0 votes
1 answer
118 views

Unknown Property Error using Custom Controller When Trying to Save Visualforce Page Pointing to a Controller

I am using an invocable method along with a controller to feed a list of records being returned from the flow and invocable method, into a VF Page in order to render multiple records with the field ...
user avatar
0 votes
0 answers
87 views

VF page generating blank pdf after domain masking of site url

We have a VF page that is accessed by the site guest user and it generates pdf in the future method. This code was working fine but recently we did domain masking in our environment using an SSL ...
Gunjan Khandelwal's user avatar
1 vote
1 answer
338 views

Converting HTML String into pdf and sending through REST

I have a string having HTML content with me inside a apex method(this class is not linked to any vf page). I need to convert the HTML on the fly into pdf and send through rest API. I know we can ...
PK SF's user avatar
  • 41
1 vote
0 answers
90 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
0 votes
2 answers
1k views

Omnistudio - Omniscript - PDF Action and PDF Template

We are trying to get a list of accounts records using a DR in omniscript. Is it possible to dynamically display account records dynamically using the PDF Action and PDF template? For example, if I ...
Ryan K's user avatar
  • 1
0 votes
1 answer
418 views

How to control the size of the background image in visualforce PDF

I have a visualforce PDF, and I have an image I have to use as background, it contains a logo and some visuals. That image is in A4 format, but when I add it to the page as background image, it works ...
joacoiudica's user avatar
1 vote
0 answers
583 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
116 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
111 views

Handle PDF download campaigns using Marketing cloud [closed]

Our client is using Web-to-Lead to generate leads from a Contact Us form in their website, so these leads can be used directly in Salesforce campaigns. Some of these campaigns are mainly Newsletters ...
David Boada's user avatar
1 vote
0 answers
48 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
  • 109
0 votes
1 answer
2k views

Download a VF page as pdf with a button

I want to have a button that dowload a pdf page as a file related to the record from where I pressed the button. My page is working well, but I had to add a controller so clicking on the button ...
Alexis's user avatar
  • 109
0 votes
2 answers
643 views

problem styling visualForce page in PDF

I have a visualForce page with good styling, but when I try to transform it into a pdf page, some of the css styling doesn't work anymore here is my visualForce page: and the pdf version: as you can ...
Alexis's user avatar
  • 109
0 votes
1 answer
736 views

Preview entire ContentVersion (not just 1st page)

I am using the following command to preview a PDF ContentVersion file inside a LWC: /sfc/servlet.shepherd/version/renditionDownload?rendition=SVGZ&versionId=0687Z000002EkVc&operationContext=...
Roixo's user avatar
  • 41
0 votes
1 answer
1k views

Convert PDF file returned as byte[] in apex callout into blob and Save as file

I am making third party api call from Apex using below piece of code:- HttpRequest req = new HttpRequest(); req.setEndpoint(endpoint); req.setMethod('POST'); req.setBody(Body); req.setHeader('Content-...
sanket kumar's user avatar
  • 14.9k

1
2 3 4 5
13