Skip to main content
Jan 16, 2023 6:56 AM UTC
Question

Create a PDF file in Change Notice

Hello Community,

 

I have a requirement where I need to generate a PDF file which will contain some of the attributes of Change Notice, I am not sure how exactly I should go about it. Requesting you to share some details to create a pdf in the code.

 

Thanks,

Sha

8 replies

Jan 16, 2023 1:58 PM UTC

One way would be to create a report.  I don't know if you are an admin but admins have the access to create them.  It would be in the administrative Utilities area under Report Management.

 

Another possibility for you to look at is while on the Detail page of the CN go to the Actions menu at the top left and select View Summary Report.  I am on 12.0.1.3 so I don't know if it's there in previous versions.

At the top of that page is a drop-down allowing you to create the report as a PDF.  then you can download the PDF.

STEVEG_1-1673877465519.png

 

Sha11Author
Jan 16, 2023 6:28 PM UTC

Hello @STEVEG ,

 

The expectation is that the report should be generated automatically at a specific point in the workflow and gets attached to the Attachments of the Change Notice, this should be done without any manual intervention. I want to generate this report through code so that I can add some additional information as required.

Jan 16, 2023 9:26 PM UTC

You can certainly do that.  However, you would need to know how to create the workflow for that and also how to create the report.

We do something similar to what you want but we have a 3rd party partner we work with that does all our workflow, reports or anything else we need.

They created a report the gets the info we want and sends an email of that info once the workflow gets to a certain point.

Jan 17, 2023 8:04 AM UTC

Hi @Sha11 

 

For own PDF generation, you need to understand how to create PDF in Java. For example with Itext library. PTC use old version of Itext library (com.lowagie.text package)

You can find some tutorials how to create PDF in https://itextpdf.com/resources/api-documentation

 

PetrH