New Forum | Previous | Next | (P-PDF) Developers
Topic: Changing Conversion Settings in MS Word with VB
Conf: (P-PDF) Developers, Msg: 73955
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 :)