Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CreatePDF

113 views
Skip to first unread message

Geert Snyders

unread,
Nov 21, 2002, 2:53:42 AM11/21/02
to
Hi,
I'm trying to use the createpdf function in VB from the AdobePDFMakerX.Word class.
If I call this function I see ms word popping up but nothing happens.
What am I doing wrong.
Thanks,
Geert

This is my code

Dim pdfConvert As AdobePDFMakerX.Word
Set pdfConvert = New AdobePDFMakerX.Word
blnReply = pdfConvert.CreatePDF("c:\test.doc", "c:\test.pdf")
'test.doc exists, test.pdf doesn't
Set pdfConvert = Nothing

Aandi Inston

unread,
Nov 21, 2002, 5:12:28 AM11/21/02
to
That isn't a developer tool, so it is always a guess what it might, or
might not, do. The Acrobat SDK lists supported developer interfaces
to Acrobat - but there isn't one for Word to PDF.

Aandi Inston

Aandi Inston

unread,
Nov 21, 2002, 6:28:10 AM11/21/02
to
Not directly: Distiller only reads PostScript.

You would first have to use VBA or Word Basic to open the Word
document, select the Distiller printer driver, and print to file.
Then you can use the Distiller API to convert the PostScript to PDF.
There will be no links, bookmarks etc. in this method.

Aandi Inston

Geert Snyders

unread,
Nov 21, 2002, 6:07:43 AM11/21/02
to
Ok thanks.
Is there another way to create a VB program that converts a word-doc to a pdf. Is it possible with distiller? Is there some documentation available, maybe with usefull example-code in it.
Regards,
Geert

Geert Snyders

unread,
Nov 21, 2002, 7:17:44 AM11/21/02
to

Geert Snyders

unread,
Nov 21, 2002, 9:32:12 AM11/21/02
to
Aandi,
I see I have posted a message twice by accident. Sorry.
I've managed to create pdf-files from a word-doc by using the distiller. The only thing I have to do right now is copying the file from the distiller-ouput-location to a variable location. Since the dist-output-location isn't the same on every machine I need to retrieve the path in my VBcode. Do you know how to retrieve this location? Thanks,
Regards,
Geert

Aandi Inston

unread,
Nov 21, 2002, 9:51:24 AM11/21/02
to
I think you are trying to get around printing to file then using the
Distiller API....

Aandi Inston

Steve Rindsberg

unread,
Nov 21, 2002, 4:50:27 PM11/21/02
to
Follow the links from here:

Control Distiller from VB/VBA
http://www.rdpslides.com/psfaq/FAQ00053.htm

You can control where Word creates the PS file and where Distiller puts the
finished PDF with this.

0 new messages