<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Looking for java code to convert word files to pdf in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959206#M358336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the FAQ:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Can I convert WORD doc-files or RTF to PDF using iText?&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt; No, iText is only able to generate RTF.&lt;/P&gt;&lt;P&gt;&amp;gt; It doesn't do RTF or Word-doc parsing. Try Apache POI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least, it would be a very hard task to support each Word feature manually into PDF creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that there is a comfortable way except really "printing" the PDF (of course, this should be done automatically, so this is the question if StarOffice or a third tool provide the API for this functionality).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2005 15:25:29 GMT</pubDate>
    <dc:creator>detlev_beutner</dc:creator>
    <dc:date>2005-08-01T15:25:29Z</dc:date>
    <item>
      <title>Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaq-p/959203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to convert word files to pdf using Java. I am familiar with the jakarta POI project but unfortunally it doesn't contain this option. Does anyone have a sample code to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 14:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaq-p/959203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T14:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959204#M358334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a hard task. The problem is not only reading Word (POI's word API is somewhere between alpha and beta, it's not as good as the XLS-API, and at the moment, not under further development).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some good source to look out for libraries for reading/writing different file formats is &lt;A href="http://schmidt.devlib.org/java/document-libraries.html" target="test_blank"&gt;http://schmidt.devlib.org/java/document-libraries.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, when I had to convert Word into pure txt, I used StarOffice and it's Java API (not very comfortable, but possible). This is a way I would think about (you'd need StarOffice installed on the server). Maybe extracting to RTF before would bring you further, don't know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As said, a hard task...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 15:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959204#M358334</guid>
      <dc:creator>detlev_beutner</dc:creator>
      <dc:date>2005-08-01T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959205#M358335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Detlev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found good library to do that, it is called iText: &lt;A href="http://www.lowagie.com/iText/docs.html" target="test_blank"&gt;http://www.lowagie.com/iText/docs.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I will investigate it and let you know... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 15:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959205#M358335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T15:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959206#M358336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the FAQ:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Can I convert WORD doc-files or RTF to PDF using iText?&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt; No, iText is only able to generate RTF.&lt;/P&gt;&lt;P&gt;&amp;gt; It doesn't do RTF or Word-doc parsing. Try Apache POI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least, it would be a very hard task to support each Word feature manually into PDF creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that there is a comfortable way except really "printing" the PDF (of course, this should be done automatically, so this is the question if StarOffice or a third tool provide the API for this functionality).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 15:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959206#M358336</guid>
      <dc:creator>detlev_beutner</dc:creator>
      <dc:date>2005-08-01T15:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959207#M358337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I just saw it 2.&lt;/P&gt;&lt;P&gt;Well, I'll try looking for a free web service which does that and than I'll simply pass it the word file and get the pdf. I found such web services but unfortunally not free ones...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 16:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959207#M358337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T16:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959208#M358338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This solution may not be appropriate but if you have either Adobe or one of several PDF generating libraries installed then they work as a printer driver.  You can start word and via its automation interface have it print the document using the PDF printer driver.  This will give you a PDF file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 23:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959208#M358338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T23:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959209#M358339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please elaborate this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 06:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959209#M358339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T06:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959210#M358340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy, hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is somewhat the mechanism I thought of using StarOffice (using StarOffice and not Word, for having the Java API at hand, even if - already said - the API for accessing such internals is all but intuitive).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the aim would be to (programatically) "press" the "print" button / PDF Generator button (or, that's the StarOffice-thought, to simulate all this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also "printing" as PostScript into a certain subdir would do it if Adobe Acrobat is fully installed (and watching this directory); then Acrobat will convert the PS into PDF on the fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 13:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959210#M358340</guid>
      <dc:creator>detlev_beutner</dc:creator>
      <dc:date>2005-08-02T13:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959211#M358341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can explore the following options:&lt;/P&gt;&lt;P&gt;1). Use an opensource java-com inter-op tool like jawin,jacob to read and use various features of MS Word. I have used Jawin to manipulate word files. It works for me. It gave complete access to all MS Word features. For conversion into PDF, you will have to install PDF conversion plugin in your word. And, you can access it programatically. It's initally, a little messy, but as soon as you get a hang of it, its very simple and exiting.&lt;/P&gt;&lt;P&gt;You can find jawin at:http://jawinproject.sourceforge.net/ &lt;/P&gt;&lt;P&gt;It's documentation has an example of MS PPT creation from Java. You can use it to create your implementation for MS Word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2). If you are using MS Office 2003+ editions, you can give MS-WML (a microsoft xml format of Word documents) a shot. You can extract XML from MS Word, and then you'll need to figure out how can a PDF can be created form this XML file. You can check out the microsoft site for further details. You can also check out the following like abt WML:http://www.javaworld.com/javaworld/jw-07-2004/jw-0712-officeml.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also MS Link:http://msdn.microsoft.com/office/understanding/word/codesamples/default.aspx?pull=/library/en-us/odc_wd2003_ta/html/odc_wdalpine.asp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2005 04:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959211#M358341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-03T04:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959212#M358342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a java component that will allow me to upload a .doc and convert it to .txt on the fly. In other words, the user clicks on my upload button, selects a .doc file, and sends it. This wonder component converts the file to .txt and stores it in my designated place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have the upload working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any such marvel of a component out there that will do the trick? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2005 09:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959212#M358342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-19T09:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for java code to convert word files to pdf</title>
      <link>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959213#M358343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first, welcome on SDN!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second: For a new issue please open a new thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third: This for example is easy by using StarOffice as mentioned before (for this I used it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 11:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/looking-for-java-code-to-convert-word-files-to-pdf/qaa-p/959213#M358343</guid>
      <dc:creator>detlev_beutner</dc:creator>
      <dc:date>2005-08-23T11:02:09Z</dc:date>
    </item>
  </channel>
</rss>

