Can I update the content of the pdf with new content in the same object?

0
Hi. I am uploading one pdf in one page and commiting and generating pdf. And in the next page I am retriving the same attchment object and there again I am uplaoding a new one. Now I want to update the content of the first pdf with the second one.    Thanks
asked
2 answers
1

Use the community commons DuplicateFileDocument. It will copy one filedocument into another filedocument.

Regards,

Ronald

 

answered
1

Not sure what exactly you are trying to achieve - to replace the original pdf or merge the two pdf files.  If the latter one, use DuplicateFileDocument as suggested by Ronald to copy the newly uploaded file to overwrite the original.  If you want to merge them, use MergeMultiplePdfs java action.  Both are available in the Community Commons module from the app store

answered