Portable Document Format (PDF) is a file format used to present documents in a manner independent of application software, hardware, and operating systems.

learn more… | top users | synonyms

1
vote
2answers
31 views

when rendering as pdf some of the image type attachment is not properly displayed whereas rest are fine

when rendering as pdf some of the image type attachment is not properly displayed whereas rest are fine. Please find my code here : <apex:page controller="Attachments_11" renderas="pdf" > ...
4
votes
1answer
158 views

PDF has no file extension .pdf when generated with visualforce

I am generating a pdf invoice with visualforce, but when it downloads there is no file extension. I have read other questions on SE and tried to simplify the content. Right now the code is simplified ...
1
vote
0answers
18 views

Chatter Feed Item: PDF Preview not working

I have created a feed item through apex with PDF as an attachment. Now the issue is the PDF does not previewed in the default preview option and getting a message in the preview window as given below ...
2
votes
1answer
52 views

Scaling Images in Visualforce PDFs

In our org, users are able to create PDFs with a logo in the header. We're using renderAs="pdf" to achieve this. The problem is we can't control the dimensions of the logos, so we need to scale them ...
8
votes
1answer
62 views

PDF using Static Resource generated from REST doesn't display My Image

I have different ways in my organization to generate my invoice pdf and attach it to my records. My PDF includes a logo stored in a public StaticResource. It works perfectly everywhere except when I ...
1
vote
1answer
41 views

Want to display values in proper order on PDF Document

I am getting the Equipment/Service Level Detail Table values but it"s not proper order. Want to display X1,X2,X3,Y1,Y2,Y3....here displaying X1,X2,Y1,X3,Y2,Y3 in PDF , could you help me? VF page : ...
4
votes
1answer
43 views

How to render Multiple PDFs from a single Visualforce page?

I working on a visualforce page (running a tabular report) with a table (13 columns) and am rendering a PDF as well for this. Firstly, all the columns are not fitting in a single PDF. Secondly, how ...
1
vote
1answer
63 views

visualforce page pdf record data

I have a visualforce renderas=Pdf, I created a button to save them in notes and attachments related list, this work fine, but I can't get the value record information in my attachment. If you can ...
1
vote
2answers
85 views

PDF from Salesforce

I have a requirement to create separate pdf files with informations of HCPs having been called where samples are dropped. I can extract in csv, but how to do that in a presentable format in pdf? ...
1
vote
1answer
19 views

Dynamically generated VFP attach to the Case : Too many Content Calls

I have to save the Dynalmically generated PDF from VFP on the Order Object I am trying to attach PDF in contructor call only For the given code I am getting error : Too many Content Calls public ...
7
votes
2answers
177 views

word-wrap not working with VisualForce PDF generation?

I cannot get word-wrap to work in a VisualForce page, which is rendered as a PDF. There is a table with a column called Comments and this contains a long string without any spaces. The long string is ...
2
votes
3answers
119 views

Visualforce page doesn't renderAs pdf (used as attachment it's blank)

I have a requirement where I need to send an email with attached PDF of Invoice . But I am getting blank PDF. please suggest how can this be rectified. When I add renderAs = "PDF" , I am getting the ...
1
vote
1answer
19 views

Apex UPDATE result is not visible by SELECT happening afterwards

A question to those who may have some background over Salesforce stack. I would like to confirm if my suspicions may be right. In APEX controller I'm doing following set of operations: setting ...
1
vote
1answer
48 views

Visualforce: How to render multiple records, 1/page in a single PDF

I would like to render PDF page base on the amount of record I retrieve using SOQL. example If I have 10 invoice forms, I should be able to render 10 pages in 1 PDF.
0
votes
0answers
16 views

Scrape text from scanned PDF in Apex [duplicate]

Is it possible to scrape text from a scanned PDF in Apex? The goal is to take the contents of a scanned searchable PDF attachment and copy it to the Description field on the Case object.
1
vote
0answers
64 views

Time Limit exceeded when trying to generate the PDF if the custom RichTextarea field contains more than 20000 characters

In the product object, I created a custom field that for inserting the Terms and Conditions. The Terms and Conditions is more then 20000 characters. I also created a function that for previewing the ...
0
votes
1answer
79 views

How can I attach the visualforce page pdf?

I have a visualforce page renderas="PDF". But I need to attach this pdf to a record in custom object. I have custom button to open this pdf but this is just enabled if the checkbox field in ...
0
votes
0answers
29 views

Close table border when table spans different pages in one visualforce page rendered as pdf

I have a table that has borders all around. When rendered with some records, the table spans several pages. I'd like to close the borders where the table has been cut. Currently, if table spans two ...
1
vote
2answers
130 views

Render as pdf make static resource images break in Summer 14 pre-release managed package

When I upgraded my org to Salesforce summer 14 pre-release (Managed Package), all my static resources keep breaking when rendering as pdf (It works absolutely fine in HTML). I have also added the ...
1
vote
1answer
107 views

Custom Button- Create PDF

How can I create a custom button create pdf to add a Email template? I try to use this example: /_ui/core/email/author/EmailAuthor?p2={!Stock__c.Id}&rtype=00Q&retURL=%2F{!Stock__c.Id} But ...
0
votes
0answers
18 views

.'Failed to load document' error after PDF save.? [duplicate]

I am opening a pop up VF page as 'render as pdf'.I have created a button Save and on click on save i am closing the pop window and saving PDf to opportunity. Issue When i am saving the code when ...
1
vote
1answer
127 views

Image not showing in render as pdf..?

I have created a VF page as render as PDF..I am creating PDF from Opportunity and showing all products and total price in PDF..Everything is coming fine except the product image which is coming from ...
1
vote
2answers
106 views

Facing problem with PDF Attachment

I have employee record where I am having a custom Button "GeneratePayslip" after clicking on which I have written a VF page "GeneratePayslip" and on that VF page I select a Month and click generate ...
0
votes
0answers
79 views

Custom create pdf button

I have a custom object stock, and I need the same button like the quotes create pdf button. So if a checkbox is selected select button is available and choose one of two templates and create a pdf, ...
2
votes
1answer
101 views

Pdf page number in Html content

i am trying to create a VF which will render as PDF.in header instead of Only Page Number i want also Date.my pdf header is <div><h1>Project Roadmap </h1> Date: ...
3
votes
1answer
129 views

renderAs PDF shows blank first page

I am using the html2canvas library to render the page with a view to rendering the canvas as a PDF. I am saving the canvas as an Attachment fine. The direct link to the attachment looks like this: ...
3
votes
1answer
145 views

Batch printing Salesforce reports and Visualforce pages?

I have three Salesforce reports and two Visualforce pages that render as PDF pages. I'd like to print all of them with one button press. In case it matters, the reports and Visualforce pages are ...
2
votes
1answer
58 views

Embedding PDF in VF site

I want to embed a pdf in a VF site. I'm using the "object, embed" method and that works fine for a VF page, however when attempting to make that page externally available via a site, the pdf is no ...
5
votes
1answer
121 views

Generating Barcodes in Salesforce

Is there any standard/ acceptable way of generating barcodes in salesforce? I'm exporting some pdf reports and there I need to print a barcode. I found some third party libraries like this. But when ...
3
votes
0answers
70 views

VF / HTML markup for RenderAs PDF a specific div that spans 1+ pages in landscape mode

I'm exporting some reports using renderAs="pdf" and working fine. I need to add a summary page for those reports(no matter at the beginning or at the end) in landscape mode. I used @page ...
0
votes
1answer
61 views

Redirecting a pageReference according to a picklist value

I created a class and include a webservice method that will generate the pdf and attach it to a record, but it's not working when I choose a specific value in the picklist in order to generate the ...
2
votes
0answers
730 views

CSS not displaying border when rendered as PDF in 2nd page

I have created a visualforce page rendered as PDF.But in PDF the first page is showing with lot of whitespace on the top and in the remaining pages the border on the top is not displaying . i think ...
2
votes
2answers
419 views

Trouble adding image to Visualforce page rendred as PDF

I'm attempting to add my company logo to a visual force page, which is then being rendered as a pdf, but have not been successful Logo.zip is a static ressource images.jpg is the logo within the zip ...
1
vote
1answer
92 views

Add VisualForce rendered as pdf as an attachement on a record

I have a VisualForce rendered as a PDF, I want to add it as an attachement to my record once created. Any idea?!
0
votes
0answers
52 views

Generating and sending PDF to be signed

I have a custom object named Certificate__c, once a user asks for a certificate, a PDF doc generated and send to the manager to be signed. Here's my code behind. I'm calling it from a trigger after ...
1
vote
1answer
91 views

How to dynamically construct PDF and Word files and then send to users by email?

How can we send PDF or MS WORD file via salesforce after inserting in it values from my user object. Example: Sending each user (employee) a Salary certificate containing all his information
3
votes
1answer
486 views

Adding a border to a visualforce page rendered as a PDF

I am trying to make a visualforce page with a border that renders as a PDF. Currently, there are 2 sets of tables within the visualforce page, both of which can have variable sizes depending on the ...
3
votes
1answer
321 views

Preloader in Visualforce page and align text in the center

I have added a circle by using the HTML SVG tag in a VF page. When i render that page as PDF, it's not showing that circle. Is there another way to add small circle but also to be visible when ...
3
votes
1answer
90 views

PDF file name issue in apex Send Mail method

I want to add date to a PDF file name. I am sending an email from apex and attaching one PDF file with it. Now I want to set string with dynamic date with it. E.g.... date fromdate = ...
5
votes
1answer
1k views

Rendering a VF page as PDF and saving it as an attachement

How can U render a VF page as PDF and have a button on the page that saves this PDF as an attachment to a record? I want to have a button on my object detail page, 'Generate PDF' which will open a VF ...
1
vote
0answers
60 views

Convert attached pdf to image

I can't seem to find a solution to this anywhere. We have a requirement to convert pdf files that are attached in Attachments to a png or bmp. Are there any apex utilities or such that can be used for ...
1
vote
1answer
51 views

when trying to attach it getting rollback problem

I have created a VF page for generating invoice and from that VF page i am invoking a PDF VF page. In invoice VF page i saved the invoice and pass the parameter to PDF page and trying to display it. I ...
1
vote
1answer
91 views

include an editable textfield in a visualforce email template

I've got a visualforce email template that sends invoices attached in PDF. In the PDF there has to be a blank textfield that users can edit to add comments to the invoice. So the attached PDF needs to ...
0
votes
1answer
1k views

Attach a VisualForce Page, Rendered As PDF to a Record

I have a VF page and on that VF page I select a project and click generate invoice, on that click an new VF page is displayed as PDF. I want to attach that generated PDF VF page to the selected ...
2
votes
1answer
266 views

renderAs PDF in the same page

Is it possible to render a VF page as a PDF inside the same page in specific section ? for example I have page with the following hierarchy, And the PDF will display in the second pageblock, is there ...
1
vote
1answer
67 views

How to put different html tag into VF page basing on condition

I have a VF page. There I have a repeat tag. Inside it I have a component. All this page is rendered as PDF. My intention is to start each object from a new pdf page. I found a <apex:repeat ...
7
votes
2answers
1k views

generating PDF of a record's printable view in batch apex

Some of my users cannot view the Case object owing to restricted licenses. To avoid paying for service cloud licenses, I need to generate PDF snapshots of all Case records using a batch (the are many ...
2
votes
2answers
158 views

Embed vector graphics in generated PDF

I am generating PDF files using a Visualforce page with the renderAs="pdf" attribute. Is there any chance that I could embed vector graphics in the rendered PDF file? I tried using SVG and EPS files ...
3
votes
1answer
803 views

Rich text area field on VF whille rendering as PDF

I am using an rich text type field on VF page and that page is rendering as PDF. My concern is, I am not able to wrap the content of the field. I am using : <apex:outputtext ...
0
votes
1answer
78 views

Joining multiple attachments into a pdf

I have multiple attachments of type image,pdf,text,word etc. I want to merge them into a single pdf. Is it possible?