Question

Is there a way to export PageList contents to PDF in Pega 7.3

Hi Team,

I was able to export contents of a Page List to Excel. Now we have requirement that we need to export the same Page List contents to PDF and download it to our local. Is there a way to do that OOTB (other than CreatePDF smart shape)?

Thanks,

Vamsi.

***Updated by moderator: Lochan to add Categories***

**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.

Correct Answer
February 15, 2018 - 4:04am

Hi Mahesh,

pxCreatePDF is internally referencing HTMLToPDF. So I think invoking HTMLToPDF alone won't help in this case. I've created a new section with the same grid without pagination, removed action header etc. in the format I need and passed the section as argument to customized pxCreatePDF activity (commented AttachToWork and Invoked View PDF for download purpose). Now It is working fine.

Thanks,

Vamsi.

Comments

Keep up to date on this post and subscribe to comments

February 14, 2018 - 1:48am

Hi Vamsi,

We can populate the List withing a section using Repeat Grid and then use HTMLtoPDF activity to export it as a PDF.

Thanks,
Ujjwal

February 14, 2018 - 4:00am
Response to UjjwalShukla_GCS

Or you can also try Work-.pxCreatePDF activity which is specified over here.

February 14, 2018 - 6:29am
Response to Mahesh Midthuru

Hi Mahesh,

I've tried using pxCreatePDF with some minor changes like commenting out AttachToWorkObject and invoking View PDF activity  for download. It worked, But when I have a grid with Pagination enabled, it is not helping.

Thanks,

Vamsi.

February 14, 2018 - 10:06am
Response to Vamsi.Thatavarthi

So what issue are you facing with the grid data?

February 15, 2018 - 12:34am
Response to Mahesh Midthuru

When we export section  containing Grid with Pagination to PDF. Only first page is exported.

February 15, 2018 - 2:28am
Response to Vamsi.Thatavarthi

Looks like this activity is extracting data into the generated pdf which is visible in the section, did you tried the HTMLToPDF activity which my colleague had suggested above? If it is extracting the complete grid data into pdf then you can use that or you can look into that activity how they handled it.

February 15, 2018 - 4:04am
Response to Mahesh Midthuru

Hi Mahesh,

pxCreatePDF is internally referencing HTMLToPDF. So I think invoking HTMLToPDF alone won't help in this case. I've created a new section with the same grid without pagination, removed action header etc. in the format I need and passed the section as argument to customized pxCreatePDF activity (commented AttachToWork and Invoked View PDF for download purpose). Now It is working fine.

Thanks,

Vamsi.

February 15, 2018 - 4:15am
Response to Vamsi.Thatavarthi

Good to hear that you have achieved your requirement with the customization of pxCreatePDF activity.

November 15, 2018 - 4:06am

Here I am attaching Word with screenshot it can help