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

Can I have PageReference within PageReference?

I am working on this requirement. I have a SaveAction() pagereference method in my controller on the Button click from the Input VF Page, where I am saving the VF page's input field values to an ...
0
votes
1answer
46 views

Generating a PDF and attaching after clicking on Submit from VF page?

I have a simple Contact creationg VF page with bunch of input fields. Clicking on the Submit button would create a Contact record and shows a confirmation message on the screen. Now, I would like to ...
0
votes
1answer
15 views

Why is my Visualforce PDF footer just off-center?

I have a Visualforce PDF page with a footer section, but this isn't centered - it is just off center and I can't figure out why. What do I need to do to get it centered? My CSS classes contain this: ...
0
votes
0answers
11 views

How to generate the pdf based on the data visible in the vf page?

I am trying to generate the pdf of the records that are visible based on the two filter that are the user name and the Category by choosing these two options I am filtering the records and now I want ...
0
votes
0answers
14 views

Chrome pdf not working get contentaspdf [duplicate]

In my sandbox I created a method that generate a pdf from a vf page. Everything was working perfectly. I am now in my prod and when I use google chrome, the pdf is not working anymore, it does a weird ...
0
votes
1answer
34 views

Sandbox to prod getcontentaspdf not working

I have everything working normally in my sandbox (render as pdf on a vf page), but when I copied everything and paste inside my prod, I have a pdf that look likes this when I render it as pdf If I ...
0
votes
0answers
15 views

Merge string is not working to display PDF

I am using below code to merge two pdf into one page, Apex Class public String pdf { get { PageReference pg = new PageReference('/apex/demoVF'); Blob b = pg.getContentAsPDF(); ...
0
votes
1answer
17 views

Undo changes of JSENCODE() when used in output text

I have VF page in which i have a output text like the below one. <apex:outputText value=" {!SUBSTITUTE(JSENCODE(title),'\n','<br/>')}" escape="false"/> Lets say the value of the title ...
0
votes
2answers
40 views

Combine two different PDFs in single Visualforce page?

I have used below visualforce code to display two pdf in a single page but in the result, I am getting two different PDFs with two sections with iframe. Is it possible to combine these two PDFs in ...
0
votes
1answer
32 views

How to send a email(pdf visualforce page) to particular user on clicking the custom button? [closed]

I have made a visualforce page to generate a pdf when a custom button is clicked and I'm struggling to send the generated pdf to mail id of that particular user.I tried all the possibilities.How ...
1
vote
1answer
36 views

Generated PDF from Visualforce page cannot be read by Robotic Process Automation

I have a request, the client what to creat Robotic Process Automation that can read and treat a pdf generated from a visualforce. To do that, all the fields should be readable as it is appearing in ...
0
votes
1answer
29 views

I am not able to call the Apex variable in my visualforce page how can I fix?

So I have a lightning component that will open a visualforce page when you click the pdf button. The visualforce page opens in pdf format but I can't call the Apex variable to get the Account Name, ...
1
vote
1answer
144 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
1answer
43 views

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

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
26 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
37 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
47 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
63 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
86 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
55 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
32 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
26 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
87 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
69 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
18 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
39 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
77 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
57 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
26 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
26 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
41 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
401 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
40 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
398 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
19 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
26 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
292 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
115 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
455 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
92 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
82 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
299 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
426 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
319 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
99 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
96 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
164 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-...