Is it possible to generate pdf file with data in in tabular form.
I have a requirement where I need to generate the pdf having tables which contains rows defined dynamically.
Discussion posts and replies are publicly visible
Hi Ankitas ,
We implemented this recently in our project. Below are the steps followed
1)query the data and convert to the xml format.(output should be with in XML tags)
2)create one empty document as template and also inside the document just provide the ##variable name) .
3)Using the smart service(Create Document from Template) call the above rule and write the output to the document (Map the above rule output to the ###variable.
4)create XML XSLfile. Please look into XML XSL templates(XML stylesheets)
5)Using the smart service (PDF from XSL FO Transformation), provide the source input file as output from step3 and also place the XML XSL
By executing the steps , we can create dynamic pdf.
Also please refer the below link for sample template
Hope this helps! please let me know if this works for you
Have a good day!
Thanks for your response.
I have few queries on the points you suggested above.
2)create one empty document as template and also inside the document just provide the ##variable name) : What will be the type of document, html of .txt and with ##variable do you mean like the file will have a value ###testVariabl###.
3:Using the smart service(Create Document from Template) call the above rule and write the output to the document (Map the above rule output to the ###variable.: I cant find this Smart service in my environment, do i need to install some plugin for this.?
Thanks n Regards,
Let me try to help you with doubts.
Please lookinto Acacio BResponse,
Thanks Acacio B.
Is it possible for you to share the XML and XSL-FO file, I tried multiple way but its still not working.
I'm getting java null pointer error at the PDF from XSL FO node
Please refer the below link for sample files. please let me know if you run into any challenges.
Please test with the XML and the corresponding template(2nd message) from the below comment.
© 2021 Appian. All rights reserved.