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
1 answer
26 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 ...
1 vote
0 answers
58 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 ...
1 vote
0 answers
27 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 ...
-1 votes
0 answers
29 views

Create a PDF file from a Cloud Page in Marketing Cloud and attach the file to the client page in Salesforce

We have build a Landing Page on Marketing Cloud to get client RGPD consent. When the client fill the consent, the fields related with RGPD are updated on the client page on Salesforce. This process is ...
  • 1
1 vote
0 answers
40 views

Handle PDF download campaigns using Marketing cloud

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 ...
1 vote
0 answers
27 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 ...
  • 89
0 votes
0 answers
37 views

PDF sent in email is broken

I want to send an email with pdf attach to it. I created a visualforce and rendered to pdf and this visualpage to an apex class to get the pdf and a button in LWC to send this email. I manage to send ...
0 votes
1 answer
113 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 ...
  • 89
0 votes
2 answers
47 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 ...
  • 89
0 votes
1 answer
68 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=...
  • 31
0 votes
1 answer
232 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-...
  • 13.3k
-1 votes
1 answer
83 views

REST web Service to consume PDF in Binary Form from external System

I have a requirement where external system will be posting PDF to salesfore in binary form as REST Post call and I need to cosume the PDF to attach it to the Object as attachments. Following is my ...
  • 1,275
0 votes
2 answers
629 views

Generate and download PDF file from Base64 Encode String

I want to create a LWC to download a simple PDF file with a random string. Here is my code: Apex class: public with sharing class PdfLwcController { @AuraEnabled public static String ...
0 votes
1 answer
56 views

how to force a page break after n amount of iterations on apex:repeat inside table (pdf visualforce)

In my pdf visualforce, I have a table which iterates over a list of records: <apex:component controller="SaleInvoiceController" access="global"> <apex:attribute name="...
0 votes
1 answer
101 views

Getting content from within triggers is currently not supported

I am sending a pdf in an email when the opportunity is created on updated which works fine. Now when the opportunity is created through batch so its throws the error future method can not call future ...
  • 3
0 votes
0 answers
43 views

Sending file from Salesforce to the Einstein Platform Services API

I'm trying to use the Einstein Platform Services API, specifically the OCR service (https://metamind.readme.io/docs/extract-data-from-custom-forms) to detect key value pairs in a custom form. I would ...
0 votes
1 answer
160 views

Apex: From Word Document get content and save as PDF

According to Salesforce limits, generating PDF using special characters is impossible to show bold characters. I still have the issue described here, where from a rich text i want to show the field's ...
0 votes
0 answers
39 views

How to display list of content related fields on vf page when rendered as pdf

I need to display all the content notes related data on the vf page and that page will be rendered as pdf.I fetched all the details but now how to display it on vf page i am unable to do .I tried ...
  • 1
0 votes
1 answer
69 views

FATAL_ERROR Internal Salesforce.com Error when getContentAsPDF in other org [closed]

I have 2 org. I developed VF page with renderAs="pdf" at first org. And this work correctly. But when I deployed this VF page in other org i see FATAL_ERROR Internal Salesforce.com Error. ...
0 votes
0 answers
37 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 ...
1 vote
0 answers
368 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 ...
1 vote
1 answer
82 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 ...
0 votes
1 answer
32 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 ...
0 votes
0 answers
53 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 ...
0 votes
0 answers
162 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 ...
  • 389
1 vote
0 answers
61 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 ...
0 votes
1 answer
838 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 ...
0 votes
0 answers
100 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.
0 votes
0 answers
45 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 ...
  • 389
0 votes
1 answer
53 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 ...
  • 95
1 vote
0 answers
35 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 (...
1 vote
1 answer
33 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 ...
  • 19
2 votes
2 answers
363 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 ...
  • 380
0 votes
1 answer
31 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 ...
  • 1
0 votes
0 answers
95 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"> ...
  • 59
0 votes
1 answer
647 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 "...
  • 165
0 votes
0 answers
382 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 ...
0 votes
0 answers
99 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 ...
0 votes
1 answer
38 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? ...
  • 791
0 votes
0 answers
39 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 ...
  • 624
1 vote
0 answers
246 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="...
  • 1,218
0 votes
1 answer
688 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="...
  • 1,218
0 votes
1 answer
307 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 ...
0 votes
0 answers
126 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 ...
  • 1
-1 votes
1 answer
477 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
  • 11
0 votes
1 answer
129 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....
  • 473
0 votes
1 answer
627 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 ...
  • 1
1 vote
1 answer
704 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/...
0 votes
1 answer
307 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 ...
  • 13
2 votes
0 answers
91 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 ...

1
2 3 4 5
13