cancel
Showing results for 
Search instead for 
Did you mean: 

File to PDF

Former Member
0 Kudos

Dear Experts

I have a requirement that a flat file need to be send as an email attachment.

The trick is the client wants the flat file (.txt) to be sent as a PDF!

is it possible in SAP PI 7.1?

Sourabh

Accepted Solutions (1)

Accepted Solutions (1)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Sourabh,

                   using the itext library and java mapping this can be done. Please refer to this blog for more details. http://scn.sap.com/community/pi-and-soa-middleware/blog/2009/05/17/trouble-writing-out-a-pdf-in-xipi

Please kindly remember to rate the blogs in case you find it useful.

Regards

Anupam.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi again.

If you go for the iText solution, remember that the product is not free (even though it is open source): http://itextpdf.com/terms-of-use/

Best regards...

Peter

Former Member
0 Kudos

Hi.

Greg is correct. The task is not trivial but doable.

An alternative to iText is PDFBox : http://www.printmyfolders.com/Home/PDFBox-Tutorial

Best regards...

Peter

Former Member
0 Kudos

refer below blog and  it's  might be helpful :

http://www.saptechnical.com/Tutorials/XI/PDF/Index.htm

former_member184681
Active Contributor
0 Kudos

I didn't know that feature, but it looks really promissing with this particular requirement. Thanks for mentioning that!

Regards,

Greg

former_member184681
Active Contributor
0 Kudos

Hi,

This won't be an easy task, since you would have to convert the text file to the PDF in Java, for instance as it was described here:

http://www.ibm.com/developerworks/opensource/library/os-javapdf/

Regards,

Greg