Converting .DOC, .XSL filo to PDF

Hi all,
currently I am looking for a Java API which would be able to convert DOC and XSL files to PDF file + adding bookmark information into both files also. I am not interested in solutions using hidden instances of some applications like Jacob (using MS Word instance) or OpenOffice SDK (using OpenOffice.org appl.) as it is the problem I am trying to avoid.
Thanks a lot for any advice.
Frank
P.S.: I am a newie in here so I hope I didn't "do" anything against rules... :)

You can not. the best you can do is use something like POI to give an approx. render of the page, and spit it out to PDF, or using a native word view, and script it in some way to print to a PDF.

Similar Messages

  • Itext unable to convert doc file properly to pdf

    Dear all,
    I am trying to convert .doc format files to .pdf format using iText .
    I am able to get a pdf files but there are a number of special characters.
    The table which are there in doc file are not there in pdf file ,they all getconverted to special format.
    Is there any solutions to it
    Many Thanks
    Saurabh Jain

    you are corect. i text cant do this

  • Convert doc and xls to pdf UNIX

    Hi all!
    I have a problem.
    I need a software that make a conversion of documents DOC and XLS to PDF, but specify for Unix (IBM AIX). I have a Dms server(UNIX) with douments doc an xls, and i want lead the document to the portal in PDF format.
    Thank you

    kelvin_nitk wrote:
    Thanks anyways, I feel POI is not the solution for my problem.If your requirement is that your PDF should look exactly like what happens when you load a document into Excel and then have Excel output it to a printer, then you are correct. Unfortunately nothing else is the solution for your problem, either, except trying to not have that requirement any more.
    Unless you can cobble something together where you actually run Excel and persuade it to output using a PDF printer driver like the one the previous poster described, or like PDFCreator which I use to make things into a PDF. But you're much more likely to get all those bits working together with something that can manipulate Windows internal things better than Java can.

  • Any JAVA API for converting .doc,.txt fles to PDF files

    is any special API fo this convertion?

    Check into POI for reading Word docs, and check into iText for nearly anything PDF.

  • Converting xml/xsl to pdf

    Hi,
    I am using apache's FOP 0.20.3, xerces 2.0.0.beta4 and xalan j.2.2.0 to convert xml/xsl file to pdf. The code is same as the one given in the org.apache.fop.apps.Driver class.
    <pre>
         Driver driver = new Driver();
         driver.setRenderer(Driver.RENDER_PDF);
         InputHandler inputHandler = new XSLTInputHandler(new File(xmlFile), new File(xslFile));
         try
              XMLReader parser = inputHandler.getParser();
              driver.setOutputStream(new FileOutputStream(outFile));
              driver.render(parser, inputHandler.getInputSource());
         catch (FOPException fope)
              fope.printStackTrace();
         catch (FileNotFoundException fnfe)
              fnfe.printStackTrace();
    </pre>
    The xml and xsl files I am using are glossary.xml and glossary.xsl files that come with FOP.
    Now, this code compiles successfully and while running gives the following exception:
    <pre>
    [ERROR]: Logger not set
    [INFO]: building formatting object tree
    [INFO]: [1]
    org.apache.fop.apps.FOPException: java.lang.NullPointerException
         at org.apache.fop.apps.Driver.render(Driver.java:486)
         at XmlToPdf2.<init>(XmlToPdf2.java:28)
         at XmlToPdf2.main(XmlToPdf2.java:42)
    java.lang.RuntimeException: java.lang.NullPointerException
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1132)
         at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
         at org.apache.fop.apps.Driver.render(Driver.java:481)
         at XmlToPdf2.<init>(XmlToPdf2.java:28)
         at XmlToPdf2.main(XmlToPdf2.java:42)
    java.lang.RuntimeException: java.lang.NullPointerException
         at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
         at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
         at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:629)
         at org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder.java:702)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(XMLDTDValidator.java:974)
         at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:445)
         at org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1123)
         at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3078)
         at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEntityManager.java:2766)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:995)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:332)
         at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:510)
         at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:557)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1096)
         at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
         at org.apache.fop.apps.Driver.render(Driver.java:481)
         at XmlToPdf2.<init>(XmlToPdf2.java:28)
         at XmlToPdf2.main(XmlToPdf2.java:42)
    java.lang.RuntimeException: java.lang.NullPointerException
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1132)
         at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
         at org.apache.fop.apps.Driver.render(Driver.java:481)
         at XmlToPdf2.<init>(XmlToPdf2.java:28)
         at XmlToPdf2.main(XmlToPdf2.java:42)
    java.lang.RuntimeException: java.lang.NullPointerException
         at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
         at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
         at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:629)
         at org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder.java:702)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(XMLDTDValidator.java:974)
         at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:445)
         at org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1123)
         at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3078)
         at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEntityManager.java:2766)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:995)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:332)
         at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:510)
         at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:557)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1096)
         at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
         at org.apache.fop.apps.Driver.render(Driver.java:481)
         at XmlToPdf2.<init>(XmlToPdf2.java:28)
         at XmlToPdf2.main(XmlToPdf2.java:42)
    </pre>
    Can anybody help?

    Hi,
    I also facing same problem,did you get the solution.
    I am using apache's FOP 0.20.3, xerces-1.2.3 and xalan-2.0.0 and jdk1.3 with weblogic5.1 to convert xml/xsl file to pdf. The code is same as the one given in the org.apache.fop.apps.Driver class.
    please give me sample code.
    thanks,
    [email protected]

  • Convert doc file generated by OpenOffice to PDF X1a

    Hi, I have a .doc file originally produced by Open Office Writer and then converted to a Word format. I would now like to use Acrobat 10 to convert this .doc file to a PDF X format, but I'm not having any luck. I've tried the following two approaches:
    1. I'm able to use Open Office Writer to convert it to a normal PDF format. I then tried to take that PDF file and convert it to a PDF X file using Acrobat Pro with Preflight, but a bunch of errors appeared.
    2. If I start in Acrobat Pro, select Create PDF from file, select my documents, none of the .doc files produced in Open Office show up on the list--as if Acrobat Pro won't read any .doc files produced by Open Office.
    Hope someone can help. I'm new to Acrobat Pro.
    Thanks in advance.

    Use Ctrl-P or Use FILE>Print when you have OO Writer open with your document. You should get something like below.
    Just select the Adobe PDF printer, check properties if you like, then print. In this case, OO shows a preview of the pages in the document as they should look. I created a simple one as an example. I did a preflight after using the PDF-X1A settings and did get errors noted. One of them had to do with tagging that does not happen when you use the print. You might try to print normally and then use preflight to convert. I tried also and still got errors. At least I may have given you some things to try.

  • Try to convert doc to PDF, Unable to find "Adobe PDF resourse files, Ask help

    Hi guys,
    I am tryng to convert word doc file to PDF by acrobat v9.0 pro, I got the message as "Unable to find "Adobe PDF resourse files", and "Acorbat could not open 'filename' because it is either not a supported file type or because the file has been damaged ...".  I did several times to run the installer to repair it,  and remove and re-installed several times with different folders  for the Adobe acrobat. I also did check the setting by "Preferences" under the item "Edit'. But nothing changed. I use it for generating and merging 1 or more doc files into a PDF file, so the micorsoft word which can make PDF file or use PDF printer is not useful for my object. Any ideas and helps? I really appreaciate anyone can give me help, Thanks a lot.
    John

    You don't need Acrobat for this at all.
    If you select "Print..." there is a "PDF..." button in the lower left corner of the dialog. Click the button and select "Save as PDF..." or you can do "Open in Preview..." and save from there.
    OS X has had the ability to generate PDFs since the 10.0 days. The whole graphics infrastructure is based on PDFs. You have no need whatsoever for Acrobat on the machine to do this.

  • Acrobat 9 Converting DOC to PDF Image Issues

    Just a little background:
    I am running Windows XP Pro, Microsoft Office 2007 and Acrobat 9 Pro.
    I have several .doc files that contain text and images. When converting the .doc file into a PDF sometimes the images become distorted, moved around (the image itself inside of the pixels not moved around the .doc)or possibly even big white stripes going through it.
    The text formatting is ok and everything seems the same as if I looked in the .doc file. I have noticed that if the file contains one or two pictures they do not get distorted but if it contains more then that they sometimes get distorted and sometimes now.
    Any clues to what could be causing the issue?

    If you are missing the PDF option in MS Office 2007, you may
    download a plug-in from MS to create a PDF without Acrobat, go
    to the MS article search page and do a search, or go to the MS
    Office update page and search for the file to download
    Search http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US
    Office http://office.microsoft.com/en-us/downloads/default.aspx
    General Acrobat Problem Steps
    If you are having problems creating a PDF, there are two steps you should do FIRST
    Go to the appropriate vendor web site and apply all updates to the program you are using (several recent messages have concerned problems with MS Office conversion, with the response that different versions of Office have different BUGS that must be fixed by a download from Microsoft - and MS Office products are not the only ones which may, from time to time, need to be updated to work properly)
    Apply all updates IN NUMBER ORDER
    Acrobat Update http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows

  • Convert doc to PDF and make it available for workspace

    Hi,
    is there a way, how to convert a doc file to PDF file and make it available for the workspace (accept - deny scenario)?
    Lets say, that I have a contract that has to be approved by my manager. I convert the doc to PDF file and send it to his to-do queue. He than decides if it is a good agreement or bad one.
    I see couple of tricks in this. First, the converted file needs to have process fields included, so it has to be a form.
    Converted file is a flat PDF. I tried to use DDX to merge flat PDF and form with process fields, however that throwed and error.
    Workaround could be creating an envelope saying, hey, look in the attachments section, there is something you need to review.
    I can create an attachment in the form with DDX code, however only in the DDX UI interface, for some reason, it wont work in the process in LC.
    Also, I have difficulties with routes after user hits the accept, deny buttons in workspace, nothing happens :-(
    Could you please give me some advices, what kind of variables I need, what types they should be and how the process should looklike? I want to invoke it over the WSDL so at least one document has to be passed over it. The envelope can be in the resources section in LC (makes sense, but I do not know how to address it in the DDX and afterwards)
    Thanks in advance,
    H.

    Hi Jasmin,
    I can add the converted document to PDF as a attachment to the XDP form in the workspace.
    I am strugling now with that envelope (the XDP), cant render it to PDF and than workspace enable it. I will have a look around the web because it will be there. One question is can I control permitions on the attachment? I want just read only permitions.
    Thanks Jasmin for your continuous help.
    J

  • SDK Convert .doc to .pdf

    I have a need to convert a word document to PDF on my web site. I have a full version of Acrobat 9.0 Pro, but can not find in the documentation away to do it. I'm using VB.net VS 2008. If someone could point me in the right direction I would really appreciate it!!

    Installation of Adobe Acrobat on a server (web site) is a violation of the EULA that you agreed to during the installation.  Please remove/uninstall it immediately.
    If you have need of .doc->.pdf conversion on a server, Adobe offers a product called LiveCycle PDF Generator for this purpose.

  • Error in converting *.doc to *.pdf

    Running winXP home sp2, adobe pro 7.1.0
    This problem has started suddenly.
    When converting *.doc to *.pdf a window titled AcroDist.exe-Application Error comes up:
    "0x00441ae2" referenced memory at "0x0218ebbc". The memory could not be "read".
    Acrobat stops and can only be stopped from the Task Manager. Try to print something in *.pdf -- same thing happens.
    Anyone, any suggestions? I would be thankful.
    joeZy

    Gloria Mc,
    This occurs with all .doc, Excel, .rtf, .txt (even when trying to print .pdf from a txt software like notepad. It does not occur with picture format files like .jpg or .tiff. I also can combine .pdf files.
    As far as JR's question, if I generate a .prn file and drop it in AcroDist (Distiller), it tries to open Distiller and the same error message comes up.
    All other functions of AA7 seem to work, only when trying to convert document files to .pdf is there a problem.
    If I try to bring up Distiller by itself (no file), the same error occurs.
    I'm still willing to try any suggestions. Thanks for your interest.
    joeZy

  • Poor quality when "shortcut" converting DOC - PDF Windows 7

    Hi,
    The products involved arr Adobe acrobat X Standard, Word 2010 and Windows 7.
    We have a problem with converting DOC to PDF. If we use the right click shortcut on a DOC file the quality gets all messed up but if we open it in Word and then choose print with Adobe PDF printer the quality gets the expected Distiller printer option (High quality).
    //Kim

    I had seen this conflicting settings, but only now dug deeper to verify; this make no sense, from a development or usage situation.
    From the PDF Printer properties,
    The General tab has a Printing Perferences sub menu - I typically set my preference from that route.
    The Advanced tab has a Printing Defaults sub menu with a dialog identicle to the Preferences dialog, but the Default setting may be other than that used in the Printing Preferences...
    Change your setting in Advanced > Printing Defaults

  • Convert DOC for PDF in ABAP

    Hi,
    How can I convert a file .doc for PDF in ABAP? Exist some Function?
    Thanks,
    Felipe Goes

    Welcome to SDN
    There is no standard tool avaialbe within ABAP to conver <b>.doc</b> file to PDF.
    if you know any activex based external tool to do the same you can incorporate the same in ABAP
    Regards
    Raja

  • Is it possible to convert .doc to pdf  ?

    Hi..
    I am very new to Livecycle Workflow...! I just want to know whether it is possible to convert .doc to pdf  ?
    Just by googling i came to know that CreatePDF2 Service will do this Conversion ! But it throws me an Exception like "Conversion Exception :" Cannot connect to Adobe Service "...!
    Can u guys pls help me out to slove the problem ?
    Thanks & Regards
    Karthik.

    you don't know the format of a word doc? well, that's good for you because it's a nightmare.
    - check POI (http://jakarta.apache.org/poi/index.html) to see if you can load-up the .doc then generate the .pdf with iText
    - personally i use the Open Office Bean to open the .doc, i save it in .sxw (OO format which is a jar of different XML files), then i use XSLT to transform content.xml in .fo then use FOP to build the PDF. sounds crazy but works fine (only on a machine with graphic support - not via Telnet, etc...)

  • Adobe Acrobat 7.0 no longer converts docs to pdf

    How can I get filemaker activated again? I keep receiving an error message and update but it doesn't take. Am I just sol becasue I'm now using Office 2007? Thanks!

    We're also having the same problem -- That Acrobat 7, since our recent "Word 2007/Excel 2007/PowerPoint 2007" upgrade, will no longer convert Word or Excel files (whether .doc or .docx) to PDF. (However, Acrobat 7 is still able to convert Publisher and image files to PDF.)
    We've had success will using Word 2007 to create the PDFs. We select from Word's upper left icon, "Save As" and then "PDF or XPS." On the next pop-up window, you can make further selections, before publishing, even bookmarks, if applicable.
    So it seems that Word 2007 is working OK for our PDF conversions for now...

Maybe you are looking for

  • Assign a dynamic value to a field in HTTP receiver header without IR part

    hi experts,     I am doing a scenario in which i am to add a header  field in http receiver, whose value will vary for each transaction. and the value will be same as sender file name. But this all I am to do without doing Repository part.(i.e. No me

  • Apple TV - HDCP error message.

    Cannot watch rental movies, just bought movies on new Apple TV.  Keeps coming up with something about HDCP?  Have tried all sorts of things to get it working, but can't seem to find a solution.  Any ideas?

  • Iphone 4S number Unknown + Imessage sending via email adress

    Here's my problem... My Iphone 4S doesnt show my number, it says UNKNOWN, and when I want to send an Imessage, it send it via my email adress... What should I do to fix this? Can somebody help me please? K.

  • Keyboard getting stuck!

    Alright, my phones stock keyboard has started to act up. As a temporary fix I have switched to the swype keyboard but I hate that keyboard with a passion! What happens is, whether I am in a text, on the internet, or anything that deals with using the

  • Incorrect version number and installation date of Firefox after upgrading

    My home desktop PC equipped with Mozilla Firefox v4.0 has recently been upgraded to v4.0.1 through an automatic updating. However, as noted from Windows 7 "Programs and Features", the latest version number and its installation date are not correctly