1 Reply Latest reply on Dec 9, 2008 12:48 PM by Jasmin Charbonneau

    Assemble PDF with attachments

    Sentah Level 1
      Hi All,<br /><br />I am planning to assemble a PDF document with attachments. Or as I see my requirement is to create a PDF and attach various files to it. The PDF would then be sent as an attachment to an email.<br /><br />The user should be able to open the emailed PDF and save the image/application attachments seperately.<br /><br />To achieve this I had generated the sample DDX and tried it in a process, but no luck.<br /><br />All the source objects are avaialble int he assembler map object of documents with the correct key value.<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><DDX xmlns="http://ns.adobe.com/DDX/1.0/"><br /><PDF result="pdf2image_res.pdf"><br /><PDF source="pdf2image_res.pdf"><br /> <FileAttachments source="image-1.jpg" nameKey="image-1.jpg"><br />  <File filename="image-1.jpg"/><br /> </FileAttachments><br /> <FileAttachments source="image-2.jpg" nameKey="image-2.jpg"><br />  <File filename="image-2.jpg"/><br /> </FileAttachments><br /></PDF><br /></PDF><br /></DDX><br /><br />Then I extract the generated pdf in a document like '/process_data/docAssemblerMap[@id='pdf2image_res.pdf']'<br /><br />The generated PDF does not have the attachments embedded in it.<br /><br />Any thoughts/help would be greatly appreciated.