Close popover
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

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