Object Model for PDF Exchange Viewer Javascript Engine

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

maccoski
User
Posts: 2
Joined: Wed Oct 27, 2010 4:53 pm

Object Model for PDF Exchange Viewer Javascript Engine

Post by maccoski »

Hello~

I couldn't decide which form to post this so please re-direct me if I have posted in the wrong place.

I am looking for a simple method to programatically add annotations to some pdf files that I have created from AutoCAD. While reading through the help file provided with PDF Xchange Viewer Pro, I noticed that it is possible to use a "/runjs" command line switch. The example javascript in the help file is essentially what I'm looking to do. I can forsee other applications where I could utilze this approach but I have not been able to locate all of the objects, methods and properties available.

I found "Knowledge Base Article: KB63." I have reviewed the document hyperlink:" PDF-ToolsV4SDK.pdf Help File (Topic 3.2 Low-Level API, pg. 377)". I have also reviewed the hyperlink listed in the last sentence: "This document describes the JavaScript for Acrobat API. All objects, properties and methods are documented and extensive code examples are presented.
JavaScript for Acrobat API Reference, Version 8 (PDF)"

This document helps quite a lot but I don't see a complete list of "all objects, properties and methods". Moreover, some of the objects, properties and methods listed in "JavaScript for Acrobat API Reference, Version 8 (PDF)" do not seem to be available in PDF Xchange Viewer Pro.

Is it possible to get a summary of the PDF Xchange Viewer Pro supported objects, properties and methods?
User avatar
John - Tracker Supp
Site Admin
Posts: 5225
Joined: Tue Jun 29, 2004 10:34 am

Re: Object Model for PDF Exchange Viewer Javascript Engine

Post by John - Tracker Supp »

Hi,

To try and answer 'concisely' - for you the Viewer Ax is the way to go and whilst our implementation of JS is not 100% we are working constantly to add and improve all the time - and on the upside our support in regards annotations is complete - so you should find no limitations there that I can foresee - though there is always the 'caveat' 'foresee' ... ;-)

In regards listing all
supported objects, properties and methods?
Thats just not possible as it is huge and would just not be practical - please see the Adobe file :

http://www.adobe.com/content/dam/Adobe/ ... erence.pdf

if you come across any specific problems we would be pleased to assist - but in general terms this is a good place to start along with the simple examples provided in the evaluation SDK.

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com