This content has been marked as final. Show 6 replies
> I have gotten openDoc to work and open a document, but then when I try to print, it prints the checklist that
>var pDoc = app.openDoc("UD-ArtisanPark.pdf", this);
openDoc does not change the definition of "this". It returns a
document object for you, or more frequently returns nothing (see the
this.print(pp) will print the document "this" refers to, which is the document running the script.
If you have something like:
var oDoc = app.openDoc("myfile.pdf", this)
then you would have to do:
to print that opened document.
PDL, are you sure that works? I couldn't get it to work.
The document doesn't need to be opened. I simply need to print some documents that are on the server. They don't need to be opened. In fact, if it's possible, it would be better if they weren't
That will work, subject to the very specific security limitations of
openDoc, since as I said it will more frequently return nothing, in
which case you clearly can't print nothing either.
I would disagree. It appears to be printing nothing quite readily, Aandi. :)
Other than that, Aandi is of course correct as he usually is. As long as you are getting an actual Doc object returned by openDoc, the method described above will print it.
ok guys. I will read it. Reading is easy. 'Understanding it' is the hard part ;)