Print Page | Close Window

Any good books on JavaScript in PDF

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
Printed Date: 18 Oct 2019 at 12:07pm
Software Version: Web Wiz Forums 11.10 -

Topic: Any good books on JavaScript in PDF
Posted By: jwebsmall
Subject: Any good books on JavaScript in PDF
Date Posted: 28 Jun 2013 at 12:12am
Can anyone recommend a good beginners book on embedding JavaScript in PDFs?

I already know JavaScript.

I need to know how to take a PDF document developed by others
at work and embed JavaScript to implement a primitive digital
rights management system.  In other words I want to call the
API of the PDF host document and find out what machine this
is running on or else be able to read the filesystem for a
license key and "fetch a URL" that would report the PDF
had been copied from another machine.

Maybe this is already possible in PDF.  I don't know anything
about PDF.

What book should I start with to come up to speed on PDF?
I don't care about generated PDF content programatically



Posted By: aandi
Date Posted: 28 Jun 2013 at 9:51am
Many people have tried to implement DRM with JavaScript, but it is a non-starter.

Consider that anyone can turn off JavaScript (indeed, some people are forbidden from turning it on), and your JavaScript is not too difficult to view.

Using URLs to report things would be a breach of privacy, so Acrobat will ask before connecting...

I don't think you can find the current host, due to sandboxing, so I may be wrong.

Posted By: jwebsmall
Date Posted: 28 Jun 2013 at 4:46pm


Posted By: Merlin
Date Posted: 30 Jun 2013 at 1:20pm
Originally posted by jwebsmall jwebsmall wrote:

Can anyone recommend a good beginners book on embedding JavaScript in PDFs?



It's the best.

Posted By: jwebsmall
Date Posted: 30 Jun 2013 at 3:56pm
Thanks Merlin,   I'm reading the sample chapters now!


Posted By: oald
Date Posted: 26 Aug 2013 at 7:35am
The Acrobat SDK Help is very helpful: -

My Product Information:
Acrobat Pro 8.1.6, Windows

Posted By: gkaiseril
Date Posted: 26 Aug 2013 at 5:10pm
There are not many because Acrobat uses just a subset of the JavaScript and has some specific objects and methods unique to Acrobat.
You might also want to look at - Oreily Media  for the - Definitive JavaScript Guide .

Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 -
Copyright ©2001-2017 Web Wiz Ltd. -