Vivek Sasidharan (Vivek_Sasidharan)
Ciberspring Technologies

Ciberspring Technologies
Vivek_Sasidharan Member since 2013 8 posts
Ciberspring Technologies
Posted: April 14, 2020
Last activity: April 15, 2020
Posted: 14 Apr 2020 14:35 EDT
Last activity: 15 Apr 2020 1:34 EDT

Merge a PDF attachment and a Section as a New PDF attachment

A PDF document is attached to a WO. A Section is also defined.

A New PDF needs to be attached to the WO which merges the Attached PDF and the Section PDF.

This is what we have tried.

Retrieve the PDF attachment to get the pyAttachStream ( Stream 1 )

Used HTMLToPDF activity to generated the PDF stream corresponding to the Section ( Stream 2 )

Concatenated Stream 1 + Stream 2

Saved a new attachment using this concatenated stream as pyAttachStream.

The New attachment ONLY had the Stream 1 PDF.

Concatenated Stream 2 + Stream 1 ( Reversed order of concatenation )

No Change. The New attachment ONLY had the Stream 1 PDF.


IS there any additional processing that needs to be done on the streams before it can be mergred.


***Edited by Moderator Marissa to update Content Type from Discussion to Question***

Pega Platform 7.1.5 Reporting Insurance Lead System Architect
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.