Skip to main content
14-Alexandrite
January 16, 2023
Question

Create a PDF file in Change Notice

  • January 16, 2023
  • 2 replies
  • 2624 views

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

2 replies

21-Topaz I
January 16, 2023

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

 

Sha1114-AlexandriteAuthor
14-Alexandrite
January 16, 2023

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.

21-Topaz I
January 16, 2023

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.

HelesicPetr
22-Sapphire II
22-Sapphire II
January 17, 2023

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