Help:Manual PDFjavascript: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Help_Welcome]]
[[Category:Help_Welcome]]
[[Category:PDF Forms]]


[[Help:TOC|Table of Contents]]
[[Help:TOC|Table of Contents]]
Line 6: Line 7:
Scribus has very complete support for adding interactive features to PDF. With the exception of Acrobat Pro, perhaps no other application can offer more in the area of PDF forms, presentations or other interactive elements than Scribus. This is enabled via dialog boxes in the field properties and by adding JavaScript based functions attached to PDF buttons and text fields.
Scribus has very complete support for adding interactive features to PDF. With the exception of Acrobat Pro, perhaps no other application can offer more in the area of PDF forms, presentations or other interactive elements than Scribus. This is enabled via dialog boxes in the field properties and by adding JavaScript based functions attached to PDF buttons and text fields.


The best way to demonstrate this is via a PDF tutorial which has these features:
There is an article on the wiki:


The "JavaScripting PDF " from [http://docs.scribus.net] is a step by step guide for beginners to enhance PDF with JavaScript.
[http://wiki.scribus.net/canvas/How_to_enhance_your_PDF_forms_with_JavaScript How to enhance your PDF Forms with JavaScript]


Direct Link: [http://docs.scribus.net/content/en/pdfs/javascriptpdf.pdf http://docs.scribus.net/content/en/pdfs/javascriptpdf.pdf]
which shows some basic examples. There are more comprehensive resources as well. At Adobe's site:


After reading this PDF tutorial, the next section, PDF Web Forms walks you through the step by step creation of a web based PDF form with a sample .php snippet to read the submitted data.</p> <p>This is best viewed by Acrobat Reader 5.x downloaded and run outside of a browser. You can typically right click the links to the PDF and <em>Save As.*</em>. to save the file locally. Other PDF viewers do not have the JavaScript support to view this properly.</p> <p>Lastly, a good link for with code examples: [http://www.accesspdf.com/article.php/20050510131850979#comments http://www.accesspdf.com/article.php/20050510131850979] for using the pdftk utilities to allow using html as a front end to filling in PDF forms.</p>
[http://www.adobe.com/devnet/acrobat/javascript.html JavaScript for Acrobat]
 
look for links under Acrobat 8: ''JavaScript for Acrobat API Reference'' and ''Developing Acrobat Applications Using JavaScript'', which are downloadable PDFs which have more than enough documentation to get you started. If you go to the above Scribus wiki link you see that in Scribus you enter your JavaScript commands in a dialog.


[[Category:Help_Manual]] {{OPL}}
[[Category:Help_Manual]] {{OPL}}

Latest revision as of 23:13, 28 June 2012


Table of Contents

Enhancing Scribus PDF with JavaScript

Scribus has very complete support for adding interactive features to PDF. With the exception of Acrobat Pro, perhaps no other application can offer more in the area of PDF forms, presentations or other interactive elements than Scribus. This is enabled via dialog boxes in the field properties and by adding JavaScript based functions attached to PDF buttons and text fields.

There is an article on the wiki:

How to enhance your PDF Forms with JavaScript

which shows some basic examples. There are more comprehensive resources as well. At Adobe's site:

JavaScript for Acrobat

look for links under Acrobat 8: JavaScript for Acrobat API Reference and Developing Acrobat Applications Using JavaScript, which are downloadable PDFs which have more than enough documentation to get you started. If you go to the above Scribus wiki link you see that in Scribus you enter your JavaScript commands in a dialog.

This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. Distribution of the work or derivative of the work in any standard (paper) book form is prohibited unless prior permission is obtained from the copyright holder. A copy of the license is included in the section entitled "Text of the Open Publication License."