Skip navigation
Currently Being Moderated

How to convert word Doc, Excel into PDF using Adobe API in VB6.0

Oct 24, 2007 8:11 PM

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.
 
Replies 1 2 Previous Next
  • Currently Being Moderated
    Oct 26, 2007 11:46 AM   in reply to (VijayakumarVZThirumal)
    Acrobat's APIs for document conversion are only for plugins (C/c++) at this time.

    Leonard
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 26, 2007 11:27 PM   in reply to (VijayakumarVZThirumal)
    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
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2007 12:39 AM   in reply to (VijayakumarVZThirumal)
    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
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2007 1:22 AM   in reply to (VijayakumarVZThirumal)
    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
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2007 2:41 AM   in reply to (VijayakumarVZThirumal)
    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.
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2007 6:57 AM   in reply to (VijayakumarVZThirumal)
    They are just part of the SDK. I assumed you already had it. Try:

    http://www.adobe.com/devnet/acrobat/

    Aandi Inston
     
    |
    Mark as:
  • Currently Being Moderated
    Dec 28, 2007 4:03 AM   in reply to (VijayakumarVZThirumal)
    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.
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 15, 2008 11:45 PM   in reply to (VijayakumarVZThirumal)
    > 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
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2008 12:37 PM   in reply to (VijayakumarVZThirumal)
    > 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)?
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2008 1:13 PM   in reply to (Fredri_Claesson)
    >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
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2008 2:02 PM   in reply to (VijayakumarVZThirumal)
    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.
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2008 7:39 PM   in reply to (VijayakumarVZThirumal)
    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
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2008 12:44 PM   in reply to (VijayakumarVZThirumal)
    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?
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2008 1:25 PM   in reply to (VijayakumarVZThirumal)
    I would use look at the "silent printing" APIs for Acrobat Distiller to enable the printing from Word...

    Leonard
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2008 4:24 PM   in reply to (VijayakumarVZThirumal)
    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?
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2008 1:41 AM   in reply to (VijayakumarVZThirumal)
    > 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.
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2008 3:00 AM   in reply to (rick_dai)
    > 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
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 19, 2008 9:41 AM   in reply to (VijayakumarVZThirumal)
    -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.
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 19, 2008 9:47 AM   in reply to (rick_dai)
    >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
    server products.

    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
    higher price.

    Aandi Inston
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 19, 2008 9:49 AM   in reply to (VijayakumarVZThirumal)
    Aandi Inston, "How to convert word Doc, Excel into PDF using Adobe API in VB6.0" #22, 16 Feb 2008 3:00 am

    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?
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 1, 2008 4:08 AM   in reply to (VijayakumarVZThirumal)
    Can anyone tell me how to convert word document to pdf file from java
    is there any api
    kindly requested to revert back soon

    if any vb script is there u pls specify that too
    i came across with one VB SCRIPT in http://www.suodenjoki.dk/us/productions/articles/word2pdf.htm

    but seems to have office-add in and only word2007 supports
    so pls tell me is there anyother api or vb script
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 1, 2008 8:21 AM   in reply to (charlesvc)
    >Can anyone tell me how to convert word document to pdf file from java

    Do you need this to happen:

    * On a server?
    * For a group of users who have each purchased Acrobat Professional?
    * Something else?


    Aandi Inston
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 2, 2008 9:48 PM   in reply to (VijayakumarVZThirumal)
    Hi Andi,

    As you suggested, my requirement is for a web application on client side, while attaching document for faxing, needs to convert the word document to pdf as the fax software only accepts pdf format.

    Regards
    Charles v c
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 4, 2008 9:02 AM   in reply to (charlesvc)
    So each client user of this product will each have a licensed copy of
    Acrobat Professional?

    Aandi Inston
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 4, 2008 8:51 PM   in reply to (VijayakumarVZThirumal)
    yes
    can u tell me how to do
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2008 3:42 AM   in reply to (VijayakumarVZThirumal)
    There are no supported APIs for document conversion using Acrobat and VB alone. The only supported APIs for Acrobat that enable document conversion are via plugins, which are written in C/C++.

    Leonard
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2008 5:00 AM   in reply to (VijayakumarVZThirumal)
    Thank you very much Leonard for your kind reply

    Actually you know my requirement is on java platform to convert word document completely and perfectly to pdf file.

    I researched that much on apache poi and itext
    then moved onto poi and fos by converting word document to xls-fo and then to pdf
    but it is not perfect
    because those projects still at scratchpad.

    So can you do one favor for me how can i write that plugin in c/c++ and then call from java
    or can i call that plugin from java
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2008 5:10 AM   in reply to (charlesvc)
    It sounds as if you are describing server solutions (Apache etc.) and
    using Java, rather than something for use on a client.

    In any case, you cannot "call" plug-ins. They are a part of Acrobat.

    Aandi Inston
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2008 5:19 AM   in reply to (VijayakumarVZThirumal)
    Thank you Andi
    i thought you couldn't answer me because u were asking me about server and client. Now come up with my prob solution.

    Thank you for that
    ok bye
    now i will wait till the apache poi reads the entire word
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 31, 2008 3:17 AM   in reply to (VijayakumarVZThirumal)
    Dear all,

    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

    Thanks a lot
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 31, 2008 3:20 AM   in reply to (YGD)
    >My very first requirement is NOT TO USE THIRD PARTY libraries.

    Does that mean that using Adobe libraries is acceptable?

    If so - is this for
    * a server?
    * a single user who owns Acrobat Professional 8.0?
    * something else?


    Aandi Inston
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 1, 2008 2:43 PM   in reply to (VijayakumarVZThirumal)
    Hi all,

    Are there any samples posted on ADOBE site to open a (virtual earth map) image in a PDF file using Acrobat 8.0 and help me print it (Windows forms).

    Azam
     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2008 12:01 PM   in reply to (VijayakumarVZThirumal)
    Hi Rick

    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).

    Do you have any inputs as how to achieve it?

    Thanks.
     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2008 12:52 PM   in reply to (VijayakumarVZThirumal)
    vidhoo21:

    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.
     
    |
    Mark as:
1 2 Previous Next
Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)