Re: Print Directly To PDF by Jezebel
Jezebel
Fri Aug 19 08:06:16 CDT 2005
There's no free source of documentation that I know of. You can see the
methods of the object by using Tools > Macros and selecting PDFMaker from
the 'Macros in' dialog. Then experiment :)
Earlier versions of Acrobat had an SDK that you could download for free.
That provided some documentation, some of which is still relevant. But with
Acrobat 6 the SDK is no longer free, and I'm too stingy to pay for it. And
in any case, they're now up to version 7, which is a different kettle of
fish entirely.
"David C. Holley" <DavidCHolley@netscape.net> wrote in message
news:e97TZp$oFHA.3656@TK2MSFTNGP09.phx.gbl...
> Where can I find more documentation on the AdobePDFMaker object with its
> properties & methods?
>
> Jezebel wrote:
>> If you're using Acrobat 6 --
>>
>> 1. Add a reference to AdobePDFMaker to your VBA project.
>>
>> 2. Use the instruction: AdobePDFMaker.ConvertToGelatoPDF
>>
>> The PDF will have the same name as the Word document, and be put in the
>> same folder. You can then rename it as you need. To make sure you get no
>> prompts from Acrobat, a) Make sure the Word document is saved, and b)
>> check that there is no existing PDF file that will get overwritten.
>>
>>
>>
>>
>> "Ben" <Ben@discussions.microsoft.com> wrote in message
>> news:38251410-BE0A-464A-BC03-BC0D2A8A4430@microsoft.com...
>>
>>>What line of code would I use in word to print a document directly to a
>>>PDF
>>>without getting in information form the user. The variables that I would
>>>want
>>>to set in code would be:
>>>For the PDF to be saved in the same location as the original document.
>>>I want to set the name of the PDF in code
>>>
>>>The name of my PDF printer is: "Adobe PDF"
>>>
>>>I just want to put a button on a word document that prints the current to
>>>a
>>>PDF storing it in the same location as the original document and with a
>>>file
>>>name that I set in code.
>>>
>>>Thankyou in advance for your help.
>>
>>