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
2k views

Merging pdf attachments

I am trying to merge pdf attachments and sending it as email. I am able to merge them but the last pdf always get overwrite all the others and send email as one. When I checked my email attachment ...
0
votes
1answer
174 views

Visualforce Render as PDF - Full width footer

I'm working with renderasPDF to create a PDF-document of a Visualforce page. I know how to use repeating footers and stuff, so that is all working. But the problem I'm facing now is how to have a full ...
0
votes
1answer
82 views

Saving PDF into Attachment Object

I am looking for advice on the best direction to go in. A little background: On a custom page a user can generate a report. Every time a report is generated, a unique PDF is saved into document ...
0
votes
1answer
489 views

How to Watermark PDF

I have a VF page with file upload control ,Users will upload PDF file along with other details and the file will be stored in Attachments. Requirement : When user uploads PDF then file should be ...
0
votes
1answer
535 views

Render attachments on VIsualforce

I have a donation object which have a donation receipt attached to each record. Now how to render the receipt.pdf attachment on visualforce page ? I mean is there any way to query the attachment and ...
1
vote
2answers
857 views

Lightning component : call apex function after window.location

In lightning, is it possible to call an Apex function just after a window.location.href ? For example I have a function that save a pdf from a visualforce page into attachment, and in the lightning ...
1
vote
1answer
1k views

background-size contain not working when rendering VF page as PDF

I'm working on Visualforce pages rendered as PDFs. I've been using background-size: contain on divs where I want the image (set as a bg image) to shrink so it does not overflow the page or certain ...
2
votes
2answers
3k views

Render Visualforce page as PDF in landscape orientation

I've done it before but recently it does not appear to be working. Tried changing the api to an older version, still nothing. Not sure what else to try. i've tried multiple 'solutions' from other ...
2
votes
1answer
873 views

Render whole div in one page using renderAs PDF

I'm trying to create a page that will be rendered as PDF to the user, and this page is supposed to display a document that has a text that can change depending on what is typed on a rich field text on ...
0
votes
1answer
97 views

Changing options on an apex related list

I'm using a VF page rendered as a pdf to print out a record of a custom object within salesforce I'm using the <apex:relatedList list=> to print out a related list to the master object. What I ...
1
vote
1answer
95 views

getContentAsPDF() SOQL has no rows

I have a problem. I need to get pdf and attach it to object. I create object (and for test I execute query - it's ok), get ID and put it to page as parametr: PageReference pdfPage = Page....
2
votes
1answer
26 views

Salesforce: Syntax Help [closed]

Can someone help me with my syntax. I am creating a visualforce page that renders as a pdf. The text should be red (#c73c3c) and the underline should be black. So far this gives me red text with red ...
1
vote
0answers
19 views

RichTextArea displaying out of the pdf

In RichTextArea field i have content with different style format. After generating the pdf, the content is not displaying correctly. It text cutting at the right border. If i remove the different ...
2
votes
2answers
2k views

Exporting Report as PDF

This question might be duplicate, I checked stackexchange regarding this but didnt see clear answer, so posting this. How do we export a Salesforce report as pdf? As you know, currently we can either ...
0
votes
1answer
702 views

How to create a link with Document ID to show PDF file

I am trying to show the PDF file of a link but when I try to pass the document Id I get the following error Error: Compile Error: Initial term of field expression must be a concrete SObject: List ...
2
votes
2answers
1k views

How do I get a line break in a Visualforce page IF formula?

I've looked through various questions but still haven't found an answer. I have 5 fields that I can display on a VF pdf page and want each one on a different line, but if the IF fails, I don't want a ...
0
votes
1answer
170 views

how to generate record from PDF in salesforce?

Consider, if we have attachment added to "Quote" object and we need to generate "order" object record from attached quote PDF based on trigger or anything. Is it possible in salesforce to read the ...
2
votes
0answers
850 views

Rest API PDF Document is stored as base64 and not getting opened

I am using 3rd party document drive. I am sending files from salesforce via rest api. All the files are stored as base64 and not getting opened when it is downloaded. What i am sending is as ...
0
votes
1answer
676 views

Saving Visualforce page as a PDF including Temporary Controller Variables [closed]

I have a page I am working on that grabs data using an account ID. It allows the user to edit the data and then highlight some parts of the data. The edited data is saved to their account and a PDF is ...
2
votes
2answers
441 views

Why am I not able to get full 60 second CPU time in @future method with getContentAsPDF()

I'm trying to generate a PDF, and in normal Apex execution the function is haulted due to CPU timeout (exceeding 10 second execution time). So I tried using @future annotation to use Asynchronous ...
0
votes
0answers
451 views

Email send with PDF Attachment

I have a VF page with below custom controller. I am not getting the exact point why the email is not getting generated. Can someone please help? Apex Controller public with sharing class ...
0
votes
1answer
411 views

How to add repeated Footer to PDF Visualforce? [duplicate]

I have a requirement where I have to add a footer to PDF, This footer will be repeated for all the pages. I am generating this PDF using Visual force PDF renderAS functionality. I have gone through ...
2
votes
3answers
777 views

Header Image in Visualforce PDF

I am looking to embed an image in a PDF rendered in Visualforce. The goal is to have the PDF look like it's on a letter head. I've tried a number of different approaches to this but can't seem to find ...
2
votes
1answer
4k views

how to include image as header/logo in a visualforce pdf page

I am trying to build a pdf page where the header/logo includes an image. I have tried the following but no luck yet: <apex:page standardController="proposal__c" extensions="...
1
vote
2answers
674 views

Build a Pdf document with merge field from a record

I have tried to do this for few days, now I need your help. When in my org an user save a Lead a Pdf document have to be created automaticly. The Pdf have a template and the fields from the saved lead ...
0
votes
1answer
44 views

Moving a PDF from a native iOS Swift app into Salesforce?

Is there a framework, API or service that I can add to my native Xcode project that allows importing a PDF document from a share sheet button in a native iOS app directly into a Salesforce client ...
2
votes
1answer
278 views

Styles code appearing when page rendered as pdf

I have a visualforce page which i am rendering as a pdf. <apex:pages> <style> .cke_contents { height: 100px !important; } </style> &...
0
votes
1answer
99 views

Generating Account Statement as PDF

I need to generate a document for any given account that lists a detailed view of their contacts, opportunities, activity etc. My first instinct is to simply use renderAs on a custom visualforce page ...
1
vote
0answers
399 views

Show Opportunity Line Items in rendered PDF Visualforce page on a Force.com profile

We have a requirement on our custom object bid to show the opportunity line items in a table on a visualforce page when selected by a user on a Force.com licence. We have the functionality working ...
3
votes
1answer
1k views

Can we generate PDF in ExactTarget?

I want to generate PDF document on the basis of data available in my customer DataExtension and print it in proper format so that it can be sent to customer by a email. is there any AmpScript, SSJS, ...
2
votes
1answer
1k views

Pageblocktable to be rendered as table in PDF

I have a VF code below where I am trying to display the related list of an object using and command. I am rendering this page as PDF , doing that in my PDF I am unable to see the content in a ...
1
vote
1answer
3k views

Visualforce as PDF with table format [duplicate]

I have a some content in my visualforce page which I am rendering as a PDF. I am unable to display the content of my VF in tabular format. below is the code which I am trying to get as a PDF file: ...
1
vote
1answer
579 views

Generating Visualforce page on the fly in apex

I need to generate invoice pdf using the given template (I'm using kognoz`s invoicing app and due to certain circumstances it's functionality is not sufficient). The template is basically a bunch of ...
0
votes
2answers
618 views

Read any kind of attachment and display it as PDF

Is there anyway you could read an attachment on your record(PDF, Image, Word etc) and display it as PDF on your visual force page? Thanks.
6
votes
1answer
6k views

My Header and Footer overlaps with the content in a PDF Visualforce Page

I am trying to render my PDF page with a header and a footer, that are actually images, and a content, that expands in more than one page. The problems that I am facing are: The Header gets ...
5
votes
1answer
2k views

External Image Link Broken when Rendering as PDF

When referencing an external image in a Visualforce PDF rendered image, the image is displaying a broken link. It works perfectly without the renderAs="PDF".
1
vote
1answer
319 views

Last trailing blank PDF page gets added, need to remove

I have below last element and trying to remove the trailing blank pdf page added. It is not working. Can someone please let me know how to deal with it? Apex Page Last element .....<td width=...
0
votes
1answer
882 views

How to get access to Quote PDF from backend

on Quote page we have list of PDF generated for the current quote. Is there any mechanism I could have access to pdf files from apex class? (I mean from backend). Thank you.
2
votes
1answer
2k views

visualforce page as PDF - unicode font bold characters

I am creating PDF page in salesforce and I have to use cyrillic characters in page. As font I set up 'Arial Unicode MS' in css, because cyrillic characters are not rendered with other fonts. But I ...
3
votes
2answers
4k views

pageBlockTable - row number variable is not incremented

I am creating PDF page (in html page not working too), I have pageBlockTable in it. I need to display row number in first column. I found solution to use apex:variable and increment it. <apex:...
1
vote
1answer
1k views

How to display VF Page Content as PDF on button click

As I am in need of display the content of VF page into PDF on button click.How to generate VF page contents as PDF ON BUTTON CLICK using Java Script . Here is my code: <apex:page > <html ...
0
votes
1answer
86 views

Query results in class not showing on Visualforce page

I'm trying to display a page rendering as PDF with the information that I have in a custom object, I'm getting this error "Unknown constructor 'PdfRenderController.PdfRenderController(ApexPages....
1
vote
1answer
181 views

Generate Quote - Merge Documents

We're trying to streamline our quote to cash system a bit and are migrating to Salesforce quotes. One of the things our sales team is asking for is that we have the ability to do the following: User ...
1
vote
1answer
90 views

Record Name Not Displaying in PDF Using Apex and Visualforce

I am trying to display the record name, which is specifically, the standard field Name (It has a label Book Number) in my PDF. Every time a new record is inserted, it must automatically send an email ...
1
vote
2answers
470 views

renderAs PDF for specific block

I'm using code to save page As PDF, with custom save button. but what If I need more than one save button in the same page and each button will save part of the page?? How can I handle that issue ? ...
2
votes
1answer
209 views

Field Values Not Displaying in PDF Using Apex and Visualforce

I am currently working on a visualforce page that is supposed to display values in PDF upon saving. But unfortunately, I am unable to fetch what I've inputted in the form. Meanwhile, here's the ...
1
vote
0answers
112 views

apex:dataTable render as pdf headers [closed]

I have an apex:dataTable on a Visualforce page that is rendered as pdf. What I am after is having the table headers on top of each page when data is large enough to be over multiple page. Is this ...
1
vote
1answer
2k views

Table Breaking in Pdf format

I am rendering my page as a pdf but when the data gets larger my table's format is breaking. I want a closing line in each page of my pdf whether the data is large or going to next page. Can Someone ...
2
votes
0answers
638 views

Visualforce PDF page break doesn't work

I'm creating Visualforce page rendered as PDF and struggling with page-break. I have a really long table which is stretched across 5-20 pages. The rows are rendered using apex:repeat. Source for ...
0
votes
1answer
44 views

Email class fails to trigger email

I have below email class that fails to trigger the email class. I am not getting the reason in debug log even. Can someone let me know where I am making the mistake? Apex class method public ...

1 3 4 5 6 7 10