Discussion

Can we create a PDF file for a Pagelist

I have a pagelist which is having couple of properties on each page of the pagelist. AT this point of time I did not create a work object yet. Can we create a pdf document with the data available on the pagelist. And also can I put the pagelist properties as columns in the PDF document.

Regards,

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
March 31, 2009 - 10:10am

You say you didn't create a work object yet, but a pagelist must live in some kind of top-level page. What is your top-level page?

March 31, 2009 - 10:15am

I am getting some data from a webservice which I am first storing in a pagelist (off course which is created in the class of WorkObject) and then I need to generate the PDF document for all the data received which is in the pagelist.Please let me know if you need some more info..

Regards,

Pega
October 11, 2016 - 5:13am

Yes, you can do this. (You don't have to restrict yourself to using 'persisted' Work Objects here - you can create Pages in-memory (as you already have in fact by the sound of it) - whose properties are available to your Activities etc.)

Create a HTML Rule using "Pega Tags" / JSP Tags that reference your Page/Properties.

The Tag Library contains looping and conditional constructs to allow you to navigate your Page Data.

See the Designer Studio Help for using Pega Tags.

Once you have created your HTML, use HTMLTOPDF to convert to PDF.