I'm having the Adobe Acrobat SDk 8.0 and I need to convert our Word Documentent and Excel Sheets into PDF format thru our VB6.0 program. I'm able to manage to open the PDF documents and printing. I don't know hoe to convert the documents thru VB program.
(Leonard_Rosenthol), Mar 26, 2009 2:44 AM
Thanks for you reply. I have managed to create the PDF by using 'Adobe PDF' printer. But whenever I used the conversion it opens the PDF Application even though I specified the Application Hide.
Could you please help me to stop the application pop-up, I want to use this as background and user shouldn't know the conversion is taken place.
Code Snip pet
Dim AcroApp As Object
Dim AcroAVDoc As Object
Dim AcroPDoc As Object
Dim oJS As Object
Dim nPages As Long
Set AcroApp = CreateObject("AcroExch.App")
Set AcroAVDoc = CreateObject("AcroExch.AVDoc")
Set AcroPDoc = CreateObject("AcroExch.PDDoc")
If AcroAVDoc.Open("c:\input.doc", "") = False Then
Set AcroPDoc = AcroAVDoc.GetPDDoc
If AcroPDoc.GetFileName = "" Then
Thanks for your reply. I got this idea from google search. I tried that one in my machine and able to create pdf. If there is a proper way to create pdf using Adobe Api, please help me.
I came to know that API is available for C/C++. Could you please help me to give the snippet of the C++ or VC++. So that i will try to create an dll and use it in VB.
Actually, Aandi - the AVConversion APIs that are available to plugins FULLY support the creation of "rich" PDFs with bookmarks, links, etc. in fact, the caller can choose which features they want and which they do not using the ASCab "settings".
Examples of the AVConversion APIs for plugins can be found in the Binder sample in the Acrobat SDK.
> The supported way would be to automate Word, Excel etc. to make
> them print to the Adobe PDF printer. Using the information in
> the Distiller API you can stop the prompt for PDF destination.
> Note that there is no supported way to give all of the features of
> the Create PDF button in Word (links, bookmarks etc.)
My problem is similar to the thread starter but I use WScript as my language. Is it for real there is no programatic way to simulate the "Create PDF" button? My current understanding is that is does a 3 step process:
1. Find the position of the hyperlinks and TOC in the document
2. Print the document through the Adobe PDF/Distiller printer driver.
3. Insert the TOC and hyperlinks extracted in step #1.
I have no problem achieving #2 but how do I do the other steps.
My task is to automated the compilation and PDF-generation of a few user manuals which seems like a very standard task at a SW company.
Are there other Adobe products for this (I am using Adobe 8.1 Standrd)?
>My problem is similar to the thread starter but I use WScript as my language. Is it for real there is no programatic way to simulate the "Create PDF" button? My current understanding is that is does a 3 step process
It does much more than that in steps 1 and 3, but you have the
essence. One way to achieve the additional PDF features is to add
PDFMark instructions between creating the PostScript and distilling
it. Word Basic/VBA can be used to analyse the contents of the Word
Am I correct in assuming that you represent Adobe? If so could you explain why the PDFMaker command in Word is not available through an API or as an example script which provide the same functionality in the API documentation. It appear to me that this would be a very simple way of getting started with Adobe PDF-generation.
the answer is simple - because Acrobat isn't designed to be a tool for this type of batch/automation of conversion of file formats. We have another product that is designed for that purpose - LiveCycle PDF Generator.
I'm not certain which Acrobat product I should use to approach my problem, which is similar to Fredri.
I have a server app which generates a highly automated Word doc on the user's laptop (through a browser). Because the Word doc is generated on the laptop, not the server, I need to employ a VBA-supported approach in Word to call an Acrobat object or service and only show the user the converted Acrobat document.
I have been reading this thread, and still not sure what I need to have to convert word to pdf file. I am using C#.Net web project to convert newly uploaded word document to pdf and save to the server. What API do I need to get that done? I managed to set a default printer and use Process to print a word document, but the thing is it always pops up the "save as" dialog. Is it possible to suppress that window and pass in the output file name?
> the thing is it always pops up the "save as" dialog.
See the Distiller API document, which includes information on how to
bypass the prompt for filename in the Adobe PDF driver.
Note that this is NOT for use on a server; however, that doesn't seem
to be the case here. If I understand correctly, each client will have
purchased a copy of Acrobat Professional or Acrobat Standard, and the
conversion will take place on each client, before being uploaded to
the server - correct?
>The conversion will take place on windows 2003 server.
Ok, then I can agree: Acrobat is out of the question. It has a single
user license. LiveCycle PDF Generator or Distiller Server are Adobe's
Distiller Server used to be around $5000 for a 100-client license. The
price is no longer published, however, and could have changed.
LiveCycle PDF Generator is a more capable product and you can expect a
The conversion will take place on windows 2003 server. Each client usually don't have the acrobat professional, but they will have the free standard pdf version. Each client uploads the word document to the server using my web site, and my web site needs to has the code to convert the word file to pdf, after that, the pdf will be saved at the server. Someone mention LiveCycle PDF Generator, is this the right approach?
My very first requirement is NOT TO USE THIRD PARTY libraries. And I want to convert from PDF to DOC and Vice versa. Could you please guide me how can I do it using either C#/C++. I searched the internet but all are using thirdy party library files to read PDF. Could any one please suggest me on this ASAP
Did you find a way to do the conversion. My requirement is just similar to yours. I'm using VB6 instead of .net
My current VB application creates 4-5 word documents. I want to convert them as pdf (or saveas PDF) and save it at the local disk for all the users who will use my VB exe (its a desktop application).
This can be done via OLE or by printing to the PDF printer. Either way requires the end user running your VB-created .exe to have a copy of Acrobat (not the free Reader, but a licensed copy of Acrobat) installed on their machine.
As for a script to perform a "Save As PDF" from Word, that would be a question for a VBA or Word automation forum, not the Acrobat SDK forum.