Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Developers

Topic: Changing Conversion Settings in MS Word with VB
Conf: (P-PDF) Developers, Msg: 73955
From: kellingjk
Date: 10/10/2002 07:44 AM

I have searched for documentation on the AcrobatPDFMakerX ActiveX plugins and have found nothing. By browsing the object model in this plugin, it seems as if the ability to change the conversion settings for the MS Word PDFMaker is possible. By playing around with it, I have successfully changed all of the conversion settings; however, here are some of the problems I have found (please add to this if you can).

In Acrobat 4.0 --
Changing any settings is risky. It seems as if the settings made with the plugin override, in someway, the settings made manually. After doing this, the only way to manually change settings is to manually wipe out registry settings. The uninstaller does not seem to clear any of this up.

In Acrobat 5.0 --
The plugin seems to have been improved quite a bit since 4.0. Changes to the conversion settings made through VB and changes made manually by the user coincide. They do not seem to limit or override each other. In changing the bookmark conversion settings, I have run into a couple other problems. The bookmark settings can be changed, but not with any ease. There is also a slight block in automation. To access the bookmark settings, it seems you must follow these steps:
Define a AdobePDFMakerX.Word object, then from that, you get a AdobePDFMakerX.Options object, and from that, a AdobePDFMakerX.WordHeadings object. Here you can proceed to make changes to the on/off and level settings. There is another setting that may block these changes from being made. This is the Bookmarks property in the AdobePDFMakerX.Options class. You must pass one parameter to this property to access it. Either pdfMakerBookmarksFromHeadings, pdfMakerBookmarksFromStructure, or pdfMakerBookmarksFromStyles. pdfMakerBookmarksFromStructure does not seem to exist in version 5.0, only in 4.0. The Bookmarks property is of type 'Long' and in passing each of these parameters, can be 0, 1 or 2. These correspond to the checkboxes in the Conversion Settings dialog window for "Convert Word Headings to Bookmarks" and "Convert Word Styles to Bookmarks." 0 means this option is off, 1 is for all on, and 2 is for mixed on. The problem arises when trying to modify this setting. Changing it will always result in the property being set to -1. If this option is at -1, 0, or 1, any modification to the corresponding AdobePDFMakerX.WordHeadings will not appear. If at -1 or 0, no bookmarks will be converted. at +1, all will be converted, and you can't turn them off. Also, by changing the Bookmarks(pdfMakerBookmarksFromHeadings) property to 0, it will change the other two to 0 as well. The only way I have found to get around this is by manually going in and selecting headings and styles to achieve a mixed state in both the Headings and Styles options, then the automation will work. Well, I don't like this.. help if you can :)


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor

Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.


Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.