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
1answer
30 views

How to display downloaded PDF blob in an iframe?

I am using a HttpRequest to GET a PDF: http://www.example.com/path/some.pdf I am using response.getBodyAsBlob() to store the data into a ContentVersion I can view the PDF if I open the ...
0
votes
0answers
9 views

Save visual page in the same method as api callout

I have a 2 visual pages and 1 controller: The controller called JSONDeserialize that call an external API, get the JSON, analyze it and save the results in some variable. One visual page called ...
0
votes
1answer
29 views

Download VF page as PDF file on local drive when user clicks on download button [on hold]

Can someone help me to download a VF page when the user clicks on the download button? Current functionality is when the user clicks on the download button it will take the user to Print page and ...
0
votes
0answers
15 views

The report returned no results

I use a link of a chart in a report to display this chart on a Visualforce page that is rendered as PDF. (copy image address). It seems like the page is reaching that chart but it displays no ...
0
votes
1answer
30 views

How to generate multi page PDF using Visualforce

I would like to generate a multi-page PDF using Salesforce \ Visualforce, so that I can print multiple records at once. Each PDF page comes from a ContentVersion record. I know I can generate a PDF ...
0
votes
1answer
29 views

Render as pdf with css not working properly

I have a controller which calls a couple of function. The variables are then send to the apex page, which is mostly a html page. When I am redirecting to the visual force page, the report I want to ...
0
votes
0answers
8 views

How to add a watermark to a PDF Document Used On a Salesforce Site and Download it?

I have a Salesforce Site where we are displaying a particular PDF document inside the Iframe. The PDF is in readyOnly State. I need to create a Custom Button inside the Div where Iframe is being ...
0
votes
0answers
56 views

SOQL error on custom object

I'm trying to set up the following tutorial : https://blogs.absyz.com/2017/07/13/workaround-for-pdf-rendering-in-sf1/ It works perfectly for the Contact tab but, when i try to adapt this for my ...
1
vote
1answer
71 views

Is it possible to retrieve a signed PDF from Docusign and then put it in the Notes & Attachments?

We are currently developing an app in Salesforce for docusign in which when we click on a button called, 'Send to Docusign', an Apex code is run and this will push the pdf to Docusign for signing. ...
1
vote
1answer
34 views

Is it possible to generate a PDF with a signature tag for DocuSign?

Is it possible to generate a PDF using Apex and then embed the 'Signature tab' of DocuSign into the PDF? For example: in the Contract Object we have a text area in which the user could add legal ...
0
votes
1answer
30 views

Unable to avoid the page breaking of a list in visualforce PDF

I have to do a visualforce that render a list of list of quotelineitem, that can be spited on more page cause the visualforce is seted to renderAs="pdf". To reach my goal i decide to use an apex ...
2
votes
0answers
24 views

Japanese in VF generated pdf

I need to render Japanese characters as HTML in a pdf that's generated using Visualforce page. I want all the formatting to be applied along with the Japanese characters. I have used 'Arial Unicode ...
2
votes
1answer
63 views

Render Visualforce page as PDF not working in a Community

I have a VisualForce page that contains an image that I want to render as a PDF. This rendering is done as part of a controller call, which will take the rendered PDF blob and attach it as a File to ...
1
vote
0answers
48 views

How do we name a Visualforce PDF without Apex (Filename)

Here is our Visualforce Page Attributes In this example we are trying to name the PDF "Hello" <apex:page title="PDFPage" renderAs="pdf" standardStylesheets="false" standardcontroller="...
0
votes
0answers
17 views

Visualforce ONLY, Sorting a related list of records within the Parent Record

Using Standard Controller No APEX, we can generate a Quote PDF using Visualforce without any Apex. Our only issue is we are not sure how to order the Quote_Line_Item__r records. They seem to be ...
0
votes
0answers
29 views

The content that i received through mail as a pdf attachment is partial of the actual content sent

public static String AcceptTnC(String contractInfo2){ system.debug('contractId2'+contractInfo2); Messaging.SingleEmailMessage semail = new Messaging.SingleEmailMessage(); Messaging....
1
vote
0answers
24 views

Getting an PDF from external webservice and store it as attachment creates empty pdf

I have to get a pdf from an external web service and store it as an attachment of an object. Im getting the pdf with the following code public override Blob getPDFReport(String token, String jobId) {...
0
votes
1answer
65 views

How do we convert pdf in html format in visualforce page?

Following code takes me with pdf but i wanted to view this pdf as html because in my pdf some buttons are clickable and i wanted to capture that click event from pdf so it is not possible in pdf and ...
0
votes
0answers
48 views

How to pass id of selected record from sobject list to the pdf page

I have a Visualforce page with a page block table which contains multiple rows based on the search result from sosl query.Now I need to select multiple rows using checkbox and on button click need to ...
0
votes
0answers
25 views

Transpose table as PDF issue

I want to display the transpose table in PDF. Name : Bharath : Graham : Andrew Age : 25 : 26 : 27 Country: IND : UK : US I have achieved with the help of Bob Buzzard's Rotating ...
0
votes
0answers
22 views

PDF Page break and Adding footer line

Hi please help me how to fix this <style type="text/css" media="print"> @page { margin-left: 1cm; margin-right: 1cm; margin-top: ...
1
vote
1answer
30 views

How to control the page size of the PDF generated from Visualforce page

Background I am generating a PDF using this visualforce page: <apex:page controller="ExampleController" renderAs="pdf" applyBodyTag="false"> <head> <style> ...
2
votes
2answers
279 views

jsPDF in Lightning component: get blob in Apex controller

I'm trying to use the library jsPDF on a lightning component. The lighting component handles the creation, and needs to pass it to my apex controller (in order to save the file in Salesforce). ...
1
vote
0answers
36 views

How do I open a Visualforce PDF page from a Lightning component button?

I have a lightning component (called from a quick action), on which a few inputs are taken. On clicking of a button I need to show a Visualforce PDF page. Can I do so directly from the button or do I ...
0
votes
0answers
27 views

Can I get a public link to an attached PDF?

We have a 3rd party that is generating PDF quotes, and attaches these to a (custom) quote object. I'd like to generate public links for these so they can be emailed to customers - but from https://...
1
vote
0answers
313 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 ...
0
votes
0answers
17 views

How to send canvas chart as an attachment in email in Lightning component

I want to save the canvas chart as an image in attachment unfortunately i didn't get any way to do that.Please help me. This is my code. createGraph: function (component, temp) { component.set("v....
1
vote
0answers
25 views

How to show Chart in Visualforce page which has renderas = pdf [duplicate]

I have VF page with renderAs = PDF. I want to display a chart on that PDF? I have tried https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_charting_example.htm and Display ...
0
votes
2answers
244 views

Repeat HTML Table in Render as PDF VF Page [duplicate]

In my PDF Visualforce page, below table breaks and goes to new page. Is there any way that I can repeat the header of the table if it breaks to new page at the beginning? Visualforce HTML Table <...
1
vote
0answers
104 views

Display a PDF in Salesforce from Blob data

For our project, we need to get a PDF via API from an external private filestore, and display it within a Lightning Component. With the blob that is returned, if I set that to the src of an iFrame, it ...
0
votes
1answer
343 views

download base64 as PDF seting a name for it

I'm trying to download a PDF file and I wish to give a name to this file and a extension. Here is what I did: Component: <aura:component implements="forceCommunity:availableForAllPageTypes" ...
0
votes
1answer
29 views

Is there a way to add particular <div> tags into a pdf on a button click in a vf page using javascript or the apex controller?

I know we can use the renderAs property to get whole vf pages as a pdf but I don't want that. I want particular tags in my pdf. I need a 'view/print pdf' button which opens the pdf in a new tab. I ...
3
votes
1answer
73 views

Visualforce rendered as PDF not working in Production but works in Sandbox (using Lightning in both)

I'm stumped by a very strange issue. We have Lightning enabled in Production and sandboxes. I have an Action (on Opportunity object) which points to a Visualforce page. The Visualforce page is ...
0
votes
1answer
56 views

Reports and Dashboard view as pdf

Is it possible for Salesforce to generate dashboard into pdf without having print, save as and so? Right now, what I know is to use: conga composer. create vfp and use "renderAs=pdf".
2
votes
0answers
236 views

Generate PDF preview from APEX class

What I'm doing is retrieving a PDF and save that PDF into the notes & attachment of my current object. Everything works fine, I'm able to get the base 64 encoding of the PDF, convert it and save ...
0
votes
2answers
331 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 ...
1
vote
1answer
279 views

page break in visualforce pdf after 10 records

I need to modify the below page to generate a PDF and modify the PDF exporting settings to export a table of only 10 records on each page. <apex:page standardController="Contact" recordSetvar="...
0
votes
1answer
89 views

Is there a way to export custom devleoped Chart(Chart was developed using Chart.js) to PDF with out 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 with out using any other library. I tried ...
0
votes
1answer
86 views

Visualforce Render Details Tab as PDF - Opens Blank PDF

I want to open case details in PDF view when clicking on custom button in Lightning. I have a custom button(added it to standard layout) with Content Source Visualforce Page. Below is my VF Code: &...
1
vote
0answers
145 views

Cannot preview PDF publicly shared file

I have a couple of PDF files that have public links that are no longer showing a file preview.  Any thoughts why or what I can do to fix this problem.  I have refreshed the preview link & also re-...
0
votes
1answer
188 views

Visual Force: Have footer only on the last page of a document

I have a visual force page. It gets turned into a PDF if a button is pressed. There will be multiple pages. I want to have my footer at the bottom of only the last one, but I cannot figure out how. ...
2
votes
1answer
126 views

Save PDF Visualforce as attachment - mergefields not showing

I really need your help because I'm completely stuck. I want to render a PDF from a Contract in Salesforce, and save it as a record's attachment. I followed several tutorials and I created a PDF ...
0
votes
1answer
177 views

Visualforce renderAs PDF page size error

I need to render a small pdf page, height = 15mm and width = 30 mm. I have developed a VF page but I am not able to get the required page size. I am getting the error 'Page style attributes result in ...
1
vote
0answers
196 views

Advanced PDF status update?

I'm interested in rendering Visualforce as advanced_pdf, but I can't find any new details since it went Pilot in Summer'17. Are there any updates?
1
vote
1answer
40 views

Hide all images on Visualforce page, minus one

I'm hiding all images on my page via css, so that an tag will look better on a pdf and not include the image icons. My issue is that I would like to render a single logo at the top of the page. I'm ...
0
votes
1answer
23 views

Can't get record from controller to visualforce page

Visualforce page <apex:variable value="{!record.Reservation__c}" var="Client"> <p align="left" > full {!Client.Name} <br/> address{!Client....
3
votes
1answer
53 views

Visualforce <style> tag outputting as text in PDF

Here is the beginning of my visualforce page: <apex:page StandardController="Project__c" extensions="projectToPDFController" renderAs="pdf" standardStylesheets="false"> <style> body { ...
0
votes
1answer
83 views

Render as PDF not showing the file in proper format header/content/footer issue

I am having an issue with generating a pdf file with the following code. The issue I am facing is that I want the header to show on every page of the pdf and the content not to go out of bounds. Can ...
1
vote
2answers
68 views

Visualforce page rendered as pdf on quote [closed]

How do I create a Visualforce page rendered as pdf with header and footer keeping 'Quote' as standard controller and displaying an image and table on the page. Show company address on top right and ...
1
vote
2answers
52 views

IF clause in VF page to render PDF

Below is my VF code, I need to render my PDF only if status__C = approved. How to achieve it. I'm new to development <apex:page controller="MyController" renderAs="pdf" applyBodyTag="false"> &...