Javascript inside PDF – Detect Browser Acrobat Reader Version

Introduction

Yesterday I had a chance to met with “Adobe Acrobat X Pro“. I feel remorse for meeting lately to such a wonderfull software, Acrobat X.

If you need a complete PDF editor, just check out.

How Can a Pdf Editor be so Bully?

With “Adobe Acrobat X Pro”, you can :

  1. Save PDF files as Word documents with improved preservation of formatting and layouts. Relative positioning of tables, images, and even multicolumn text is preserved, as well as page, paragraph, and font attributes.
  2. Combine a wide range of file types into a polished, organized PDF Portfolio. Apply professionally designed layouts, visual themes, and color palettes. Easily add corporate logos and colors to reflect your branding.
  3. Quickly bring ideas to life through rich, interactive documents. Insert audio, Flash Player compatible video, and interactive media into PDF files, for seamless playback in Adobe Reader X or Reader 9.
  4. Automate routine, multistep tasks into a guided Action. Create, manage, execute, and share a sequence of frequently used steps that can be applied to a single PDF or batches of files.
  5. Eliminate confusion and improve version control. Easily identify differences between two versions of a PDF file by having Acrobat analyze both files and highlight changes to text and images.
  6. Enable Adobe Reader X or Reader 9 users to participate in shared reviews, fill and save forms, and digitally sign and approve PDF documents — regardless of platform or operating system.
  7. Easily convert existing forms to fillable PDF forms with intelligent form field recognition, or design them yourself using included templates. Collect data quickly and export to spreadsheets for analysis. Track and manage responses.
and more..
I will focus on the 3. – 4. and 7th items, that I marked as bold. Living and interactive documents? Inserting audio, Flash player and more interactive media.. I’m looking like this now => :O
Pdf documents are always one of the key points that is always discussed in securty forums. With Html5, we have the ability to include pdf’s to our webpages without Javascript&Activex. This new features in Html5 shows us the future of pdf documents.

You are not still excited? Then check this showcases :

– Amy Graff, Professional Student and Instructor

If you have Adobe Reader or Adobe Acrobat installed on your system and your browser supports Html5, you should see the embed pdf document, that show your Reader or Acrobat version with Javascript.

Lets take a deeper look inside this Pdf file.

This PDF created as a Form Application, and checking the Adobe Reader version and Adobe Acrobat version with ACRO_script – JavaScript.

You can see the forms in the PDF file, like a simple Html page or a server-side-languages.

I said server-side-languages because the form applications those collects a value or stores the form input in a database, these are the attirubutes of Pdf files with Acrobat.

Detect Client Browser’s Reader or Acrobat Version

Now take a look to Javascript too :

The whole code :

You can develop my example with your own Javascript knowledge.

Finally I can easily say, Javascript will never die! Jquery, Mootools, Ajax and more..

Mustafa Serhat Dündar

Leave a Reply