PDF Merging - Document Javascript wasn't copied

PDF Merging - Document Javascript wasn't copied

Forum member · Feb 8, 2012
I have some PDFs that I am merging together. My first pdf has a Document level javascript function declared. Several fields on that pdf have Javascript actions wired up to call this document level function. When I look at the resulting pdf that DynamicPDF Merger 6.0 created, I see that my javascript actions are still present on my fields, but the document level function itself did not get copied. Should it have? Do I need an upgraded license? If the document level javascript is not copied, is there a way I can handle that programmatically? Any sort of prompt reply would be very much appreciated. Thank you!

Re: PDF Merging - Document Javascript wasn't copied

Support · Feb 9, 2012
Hello, Can you please send over the input PDF documents containing JavaScript and the sample code which you are using for merging to our support team at: [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] so that they can look into it further? Thanks, ceTe Software Support Team.

Re: PDF Merging - Document Javascript wasn't copied

Forum member · Feb 9, 2012
As an fyi, I have sent the email you requested and gotten a support ticket # (S10968042). I am awaiting a response. Thanks!

Re: PDF Merging - Document Javascript wasn't copied

Support · Feb 9, 2012
Hello, Below is the code will preserve the document level java script in the PDF document. MergeDocument document = new MergeDocument(); MergeOptions opt = MergeOptions.All; opt.DocumentJavaScript = true; document.Append(pdfPath, opt); document.Draw(“test.pdf”); You currently have license to use Merger Professional edition and you do not need any additional license to preserve the java script using the above code. Thanks, ceTe Software Support Team.

Re: PDF Merging - Document Javascript wasn't copied

Forum member · Feb 13, 2012
That resolved my issue. Thank you for that very prompt reply.