Hi Gill,
We have tried pdf attachment.
First generate a PDF by thr following steps
and we were suppose to generate the PDF report
-
Prepare XSLT based on the PDF Report layout.
-
Pass IS document data in XML format to XSLT to convert to FO format.
-
Use the FO file to generate the PDF using the pdf:xsltopdf.(custome java service)
-
Delete the PDF file from the file system after it has been made available to application user.
scenarion 1: (without encoding)
Then pass the PDF-content in bytes to attachment.content of the smtp service
set the attachment.contenttype=application/x-pdf
But when we open the attachment in the mail, we get the error saying cannot read the file as file is damaged
Scenario 2 : ( with encoding)
encode the pdf.content in bytes using the pub.string:base64Encode
Then pass this bytes to attachment.content of the smtp service
set the attachment.contenttype=application/x-pdf
But when we open the attachment in the mail, we get the error saying file is not decoded properly.
Please help us on this
Thanks
Sneha
#webmethods-Protocol-and-Transport#webMethods#Integration-Server-and-ESB