merging pdf files trough Word VBA -> possible?

W

ward

Hello,

I'm developing an Word add-in the will create one Word
document from several Word documents. This file will then
by converted (printed) to a pdf using PdfWriter. No
problem with this first part.

However, I would like the add-in to append some existing
pdf's to this final pdf. So the whole operation would
result in one (large) pdf file that originates from a
couple of word files and a couple of existing pdf files.

I'm not sure that this (appending extra pdf's) is possible
through Word VBA. Does anybody has any idea about this?

thanks in advance,
Ward
 
J

Jonathan West

ward said:
Hello,

I'm developing an Word add-in the will create one Word
document from several Word documents. This file will then
by converted (printed) to a pdf using PdfWriter. No
problem with this first part.

However, I would like the add-in to append some existing
pdf's to this final pdf. So the whole operation would
result in one (large) pdf file that originates from a
couple of word files and a couple of existing pdf files.

I'm not sure that this (appending extra pdf's) is possible
through Word VBA. Does anybody has any idea about this?

thanks in advance,
Ward

Hi Ward,

In principle this is possible, in that you can manipulate the Acrobat object
model from Word VBA just as you can from VB. You will need to look up the
Acrobat programming documentation in order to work out what needs to be
done.
 
J

Jezebel

There is (was anyway) an Acrobat SDK available as a free download from
Adobe. It was enough to do what you ask -- that's exactly what I used it
for -- but not a lot more. The SDK came in a VB version and a C++ version;
sadly, the VB version looked decidely unfinished. A *lot* of functionality
is missing. In particular, when you merge Acrobat documents strange things
can happen to the bookmarks, and the SDK does not have the functionality to
fix them. But certainly enough to string the documents together.
 

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