PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

List members:

Thanks again - I have taken the menu item approach, but when I try to pull a
field value into the file name, the file is saved as "[Object Field].pdf"
instead of "123456.pdf" (123456 is the value of cNumber in the form)

Here's the code:

var f = this.getField('cNumber')
this.saveAs('/c/temp/' + f + '.pdf')

This example is copied from the SDK, so the syntax *should* be correct.
I verified the field name is correct and in the proper case, and it has a
value in the form.

Once again, I appreciated any ideas that might point me in the right
direction.

TIA




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Aandi Inston
Sent: Thursday, November 20, 2003 3:50 PM
To: [EMAIL PROTECTED]
Subject: RE: [PDFdev] Should be a simple JavaScript



PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

> I figured it would take
> a couple hours
> to have the saveAs working, BUT it's turned into a whole day
> affair with no
> resolution in sight. Am I taking an incorrect approach to this whole
> process?

Probably. As I explained, you can't just go allowing SaveAs in embedded
JavaScript. Hacker's delight!

Until now I thought that was the end of it, but it seems Adobe have
provided a way. Can't say I approve, but there it is.  Don't expect it
to be a lightweight process - this must be absolutely hacker proof,
with every user of the document trusting the creator. The means for
this trust seems to be digital signatures.  But you say you've done
that, in which case I'm not sure what could be wrong.  I'm assuming
you aren't trying to do this with the free Reader.

The traditional approach to this is to create menu events and
allow access to them. This is done with user level JavaScript.

Aandi

To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html




To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to