Previous | Next | (P-PDF) JavaScript
Topic: Re: Adding pages dynamically to an open document (Via Email)
Conf: (P-PDF) JavaScript, Msg: 28569
From: prodok
Date: 10/16/2001 02:11 AM
The insertPages() and deletePages methods are indeed pretty much
secured. However, what you could do instead is using the Template
methods. In this case, you would create all the pages to be added as
hidden Templates in your document, and then use the
spawnPageFromTemplate() method to "assemble" your document.
Hope, this can help.
Max Wyss
PRODOK Engineering
Low Paper workflows, Smart documents, PDF forms
CH-8906 Bonstetten, Switzerland
Fax: +41 1 700 20 37
e-mail: mailto:max@prodok.com
http://www.prodok.com
[ Building Bridges for Information ]
______________________
Shameless Plug:
I will have presentations and pre- and post-conference workshops at
the .PDF2001 West Conference in Scottsdale, AZ, Nov. 5 to 7, 2001.
More details at http://www.pdfconference.com.
Workshops:
Nov. 4: Implementing Business Processes based on PDF
Nov. 8: Enhancing PDF Forms
_________________________
>I want to dynamically hide and show pages of a document (in response
>to a user?entry on a form).
>I tried defining templates and toggling the hidden property, but
>this changes the order of the pages.
>I then thought of using the insertPages() and deletePages() methods
>to insert pages from external source documents, but the default
>security on insertPages() prevents doing this.
>
>Does anyone know how to override the default security settings on
>methods, or does anyone have any other techniques for hiding and
>showing pages?
>