function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rajesh ShahRajesh Shah 

Dynamic PDF generation on the FLY

I need to create PDFs dynamically. Basically a PDF template is provided which is kind of a form. Based on the data filled by the User, the form should be populated. The template will reside in Document library of Salesforce or Intranet. Is there a way to do it?

There are tools which allow PDF creation on fly like iText. But they are based on .Net or Java or Com/ActiveX platform. Can this be done within Salesforce.

I have already considered the option of generating the pdf using Visualforce. But it doesnt seems feasible because of huge number of different forms with each form consisting of more than 20 pages.

Best Answer chosen by Admin (Salesforce Developers) 
a.schaefera.schaefer
consider this approach:
http://blog.sforce.com/sforce/2008/12/use-visualforce-and-apex-to-populate-pdf-forms.html

and the related Adobe XFDF information:
http://wiki.apexdevnet.com/index.php/Adobe_XFDF

All Answers

a.schaefera.schaefer
consider this approach:
http://blog.sforce.com/sforce/2008/12/use-visualforce-and-apex-to-populate-pdf-forms.html

and the related Adobe XFDF information:
http://wiki.apexdevnet.com/index.php/Adobe_XFDF
This was selected as the best answer
Rajesh ShahRajesh Shah
Hey thanks a lot for the link. You made my day. :smileyhappy:
rolanshrolansh

The link doesn't lead to the document any longer,

can you please supply more info regarding the solution you applied ?

 

You can make my day too,

 

Rolan 

Message Edited by rolansh on 03-25-2009 04:49 PM
ssssforcessssforce

Rajesh,

 

I have been unable to access this article anymore:

http://wiki.developerforce.com/index.php/Adobe_XFDF

Can you please post a PDF copy or text version?

 

Thanks,

Andi Giri

ssssforcessssforce

Rajesh,

 

I have been unable to access this article anymore:

http://wiki.developerforce.com/index.php/Adobe_XFDF

Can you please post a PDF copy or text version?

 

Thanks,

Andi Giri

Rajesh ShahRajesh Shah

Sorry Guys, I also don't have any material and also didn't implemented the functionlity to provide any code. :smileysad:

 

However, you can check out the following link:

http://blog.jeffdouglas.com/2009/01/04/use-visualforce-and-apex-to-populate-pdf-forms/


Message Edited by Rajesh Shah on 04-03-2009 07:00 AM
LegerdemainLegerdemain
http://wiki.developerforce.com/index.php/Adobe_XFDF works today...
Message Edited by Legerdemain on 03-09-2010 01:33 PM
rforce2rforce2

You may also consider the PerForm app which leverages the XFDF, and provides a solution for mapping the data from salesforce object into existing PDF forms on the fly:

http://sites.force.com/appexchange/listingDetail?listingId=a0N30000003GLHrEAO

kprkpr

Hi a.schaefer,

 

Thanks for the information. It is really useful. I have a few questions though.

 

How do I figure out the field names for the forms? Say I download W4 form from the web, Is there a tool that tells me the field names?

 

Also is it possible to generate a pdf form using visualforce? Not an attachment of an existing form, but a form from scratch, so it has certain editable fields and certain read-only values populated using data from Salesforce?

 

Thanks in advance,

kpr

Kaamini pittyKaamini pitty
Hi all,
Consider this Blog for dynamic PDF generation using VF page !! This really helps !!
http://blog.jeffdouglas.com/2010/07/16/create-and-email-a-pdf-with-salesforce-com/


consider Jeff douglas other Blogs Also .. All r very useful and smartly build !!