aspose file tools*
The moose likes Other Open Source Projects and the fly likes Adding attachment to pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Adding attachment to pdf" Watch "Adding attachment to pdf" New topic
Author

Adding attachment to pdf

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
I have the following source code:



The above code has src as source pdf file, dest as destination pdf file and temp file to be attached to the src file to generate dest file.

I want to integrate this code with my existing application. The existing application uses different technology(not itext) to generate pdf using following piece of code.



The variable data holds Byte Array equivalent of pdf. Later in the application the data is flushed as follows in servlet as follows



I want to attache a file to this pdf byte array stored in the variable. Please let me know if it is possible. I have tried a couple of things to store the data in temporary pdf, and then add attachment to it and then flush the new byte, but it is not working as expected.

Please advise if i am following correct approach.


SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding attachment to pdf