I want to add the content of an external .js file to a PDF file. I'm using the follwoing code to do it:
Dim js As New ceTe.DynamicPDF.DocumentJavaScript("StartUp", _ jsFileContents)
_app.JavaScripts.Add(js)
(jsFileContents is the script and _app is the document)
The code doesn't fail, but when I open the pdf and take a look at the "Startup" document level script, I see this:
q
1 0 0 1 122.39 220.84 cm
.367 0 0 .367 0 0 cm
4 w
/X0 Do
Q
q
Any ideas?
Javascript in PDF
Re: Javascript in PDF
Support · Mar 30, 2007Hello,
We are not aware of any issues when trying to add JavaScript to the PDF document. Can you please make sure that you are using the latest version (Build 70322) of our product? If not, you can download it by logging into the Customer Area
using your serial number if you currently have a license or download the latest evaluation version from our web site.
If you still continue getting the same behavior, please send us over the PDF document, code and the JavaScript file to our [^a|mailto:support@cete.com|Support Team^] and we can take a look at it.
Thanks,
ceTe Software Support Team