0 votes
45 views
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.6k points)
edited by

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

https://bpm.tips/2443/can-a-coach-view-of-client-side-pdf-generator-be-created-e-g-with-jspdf?show=2443#q2443

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 130 views
0 votes
1 answer 219 views
0 votes
0 answers 120 views
0 votes
1 answer 295 views
asked Jun 19, 2016 by Samuvel (320 points)
0 votes
1 answer 236 views
0 votes
4 answers 224 views
0 votes
2 answers 150 views
asked Jun 4, 2017 by bchandra20 (320 points)
0 votes
0 answers 58 views
0 votes
1 answer 282 views
0 votes
0 answers 62 views
0 votes
2 answers 253 views
0 votes
1 answer 92 views
asked Jan 4 in Portal by Haritha.G (1.6k points)
0 votes
0 answers 69 views
asked Feb 17, 2018 in IBM BPM Infrastructure by usabpm (10.6k points)
0 votes
1 answer 128 views
asked Oct 13, 2017 by usabpm (10.6k points)

495 questions

405 answers

81 comments

1.6k users

Created By Dosvak LLC (WWW.DOSVAK.COM)
Our Public Git Repository

Dosvak UI Toolkit --- Download --- Demo

Subscribe us at

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
...