I want to send a file to print as a PDF document. This
works fine except when the dialog pops up to name the
file. I can't seem to fill in the box. I've tried a
sendkeys command using the results of an input box with
no luck.
Any ideas?
TIA,
Paul Hammond
Richmond, VA
Steve Rindsberg - 13 Nov 2004 16:38 GMT
> I want to send a file to print as a PDF document. This
> works fine except when the dialog pops up to name the
> file. I can't seem to fill in the box. I've tried a
> sendkeys command using the results of an input box with
> no luck.
1) Assuming you're using Adobe PDF (or the earlier Acrobat Distiller) driver,
you can set it up not to ask for a file name; it automatically creates a new
name for the PDF based on comments the source app puts in the PS output.
Give it a try. It's nice and simple but not always acceptable for several
reasons.
2) You can print to a PS driver and send the results To File then
programmatically invoke Distiller to convert the PS file to a PDF. This was
fairly simple to do and documented by Adobe and others for versions through
Acrobat 5. Adobe broke it with Acrobat 6 and doesn't document the changes;
they want you to sign up for their developer program to get documentation.
3) Print to PS and use GhostScript instead of Distiller.

Signature
--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Paul Hammond - 16 Nov 2004 22:44 GMT
You wrote:
1) Assuming you're using Adobe PDF (or the earlier
Acrobat Distiller) driver, you can set it up not to ask
for a file name; it automatically creates a new name for
the PDF based on comments the source app puts in the PS
output.
***************
You assumed correctly and this worked sufficiently. I
can fiddle with the file name and location. Thanks for
your excellent post(s).
Paul
Steve Rindsberg - 17 Nov 2004 01:55 GMT
> You wrote:
>
[quoted text clipped - 9 lines]
> can fiddle with the file name and location. Thanks for
> your excellent post(s).
Glad to hear it, Paul ... thanks.

Signature
--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Steve Rindsberg - 13 Nov 2004 18:03 GMT
> I want to send a file to print as a PDF document. This
> works fine except when the dialog pops up to name the
> file. I can't seem to fill in the box. I've tried a
> sendkeys command using the results of an input box with
> no luck.
Ooops. One more:
4) You might be able to use Distiller's Watched Folders feature to
automatically distill PS files that you programmatically print to a watched
directory. This used to be fairly easy to set up; in Acrobat 6, the watched
folders feature seems to have become a lot crankier than it used to be.

Signature
--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================