Skip to Content

Convert existing PDF report to txt document using Java mapping

Jan 18, 2017 at 05:53 AM


avatar image
Former Member

Hi Expert,

There is a java mapping written in sap pi which is generating an PDF report of page 10.-20 page. its been sent mail as an attachment via mail adapter. Could you please guide me how and where to do the change.

Also i am unable to figure it from where the name of pdf is taking.
PdfWriter pdfWriter = PdfWriter.getInstance(pdfDoc, new BufferedOutputStream(mOutputStream)); .

how will mOutputStream will take pdf name.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Helmut Skolaut Jan 29, 2017 at 07:35 PM

Hi Shashi,

if you utilize the PDF generation in an Java Mapping ,you have to fill dynamic configuration with the filename, depending on the ASMA requirements of the used Adapter.

The output stream you have to fill the resulting payload of the mapping in your case.



10 |10000 characters needed characters left characters exceeded