|Published (Last):||18 November 2010|
|PDF File Size:||6.82 Mb|
|ePub File Size:||1.44 Mb|
|Price:||Free* [*Free Regsitration Required]|
XFDF provides a straight forward path to integrating Force. Often the form is provided by a third party and cannot be modified.
In these cases the data must be entered into the form to meet the requirements of the third party. Using Force. Therefore, you can use your Force. We will use a Sites enabled developer edition in this example. This example uses some custom fields, you can trim those out as needed by your form. You will need to determine the "original" and "modified" attributes for your form, as they will be different than those listed here.
The instructions for doing so are here. Also, when you upload the form to a static resource, be sure to set the Cache Control to "public", see the Force. Next we will need to query that contact to get the data record required, we do this with the following code. The code will first query the database, and then it will generate an attachment using the above method.
Finally it attaches the new attachment to the contact record and navigates to that record. Name, Account. BillingStreet, Account. BillingCity, Account. BillingState, Account.
That will allow users to click on this attachment and launch Adobe Reader properly. Once launched, Reader will automatically merge the document form with the data contained in the XFDF file.
If you have a full version of Adobe Acrobat, you will be able to save the merged file. Limitations The current feature set of Adobe Reader will not let users save the PDF document after it is merged, it can only be viewed.
Users will require Adobe Acrobat to perform the merge. Also, there is no way to perform the merge in Apex Code, you must do this in Acrobat Reader or Acrobat if you would like to save the merged document. This code example is intended to be simple, and not a complete application.
Your form may be much more complicated but the overall process should be similar. Credits Many thanks to Jesse Lorenz who helped develop this solution on the Force.
Subscribe to RSS
Vihn You may need your original installation disk. If you want to make sure your characters are placed directly with no conversion, use UTF If geenrate have an Acrobat question, ask questions and get help from one of our experts. My scripts are written in PHP. Home Questions Tags Users Unanswered. I tried to do that even before, but the only 2 options I have there are.
Populating a PDF form with XML data
CREATE XFDF FROM PDF