How to Automate PDF document Using JavaScript
Hello friends,
I just wanted to know how we can Automate PDF document using JavaScript, i heard this is possible with the javascript which has an very lengthy code. and If possible also let me know how can we covert the PDF written text or documents into Word file.
Thanks in Advance!
Re: How to Automate PDF document Using JavaScript
Acrobat JavaScript provides a simple and flexible way to automate this task, turning it into an easy one click operation when used from a toolbar button or menu item, or updating whole directories of files when used in a batch process. Metadata can even be added or updated through a server based workflow by using Acrobat JavaScript and PDF.
Metadata information includes the document title, author, keywords, a copyright notice, and any other information the document authors feel is important. Unfortunately, applying metadata manually is time consuming, tedious and error prone. As a result, metadata is often either missing or inadequate on working PDF documents.
Accessing the PDF Metadata from JavaScript
The Acrobat JavaScript DOM (Document Object Model) provides a single, easy to use Document Object property for accessing the PDF metadata, the info property. With this property we can get and set any metadata value, as well as create new metadata entries. Some examples are shown below.
Code:
// Acquire the document title
var strTitle = this.info.title;
// Set the document author to the current users name
this.info.author = identity.name;
// Add a copyright notice. This is a custom metadata entry
this.info.copyright = "Copyright\xA9 " + this.modDate.getFullYear( );
Re: How to Automate PDF document Using JavaScript
PDF to word file conversion is possible and i have a software that exports the text, images and other contents from any PDF document into MS Word document format (RTF or Word), so you can edit and reuse your PDF content. PDF2Word (PDF to Word) preserves the original PDF text, layout and bitmap images in the generated Word document.
PDF2Word (PDF to Word) software is a standalone program and does not require Microsoft Word, Adobe Acrobat, or even Acrobat Reader.
Re: How to Automate PDF document Using JavaScript
You can also download the PDF to Word file converter from many sites it is also available on the internet and it helps you to easily and properly convert the PDF file to word format.
http://www.investintech.com/prod_a2d.htm