PDF properties in Word

K

klav

I have a macro that I am using to convert a Word file to a PDF. I am changing
the activeprinter to "Adobe PDF" to do this. When you manually change your
printer to "Adobe PDF" you have access to the Properties dialog box which
allows you to specify certain security for the PDF -- set a password,
restrict editing, etc.

I would like to be able to set these security settings within my macro but I
don't see how you can get to the properties dialog settings by using code.
Does anyone know how to accomplish this?
 
J

Jezebel

It depends on on which version of Acrobat you are using. You don't have
direct access to the adobe dialog; but the dialog updates the registry and
you can change these registry settings directly. For Acrobat 6, look at
HKCU\software\Adobe\Acrobat\6.0\global (I think that's it....). Certainly
the settings for prompt for filename and open completed file are there.
 
K

klav

I'm using Acrobat 6.0. I don't know how to use the registry.

I see there are VB codes called SaveSetting, Getsetting, Deletesetting but I
don't know how to apply them -- these codes require arguments for application
name, section, key, and default. Can you provide me with an example?
 
D

Doug Robbins - Word MVP

This was from an earlier post by Jezebel

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.


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
K

klav

I am using the printer driver to turn the item into a pdf from within Word
(i.e., file / print / and then selecting "adobe pdf" as the printer).

Is AdobePDFMaker a macro?
 
D

Doug Robbins - Word MVP

No, it's Template containing macros that is located in C:\Program
Files\Microsoft Office\Office##\Startup

ConvertToGelatoPDF is a macro contained in that template.

Unfortunately, the template is protected so you can't get at the code of the
macro.

To prevent the prompts from appearing, you need to have the adobe printer
driver selected in the File>Print menu and then click on the Properties box
and uncheck the Prompt for Adobe PDF Filename and probably also the View
Adobe PDF Results.



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top