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

Using blob variables in apex code [duplicate]

Good afternoon, A while ago I made a post on this topic to see how to send blob variables from a visualforce to the controller. Finally I did not find any solution that was useful to me, so I chose to ...
0 votes
1 answer
949 views

Wrap a long line of text that is without spaces in visualforce rendered as pdf

Is there any CSS that can break a long line of text into multiple lines? I have the following table and I get the data from my org. As you can see, the Detail column has text that overlaps with the ...
1 vote
2 answers
2k views

Save image as PDF using Apex and send email with attachment

We have an API which return us a base64 format of am image file. We have to attach this image file as PDF in an email and send it on. The issue is if we use Base64.toPdf('base64 version of image file'...
-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-...
2 votes
2 answers
100 views

Issues using jsPDF library in an LWC

recently in our org we have needed the ability to create PDF files. I am aware you can do this using visualforce pages with the render as PDF method, however we would like the pdf to be styled more ...
0 votes
1 answer
1k 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=...
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 ...
0 votes
2 answers
974 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]....
0 votes
0 answers
37 views

Image on PDF Quote

I have an image field in QuoteLineItem and I want to show it in the Quote PDF, but the images look like this, does anyone know if it is possible to show an image in the Quote PDF
0 votes
1 answer
980 views

Pdf logo and Header adjustment in Visualforce Page

I have a VF page which shows the logo and header in pdf(dynamic) like this:(by renderAs="pdf")- but on the next page the "header and logo overlaps" and look like this:- I am using this part of code ...
0 votes
0 answers
49 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 ...
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 ...
3 votes
2 answers
2k views

Text in RTF field is cropped in PDF

I have custom RTF field in a custom object which would have long formatted text. The text is cropped to certain width in the generated PDF. I noticed that width of the table in rich text is set to ...
0 votes
0 answers
37 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 ...
0 votes
1 answer
1k 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....
0 votes
1 answer
1k views

Print a pdf from an aura component in community

I am trying to print a pdf from an aura component in Salesforce Communities and I'm having some difficulties. Does anyone know a good way to do this? Currently the pdf is saved as a static resource. I'...
0 votes
3 answers
950 views

Is there a way to export custom developed Chart (Chart was developed using Chart.js) to PDF without 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 without using any other library. I tried ...
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; ...
0 votes
0 answers
48 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 ...
-1 votes
1 answer
8k views

Open PDF in browser instead of Downloading

Using sfc/servlet.shepherd/version/download/{!id} in URL to download PDF files from ContentVersion in a public site. Is there anyway to get a PDF file to open in a browser instead of Downloading it ...
0 votes
3 answers
4k 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 ...
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 ...
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 ...
0 votes
1 answer
1k views

apex:outputField not formatting phone numbers in pdf

Is there any reason why the apex:outputField in a visualforce page rendered as a PDF would not be formatting the phone numbers? <apex:outputPanel rendered="{! generalContact.Phone_Field__c== '' }"&...
1 vote
0 answers
220 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 ...
0 votes
1 answer
83 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 ...
0 votes
0 answers
52 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: ...
2 votes
1 answer
180 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. ...
0 votes
0 answers
132 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="...
-1 votes
1 answer
76 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 ...
0 votes
1 answer
43 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 ...
0 votes
1 answer
86 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 ...
0 votes
0 answers
76 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 ...
-1 votes
1 answer
48 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 ...
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?
0 votes
0 answers
60 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 ...
1 vote
1 answer
753 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 ...
1 vote
1 answer
1k views

Are there any limitations to consider when sending PDFs through application/octet-stream?

I have a requirement to post PDF files from Salesforce to an endpoint. On looking into how to achieve this using APEX I came across this article about 'multipart/form-data'. For my requirement I've ...
-1 votes
1 answer
107 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 ...
-1 votes
1 answer
74 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 ...
1 vote
1 answer
506 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 ...
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 ...
0 votes
0 answers
225 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-...
1 vote
1 answer
391 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. ...
0 votes
0 answers
440 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 ...
0 votes
2 answers
85 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. ...
1 vote
0 answers
986 views

Lightning renderAs="pdf" default save button

I'm trying to create a PDF with a small preview. So using a visualforce page to show the pdf and using the default 'save' button. When rendering the page without renderAs="pdf" and including the js ...
1 vote
1 answer
84 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 ...
0 votes
0 answers
321 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 ...
0 votes
0 answers
88 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="...

1
2 3 4 5
14