Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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

Multiple view panes in a Custom Object with a PDF in one pane and fields in the other

I have a Custom Object which has fields relating to a series of questions that our team will need to answer while reviewing a pdf document. I have all the process flows etc. built around this custom ...
user avatar
0 votes
0 answers
24 views

PDF Generation Failed. Check the page markup is valid in Production

I am trying to create a pdf that will print a page multiple times depending on how many signatures are attached to the record. It's all working fine in sandboxes but is getting the "PDF ...
user avatar
0 votes
0 answers
17 views

How to PDF response received from apex rest callout in LWC

My apex is making a rest callout with bearer token and getting a pdf in response as it's body. How can I show that pdf in LWC component ? PDF response starts like this - "%PDF-1.4 %���� 1 0 obj&...
user avatar
1 vote
0 answers
138 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 ...
user avatar
1 vote
1 answer
32 views

Break space not working for Arial Unicode MS in Visualforce Page

I have been trying to implement Chinese traditional characters in my Visualforce pdf. Seeing the salesforce documentation, I changed the font to Arial Unicode MS but the word-wrap: break-word; is not ...
user avatar
0 votes
1 answer
23 views

Salesforce VF page: apex:repeat returns data and blank fields

I have a record that has 4 recordTypes. Each recordType has a description field(s). I'm currently using the code below to display the description field(s) but I can't get rid of the extra blank fields ...
user avatar
0 votes
0 answers
28 views

Crop Image in Visualforce PDF Render

I am displaying an Image in a visualforce email template attachment rendered as PDF, this image dimensions are fixed to 500x250, I would like to crop the bottom part and right side and just scale the ...
user avatar
0 votes
0 answers
41 views

Download and open PDF file from Salesforce Site Aura component

This is from another question 'Render PDF from Aura Component on a Salesforce Site' which was not resolved. I need to render an existing pdf(editable) file. So when the user clicks the link they can ...
user avatar
  • 389
1 vote
0 answers
39 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 ...
user avatar
0 votes
1 answer
60 views

Pass HTML Code to JSPDF or similar

I need some advise with the following use case: We have a custom object "Invoice" and want to generate the Invoice PDF using a JavaScript Library that is able to convert an HTML Code of the ...
user avatar
0 votes
0 answers
23 views

Show PDF file on button click

I have a PDF file attached to a record in notes and attachment and on button click that PDF file should be displayed. i am using aura component. can anyone help me out please. thank you.
user avatar
0 votes
0 answers
19 views

Render PDF from Aura Component on a Salesforce Site

I need to render a pdf(editable) that has been provided when the customer clicks the link. The aura component is used on a Salesforce site. What is the best option to make the pdf available? Can I ...
user avatar
  • 389
0 votes
1 answer
46 views

Collection size 1.079 exceeds maximum size of 1.000

I create a very simple query to display the result at visualforce and render as pdf to store the pdf in an account. Unfortunately I ran always into Collection size 1.079 exceeds maximum size of 1.000 ...
user avatar
  • 83
1 vote
0 answers
23 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 (...
user avatar
1 vote
1 answer
27 views

PDF Generation Failed when first result of list does not match criteria

"PDF generation failed. Check the page markup is valid." I have an apex data table to list cases related to a contract. However, I want to only display specific record types on the list. My ...
user avatar
  • 17
1 vote
1 answer
138 views

LWC: Load static resource PDF to use with third party library: PDF-Lib

Long-time answerer, first-time questioner... I am trying to fill out a pdf in LWC using a third-party library, PDF-Lib. There is a great example of how to create a pdf with this library that gets me ...
user avatar
  • 350
0 votes
1 answer
29 views

Only able to get single row in quote pdf, not multiple

I am trying to create a quote pdf based off the opportunity line items in Salesforce. So far I have only been able to generate a single row in the quote pdf and not multiple. When I try to add ...
user avatar
  • 1
0 votes
0 answers
23 views

Not able to hide table row in custom CPQ quote template

I am trying to create a custom PDF template for CPQ quote and depends on some condition I want to hide a table row,so trying like below <table-row visibility="hidden"> ...
user avatar
  • 59
0 votes
1 answer
180 views

Render VisualForce page report of custom object to PDF and create attachment via page detail button

I have a VisualForce page which shows a report of a custom object MyCustomObject. I have two page detail buttons, one for "Show report" only showing the report rendered as PDF and one "...
user avatar
  • 165
0 votes
0 answers
104 views

get pdf from external url

In the response from 3rd party I am getting url, I want to grab that url and save that pdf in a salesforce object. If I manually use that url and paste in browser it downloads the file. But when I use ...
user avatar
0 votes
0 answers
41 views

visualforce page PDF not fitting the screen widht

i am rendering a visualforce page as PDF, but if the device is a mobile phone, the pdf is shown only for a small part, and the user needs to scroll to the right. Is there a way to always show the pdf ...
user avatar
0 votes
1 answer
28 views

Is there a way to map fields to an existing (non VFP) PDF document?

I have a requirement to update an existing (non-VFP) PDF with data from our opportunities. We have a PDF with blank spaces like these: Is there a way to achieve this requirement via apex/vfp or lwc? ...
user avatar
  • 771
0 votes
0 answers
34 views

table formatting when rendering as PDF

I have a visual force page they want rendered as a PDF. Formatting looks great until I add renderAs="PDF" to the apex:page options. The background color and formatting works when rendered as ...
user avatar
  • 558
1 vote
0 answers
70 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="...
user avatar
  • 1,151
0 votes
0 answers
197 views

How to embed a Salesforce File/ContentVersion into a VisualForce rendered PDF?

I've tried some searching and it's unclear to me if what I want to do is possible in Salesforce. I have an image file attached to a Salesforce Case, and I want to use an <apex:page showHeader="...
user avatar
  • 1,151
0 votes
1 answer
146 views

How to set Header and Footer in Word document from VF page [closed]

I am trying to get a word document from the VF page. Now I am able to get the content and images from the VF page but struggling with the header and footer . I will show the code that I am using for ...
user avatar
0 votes
0 answers
67 views

Help with response of Script.Util.HttpRequest in SSJS

Making an external REST call and the response is raw PDF data. I am able to view the PDF in chrome browser but any images inside are blacked out. If I open the PDF in Acrobat I get "Insufficient ...
user avatar
  • 1
-1 votes
1 answer
157 views

how to create pdf out of custom object and send it in email? [closed]

I want to send a pdf through email to users and the pdf is to be created from data of a custom object. How to accomplish this
user avatar
0 votes
1 answer
64 views

Display Cms Document Community site

Context: On a community site I have a requirement to display specific CMS. A lightning component call an apex function to get specific CMS using the function function ConnectApi.ManagedContent....
user avatar
  • 423
0 votes
1 answer
287 views

Rendering Aura Component as PDF via Visualforce Page

So my current requirement is to create a "document" with some tables and such and then allow it to be downloaded as a PDF file. To go about this, I created an Aura component, then created a ...
user avatar
  • 1
1 vote
1 answer
427 views

Sending PDF's through application/octet-stream. Any limitations to Consider?

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 the following re: 'multipart/form-data' https://blog.enree.co/2013/...
user avatar
0 votes
1 answer
138 views

Can't wrap long text with no whitespaces in Visualforce page rendered as PDF

I have a table created in Visualforce page and rendered as a PDF. There are columns where long texts (with no whitespaces) can exist. However, it seems impossible to make these texts to wrap so that ...
user avatar
  • 13
2 votes
0 answers
59 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 ...
user avatar
0 votes
0 answers
43 views

Send PDF (created in Salesforce) with Marketing cloud [duplicate]

As title suggests I have requirement to send file (content document, not attachment) created as PDF through marketing cloud. It's fairly common process, point is to send PDF print of receipt (invoice, ...
user avatar
0 votes
1 answer
125 views

Visual Force is not Rendering Inline Css when rendered as PDF

In Our Application , We are getting a formatted Html string from a external library(Bryntnum - provides gantt chart features). The Formatted Html is returned in a string format. Our business need is ...
user avatar
0 votes
0 answers
21 views

Lock aspect ration when re-sizing image in a rich text field

I have a visual force page rendered as a pdf. The users insert an image into a rich text field and this is displayed when rendered as a pdf. I have set the size of the image however this affects the ...
user avatar
0 votes
0 answers
46 views

How to print the view of a Lightning Web Component which is used Accordion Section

Can we print the lightning web component view in which I have used lightning accordion section? Please help me to understand as I am not able to find more on this. Please see the below screenshot:
user avatar
  • 27
0 votes
0 answers
132 views

How to pass parameters to VisualForce page with POST call from APEX

I have some custom data that I want to pass to a VisualForce page in order to render it as a PFD and then send it as an attachment via e-mail. This data is not stored in Salesforce. When trying to ...
user avatar
1 vote
0 answers
68 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 ...
user avatar
0 votes
1 answer
886 views

How to open a save as dialog from javascript?

I have a pdf file as a blob in javascript. I want to save the it on my local machine. I am creating an anchor tag, and simulating the click event to download the file. I want to open the "Save as&...
user avatar
  • 1
0 votes
1 answer
66 views

HTML Table display issue while generating PDF using renderAsPdf in vf page?

I am trying to display multiple html tables in vf page using apex:repeat using renderAsPdf. Issue: Some times the HTML table displays inappropriate way at the end of pdf page like below image : does ...
user avatar
1 vote
0 answers
59 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 ...
user avatar
0 votes
1 answer
32 views

Render output panel based on page number

Is it possible to render an output panel based on the page it's being displayed on in a visual force pdf? <apex:outputPanel rendered = "counter(page) == 3">
user avatar
3 votes
1 answer
130 views

What's the best way to display a PDF file in community builder?

I have a pdf file that I'd like users to be able to open from their home landing page. I've tried using CMS in community builder, but the content just comes up as a big white or grey box. I went into ...
user avatar
  • 31
-1 votes
1 answer
30 views

Render apex:tabPanel as a pdf using VF pages

I am trying to render a vf page as a pdf. The page contains tab panels, but when it is rendered as pdf, the tabs are not clickable. Only the active tab shows and I am unable to switch to other tabs. ...
user avatar
2 votes
0 answers
66 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 ...
user avatar
  • 31
0 votes
1 answer
142 views

Render a PDF document inside Visualforce page which renderAs PDF

I've a requirement to create a Visualforce page renderAs PDF. This page has one section in which I want to render information which is stored in the another document, this document could be Attachment ...
user avatar
  • 107
0 votes
1 answer
280 views

PDF.js does not render the provided PDF in LWC

I am trying to use pdf.js to render a base64 representation of a pdf. My component is as follows : <template> <div class="wrapper"> <iframe src="/resource/...
user avatar
  • 155
0 votes
0 answers
28 views

How can I specify a PDF file name? [duplicate]

I'm placing a button on a Visualforce page that creates a PDF in the contract object. If I press this button, a PDF will be generated, but if I save it with "Save as", the file name will ...
user avatar
  • 31
1 vote
1 answer
190 views

Use CSS in PDF with Apex

I'm trying to generate a PDF file using Apex only (without using VF). I'm having trouble using basic css properties like width and height, I tried to include them in the head, tried inline, but ...
user avatar
  • 1,431

1
2 3 4 5
13