Lately I am facing some problems converting java string containing unicode HTML (containing hindi language) to PDF using jodconverter java library How to convert docx/odt to pdf/html with Java? This question comes up all the time in any forum like stackoverflow. So I decided to write an article about this topic. This page provides Java code examples for verter. ntFormat. The examples are extracted from open source Java .

Author: Gulabar Goltihn
Country: Peru
Language: English (Spanish)
Genre: Life
Published (Last): 16 November 2007
Pages: 289
PDF File Size: 19.22 Mb
ePub File Size: 19.69 Mb
ISBN: 268-8-83431-686-8
Downloads: 23307
Price: Free* [*Free Regsitration Required]
Uploader: Kakus

Do you mean for arbitrary HTML?

Other Open Source Projects. I’m new to Open Office. The script is not mine so I can’t take any credits.

In order to achieve that you will need a script telling the MS Word to make the conversion and call that Script from Java using Runtime. From what I know you have two options: All useful hints are welcome!

Java Code Examples of ntFormat

Post as htkl guest Name. It adds a footer to each page with a logo and advertisement. Any experience with this approach? I posted this on Open Office forum too.

Similar Threads

Email Required, but never shown. I set it up, but it’s not working for all websites JKostikiadis 2, 2 11 I mean conversion for generic HTML.


But i don’t know weather it support from HTML to pdf.

You could turn all your docx documents to LibreOffice examlle then export them to PDF without compatibility issues using the LibreOffice software or your external java library You could use the Microsoft Office Word to do the conversion from docx to pdf. I have used jodconverter from doc to pdf and it gives very good results. It doesn’t support html extensions?

I want to convert, for example, http: But I believe that the JODConverter library makes the process significantly easier, so you may want to look into that first.

But you said you have a word file, and then asked if jodconverter support from html not word to pdf. Yes it does, as least the latest version 4.


You may take a look at documents4j if you need a library that uses Microsoft Office Word for better MSWord document conversion. From what I know you have two options:. At least that’s t way I know, and doing it. I’m looking after examples. Give it a try, it not only converts html but a lot more.

It’s the right thing to do. Here is the script I found out years ago and still use in some cases. I’d pass the link, and expect page as a pdf document. By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have exzmple our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.


java – Jodconverter : Can i use to convert HTML into PDF? – Stack Overflow

I know that this answer is not what you expect but I just want to point out a solution of your problem that i am aware of. Ahmed Bilal 28 5. Thank you for the reply, Ulf! Only Microsoft Office can fully support their format and thus use one of the above software to convert your docx files may be possible but in some cases or in all of them with unpleasant results.

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.