1
How to convert word Doc, Excel into PDF using Adobe API in VB6.0
Community Beginner
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/td-p/1174721
Oct 24, 2007
Oct 24, 2007
Copy link to clipboard
Copied
Dear All,
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.
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.
TOPICS
Acrobat SDK and JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174722#M79390
Oct 26, 2007
Oct 26, 2007
Copy link to clipboard
Copied
Acrobat's APIs for document conversion are only for plugins (C/c++) at this time.
Leonard
Leonard
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_VijayakumarVZThirumal_
AUTHOR
Community Beginner
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174723#M79391
Oct 26, 2007
Oct 26, 2007
Copy link to clipboard
Copied
Dear Leonard,
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")
AcroApp.Hide
If AcroAVDoc.Open("c:\input.doc", "") = False Then
Exit Function
End If
Set AcroPDoc = AcroAVDoc.GetPDDoc
If AcroPDoc.GetFileName = "" Then
Exit Function
End If
AcroPDoc.Save 1, "c:\input.pdf"
AcroPDoc.Close
AcroAVDoc.Close True
AcroApp.CloseAllDocs
AcroApp.Exit
Set AcroPDoc = Nothing
Set AcroAVDoc = Nothing
Set AcroApp = Nothing
/***************************************************************/
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")
AcroApp.Hide
If AcroAVDoc.Open("c:\input.doc", "") = False Then
Exit Function
End If
Set AcroPDoc = AcroAVDoc.GetPDDoc
If AcroPDoc.GetFileName = "" Then
Exit Function
End If
AcroPDoc.Save 1, "c:\input.pdf"
AcroPDoc.Close
AcroAVDoc.Close True
AcroApp.CloseAllDocs
AcroApp.Exit
Set AcroPDoc = Nothing
Set AcroAVDoc = Nothing
Set AcroApp = Nothing
/***************************************************************/
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174724#M79392
Oct 26, 2007
Oct 26, 2007
Copy link to clipboard
Copied
AVDoc.Open is documented and supported only as a method for opening
PDF files. It is neither documented nor supported as a conversion
tool, it works by accident and could fail or be withdrawn.
Aandi Inston
PDF files. It is neither documented nor supported as a conversion
tool, it works by accident and could fail or be withdrawn.
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_VijayakumarVZThirumal_
AUTHOR
Community Beginner
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174725#M79393
Oct 28, 2007
Oct 28, 2007
Copy link to clipboard
Copied
Hi Aandi,
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.
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174726#M79394
Oct 29, 2007
Oct 29, 2007
Copy link to clipboard
Copied
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.)
Aandi Inston
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.)
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_VijayakumarVZThirumal_
AUTHOR
Community Beginner
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174727#M79396
Oct 29, 2007
Oct 29, 2007
Copy link to clipboard
Copied
Anyone Please help me to provide the snippet of the C++ or VC++ to convert word doc into PDF. No need for links & bookmarks etc. My objective is to convert the document thats it.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174728#M79398
Oct 29, 2007
Oct 29, 2007
Copy link to clipboard
Copied
You need to use two different APIs. The Word (or Excel) API to open a
file, choose a printer, and print. The Distiller API (very simple
registry setting) to choose a destination filename.
If you need any help understanding the Acrobat SDK documentation just
let us know which part is difficult. I do NOT post sample code, I
want people to learn, not copy. Sorry if this sounds harsh.
Aandi Inston
file, choose a printer, and print. The Distiller API (very simple
registry setting) to choose a destination filename.
If you need any help understanding the Acrobat SDK documentation just
let us know which part is difficult. I do NOT post sample code, I
want people to learn, not copy. Sorry if this sounds harsh.
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_VijayakumarVZThirumal_
AUTHOR
Community Beginner
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174729#M79400
Oct 29, 2007
Oct 29, 2007
Copy link to clipboard
Copied
Hi Aandi Inston,
Thanks for your quick reply. Do you have link for the API refernce documents. I tried to get those but can't.
Thanks for your quick reply. Do you have link for the API refernce documents. I tried to get those but can't.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174731#M79404
Oct 29, 2007
Oct 29, 2007
Copy link to clipboard
Copied
They are just part of the SDK. I assumed you already had it. Try:
http://www.adobe.com/devnet/acrobat/
Aandi Inston
http://www.adobe.com/devnet/acrobat/
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174730#M79402
Oct 29, 2007
Oct 29, 2007
Copy link to clipboard
Copied
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.
Examples of the AVConversion APIs for plugins can be found in the Binder sample in the Acrobat SDK.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174732#M79406
Dec 28, 2007
Dec 28, 2007
Copy link to clipboard
Copied
Hi Vijayakumari !
Thank for your code. I am able to convert word documents into pdf documents.I am not getting any pop-pu options during conversion.
U have to set the following properties in Adobe PDF Setting Printer:
1.Right click the Adobe PDF Printer.Select Properties menu
2.Select Advanced tap in that window.
3.Select printing Defaults command in Advanced Tap.
Thank for your code. I am able to convert word documents into pdf documents.I am not getting any pop-pu options during conversion.
U have to set the following properties in Adobe PDF Setting Printer:
1.Right click the Adobe PDF Printer.Select Properties menu
2.Select Advanced tap in that window.
3.Select printing Defaults command in Advanced Tap.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_VijayakumarVZThirumal_
AUTHOR
Community Beginner
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174733#M79408
Jan 15, 2008
Jan 15, 2008
Copy link to clipboard
Copied
Dear All,
Still i'm working on that. Now i'm trying to use the distiller for that. Could anyone helpme how to use distiller thru APIs. Any doc would be helpful.
Still i'm working on that. Now i'm trying to use the distiller for that. Could anyone helpme how to use distiller thru APIs. Any doc would be helpful.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174734#M79410
Jan 15, 2008
Jan 15, 2008
Copy link to clipboard
Copied
> Any doc would be helpful.
The Distilller API document is part of the Acrobat SDK. Is there any
information missing that you need?
Aandi Inston
The Distilller API document is part of the Acrobat SDK. Is there any
information missing that you need?
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174735#M79412
Jan 23, 2008
Jan 23, 2008
Copy link to clipboard
Copied
> 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)?
> 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)?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174736#M79414
Jan 23, 2008
Jan 23, 2008
Copy link to clipboard
Copied
>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
document.
Aandi Inston
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
document.
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174737#M79416
Jan 23, 2008
Jan 23, 2008
Copy link to clipboard
Copied
Hello Aandi,
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.
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174738#M79419
Jan 23, 2008
Jan 23, 2008
Copy link to clipboard
Copied
Aandi doesn't represent Adobe, but I do.
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.
Leonard
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.
Leonard
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174739#M79421
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
Leonard,
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.
What is the appropriate acrobat technology?
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.
What is the appropriate acrobat technology?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174740#M79424
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
I would use look at the "silent printing" APIs for Acrobat Distiller to enable the printing from Word...
Leonard
Leonard
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174741#M79427
Feb 15, 2008
Feb 15, 2008
Copy link to clipboard
Copied
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?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174743#M79431
Feb 16, 2008
Feb 16, 2008
Copy link to clipboard
Copied
> 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?
Aandi Inston
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?
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174742#M79429
Feb 16, 2008
Feb 16, 2008
Copy link to clipboard
Copied
> I am using C#.Net web project to convert newly uploaded word document to pdf and save to the server.
You can use the product LiveCycle PDF Generator.
You can use the product LiveCycle PDF Generator.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174744#M79434
Feb 19, 2008
Feb 19, 2008
Copy link to clipboard
Copied
-You can use the product LiveCycle PDF Generator
Do you happen to know how much that's going to cost? The web site doesn't show the price.
Do you happen to know how much that's going to cost? The web site doesn't show the price.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/acrobat-sdk-discussions/how-to-convert-word-doc-excel-into-pdf-using-adobe-api-in-vb6-0/m-p/1174745#M79436
Feb 19, 2008
Feb 19, 2008
Copy link to clipboard
Copied
Aandi Inston, "How to convert word Doc, Excel into PDF using Adobe API in VB6.0" #22, 16 Feb 2008 3:...
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?
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?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

