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

4
votes
2answers
60 views

Custom Fonts in Visualforce Page (renderas=“pdf”)

Trying to use a custom font in my visualforce page (rendered as pdf). I have looked at many conflicting articles saying that the only option are the "limited" fonts supported, whereas others say that ...
0
votes
2answers
36 views

SOQL returns outdated records in Visualforce PDF

I appear to have a very weird error. I have a business case where I have a button on an opportunity which generates 2 records (related to that opportunity via master-detail). After those records were ...
1
vote
1answer
29 views

Nested repeats + table + if + pdf = frustration

I have a table on a VF page that allows the users to filter, sort and choose which columns are visible. I accomplish the column visibility by using javascript to change the style to display:none. ...
2
votes
2answers
28 views

Search Text in a PDF file (Attachments)

I am not able to search text in a pdf file tied to attachments(Notes and Attachments) using apex.Here is my apex code. Pdf file contains 'County' text but it doesn't goes into if loop. ...
2
votes
2answers
41 views

Making PDF viewable but not downloadable on customer community

I'm looking for recommendations for the best way to make PDF documents viewable on customer community but not downloadable. I know that Salesforce Content can be restricted that way but I wasn't sure ...
0
votes
0answers
16 views

How to replace standard quote template for visualforce page [duplicate]

I created a Visualforce page in que will be the new model of quote (pdf). How do substitituir to the standard model for this in Visualforce page? I would keep the same features as standard, view the ...
2
votes
1answer
50 views

How to Use below code in apex class PageReference Method

I have a requirement to generate invoices(PDF Files) in my application. So i installed app exchange app "S-Docs" to get it done. But the problem is every time i need to click on the button to ...
1
vote
1answer
26 views

Combine multiple PDF's together and attach them in a mail?

As of now , all i have is a VF page which renders as a PDF and it needs Account ID to be passed to generate a PDF . Is there a way wherein i can group all the PDF's into a single PDF ? Should i change ...
3
votes
1answer
30 views

Sending a PDF from Salesforce through a REST call

How do I send a pdf through REST call out of Salesforce? Should we use sites? Any idea?
3
votes
2answers
210 views

Remove Last Page from the PDF

I have created PDF of Multipage, where in VF page I am using <apex:repeat .......> ///////// some code <div style="page-break-before:always;"/> </apex:repeat> But it adds a ...
2
votes
1answer
77 views

Problem in Calling VF Page as PDF in Salesforce1

visualforce page cannot be called to salesforce1 We have created a visualforce page on a custom object (invoices) that is rendered as PDF to issue the invoice. Our code is <apex:page ...
0
votes
1answer
41 views

Create a multi-page PDF containing detail page views for each record — Give me any example

I want to show all record in one PDF, I have gone this far, I dont know what to do now ! GeneratePDF : is a VF page, which create a one single PDF with a single records detail on one page So, Here ...
1
vote
2answers
50 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
167 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
35 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
76 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
79 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
71 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
58 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
104 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
105 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
24 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
286 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
183 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
23 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
71 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
83 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
98 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
36 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
175 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
140 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
172 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
117 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
109 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
136 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
170 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
193 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
73 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
160 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
1answer
94 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
66 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
962 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
564 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
107 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
53 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
110 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
592 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
396 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 ...