Created By Dosvak LLC (WWW.DOSVAK.COM)

0 votes
in Activities & Tasks by (1.2k points)
I have a Document Template with some fields and now want to generate a PDF by filling data in that fields Dynamically using Bussiness object data. for Example Invoice. In invoice the template is same but the first name, last name etc. changed accordingly to the BO values.

1 Answer

0 votes
by (10.3k points)
edited by

this can be done client side or server side, client side example is available here

you can generate a preview Coach with the mail merge done and render the pdf from the preview by placing the content in the wrapper coach view

server side you can create a java connector using third party libraries e.g. Aspose, PDFKit, and Apache PDFBox., some of these will use a HTML template and css to create a pdf. A simple mail merge scheme can be build like ~name~ for replacement with actual name.

also a more robust approach is to use Content management Servers which provide this capability as a web service.

Related questions

0 votes
1 answer 125 views
0 votes
1 answer 206 views
0 votes
0 answers 113 views
0 votes
1 answer 286 views
asked Jun 19, 2016 by Samuvel (320 points)
0 votes
1 answer 205 views
0 votes
4 answers 219 views