Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

PDF properties in Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
klav - 30 Nov 2005 14:59 GMT
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?
Jezebel - 01 Dec 2005 09:09 GMT
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.

>I have a macro that I am using to convert a Word file to a PDF. I am
>changing
[quoted text clipped - 7 lines]
> don't see how you can get to the properties dialog settings by using code.
> Does anyone know how to accomplish this?
klav - 04 Jan 2006 12:52 GMT
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?

> 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
[quoted text clipped - 13 lines]
> > don't see how you can get to the properties dialog settings by using code.
> > Does anyone know how to accomplish this?
Doug Robbins - Word MVP - 04 Jan 2006 15:01 GMT
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.

Signature

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

> I'm using Acrobat 6.0.  I don't know how to use the registry.
>
[quoted text clipped - 26 lines]
>> > code.
>> > Does anyone know how to accomplish this?
klav - 04 Jan 2006 19:00 GMT
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?

> This was from an earlier post by Jezebel
>
[quoted text clipped - 39 lines]
> >> > code.
> >> > Does anyone know how to accomplish this?
Doug Robbins - Word MVP - 05 Jan 2006 21:14 GMT
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.

Signature

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

>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).
[quoted text clipped - 54 lines]
>> >> > code.
>> >> > Does anyone know how to accomplish this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.