We currently use the printer driver com interface and word's PrintOut method to create a pdf file for a Word document. For weblinks that do not show the link target url no link is created in the pdf file. Manually creating a pdf file from the same document using the PDF-XChange word integration (addin), such links are generated as expected.
Additionally there are also some issues with the bookmark creation thru the printer driver. Bookmarks are created for locations that are not formated as headings, but using the same fontname, size and bold/italic-style. Again, if the pdf file is created by thru the word addin, the bookmarks are as expected.
Is it possible to access/use the PDF-XChange Word addin from vba or Word COM interface to create a pdf file for a Word document? To solve the problems, it would be enouph to invoke the pdf creation function passing in the target file name. Of course, to not break the automation, no dialogs must be shown by that function.
Regards
Holger
VBA access to Word Addin?
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- Site Admin
- Posts: 17960
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: VBA access to Word Addin?
indalgds,
I will have to disappoint you but the office add in is not part of the SDKs, yes it works with the stand alone driver but is not included in the developer kits.
Best Regards,
Stefan
I will have to disappoint you but the office add in is not part of the SDKs, yes it works with the stand alone driver but is not included in the developer kits.
Best Regards,
Stefan
-
- User
- Posts: 9
- Joined: Fri Jul 17, 2009 7:55 am
Re: VBA access to Word Addin?
Just for clarification:
Until now, it looks like that only the first of the above items is possible via automation. The Word addin handles the other two items but can not be automated in any way, correct?
Regards
Holger
- We need to create pdf files from a Word document via com automation or command line without any further user interaction.
- Bookmarks for the pdf file must be created from headings in the Word document. For other texts in the Word document using the same formating (font, size, bold/italic, color) than Word heading styles but are not formated using the Word heading styles NO bookmarks must be created.
- All internal links, file links and weblinks in the Word document must result in corresponding links in the created pdf file. This must be true even for links that do display the link target (embeded links?).
Until now, it looks like that only the first of the above items is possible via automation. The Word addin handles the other two items but can not be automated in any way, correct?
Regards
Holger
-
- Site Admin
- Posts: 17960
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: VBA access to Word Addin?
Yes indalgds,
I am affraid that unfortunately there is no way to use the office add-in specific features through the SDKs.
Regards,
Stefan
I am affraid that unfortunately there is no way to use the office add-in specific features through the SDKs.
Regards,
Stefan