Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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
0 votes
0 answers
42 views

Image is rotating to left in Visualforce Page using RenderAs="pdf"

I'm facing an issue: I'm creating a PDF and using the image stored in the files object. I'm creating a Visualforce page with RenderAs="pdf". The image is appearing, but it's rotating to the ...
Aditya Narwade's user avatar
0 votes
0 answers
34 views

Extra Page When Printing Web Pages in Lightning Experience

When printing web pages in Lightning Experience, there is always an extra page. This is true for any Record pages, App Pages from Lightning Component or Lightning Page Tabs. Adding css in Lightning ...
Sid Fortunato's user avatar
0 votes
0 answers
29 views

OmniStudio DocGen - macro support

Has anyone successfully generated documents with Omnistudio Document Generation that contain macros? It works fine with Word documents, but not with PDFs. Does anyone have a workaround or solution for ...
Hamza's user avatar
  • 197
1 vote
0 answers
190 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
0 votes
0 answers
50 views

div not working as block element in renderAs Pdf in VF page?

I am generating a pdf using renderAs pdf in VF page. In the page the <div> is not working as it should(block) , It is overlapping with its parent div .Here is the pdf: Here is the VF page code: ...
Sahil Gupta's user avatar
2 votes
1 answer
147 views

getContentAsPDF() - Internal server error

I am trying to generate a table of records in pdf and sending it as email attachment from apex by using getContentAsPDF() method . The method works fine until we are processing more then 12 records. ...
Sahil Gupta's user avatar
0 votes
0 answers
119 views

display pdf in Iframe in lwc

Getting below error while displaying a pdf in iframe in lwc top.location='https://utalmesivtakj--developer2.sandbox.my.salesforce.com/ex/errorduringprocessing.jsp' My HTML : <iframe id="...
Sahil Gupta's user avatar
0 votes
1 answer
79 views

getContent() works in JS Button but not in Quick Action LWC

I am working on converting some JS buttons to Lightning. These buttons invoke an Apex class that calls getContent() on a VisualForce page with a renderas attribute of PDF & then store that output ...
Jack Odell's user avatar
-1 votes
1 answer
65 views

Vİsualforce page Currency decimal formating [duplicate]

i want to format my currency in visualforce page pdf. Intead of 123,456.78 i want to display 123.456,78 I mean, integer parts will separate with dot. Decimal parts will separate with comma. I tried to ...
Hakan Cenk Kalınoğlu's user avatar
0 votes
1 answer
42 views

Visualforce displays decimal number 0.43 as .43

I am trying to display numbers with up to 2 decimal places in my Visualforce PDF. If the number is bigger than 1 (i.e. there is no 0 at its front), the value is shown correctly. However, in cases ...
hajidayi's user avatar
0 votes
0 answers
73 views

Visualforce saving PDF fails because of PageReference and getContent() in Experience Cloud/Community

I created a Visualforce page quick action on Opportunity object. It has an iframe to another visualforce page (renderAs='pdf'). The Visualforce Page action (parent) has a custom button to download the ...
Ozan Soğukpınar's user avatar
0 votes
1 answer
71 views

S-Docs for Salesforce - Inserting Hyperlinks [closed]

I’m using the free version of S-Docs for PDF generation on Opportunities. Although the help documentation mentions being able to insert hyperlinks in the template editor, I do not see this button as ...
Alexis Frisch's user avatar
-1 votes
1 answer
47 views

Uploading 200 pdf into MC and needing the link in a data extension [closed]

I need to upload over 200 pdfs into MC every quarter. After that I need each pdf link to be inserted into a data extension. I've been doing this by hand but is there any way to get the link into the ...
Keria Shadow's user avatar
0 votes
0 answers
55 views

Editable PDF Files Rendering Blank on Preview

I hope this message finds you well. I have a question regarding an issue with the compatibility of PDF documents in the Salesforce document preview. In our iOS app, we use editable PDFs with elements ...
Stanislav's user avatar
1 vote
1 answer
680 views

Trouble loading PDF.js lib in LWC

I have trouble loading the PDF.js library in my Lightning Web Component. Whenever I load the page with the component, I get : PDF.js could not be loaded undefined Twice, this additional error popped ...
Domovyak's user avatar
-1 votes
1 answer
94 views

AppExchange to generate PDF of a record

I need a free app to generate PDF of a order with the order items in a table, I need to choose the fields that will be displayed, also I need a header and the logo needs to be changed to another one ...
Alexia's user avatar
  • 83
-1 votes
1 answer
68 views

Export Complete Wave Dashboard as PDF with Visualforce/Lightning

Is it possible to get the Wave dashboard as a PDF document or in the mail as an attachment programmatically with either a VF page or Lightning? I have tried the VF page code to get it as a pdf option ...
user140077's user avatar
1 vote
1 answer
459 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
68 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
186 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
1 vote
1 answer
354 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
0 votes
0 answers
402 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
82 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
79 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
301 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
75 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
901 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
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
  • 707
2 votes
1 answer
340 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
1 vote
0 answers
569 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
97 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
30 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
57 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
127 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
283 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
-1 votes
2 answers
630 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
1 answer
439 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
  • 152
3 votes
1 answer
1k 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
144 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
494 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
932 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
1k 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
1k 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,298
1 vote
1 answer
1k 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,298
3 votes
1 answer
416 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
  • 136k
0 votes
1 answer
239 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
1 vote
1 answer
572 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
148 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
2k 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
605 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
2 3 4 5
13