Questions tagged [documents4j]

documents4j is a library for converting documents into a different format using a pure Java API. Under the hood, it runs third-party applications to which it delegates the conversion. Currently, it ships with adapters for MS Word and MS Excel. The conversion can be executed locally or remotely via a REST service.

documents4j is a Java library for converting documents into another document format. This is achieved by delegating the conversion to any native application which understands the conversion of the given file into the desired target format. documents4j comes with adaptations for MS Word and MS Excel for Windows what allows for example for the conversion of a docx file into a pdf file without the usual distortions in the resulting document which are often observed for conversions that were conducted using non-Microsoft products.

58 questions
1
vote
0 answers

Documents4j - RemoteConverter Invalid Input

We have tried to use Documents4j for converting docx to pdf. I have tried it with LocalConverter, it runs perfectly as expected. But when i tried to run with RemoteConverter, facing errors "com.documents4j.throwables.ConversionInputException: The…
Divya
  • 61
  • 1
  • 4
1
vote
2 answers

How can use documents4j on linux?

I am working on spring mvc web project on windows and my server is installed on linux. I am using documents4j for docx file convert to pdf file and it works fine on windows but when i put the code to the server it doesn't work because my server is…
Ozdenur
  • 15
  • 7
1
vote
1 answer

How to properly convert from DOCM to PDF with open-source java libraries?

I started looking into how to convert .docm files into PDF files. As far as I looked there are only open-source libraries for converting .docx to pdf. My solution was to look for a way to convert .docm to .docx, while keeping every information. For…
1
vote
1 answer

documents4j conveter to pdf doesn't work without Microsoft word?

i want to convert docx file to pdf with documents4j but i dont want to use MS word is there any alternative solution ? i used Apache poi but it didn't work correctly in Persian language public static void main(String[] args) throws IOException,…
mehran arbabian
  • 138
  • 1
  • 10
1
vote
1 answer

Documents4j remoteServer conversion server setup

I'm using Documents4j to convert an rtf file to pdf file. I don't have MS word or anything on my computer, so it seems that I will need to use a remote converter. Information here: http://documents4j.com/#/. My project is setup with spring-boot. I…
1
vote
0 answers

MicrosoftWordBridge could not be created - Documents4j

I have this problem. class com.documents4j.conversion.msoffice.MicrosoftWordBridge could not be created by a (File, long, TimeUnit) constructor at com.documents4j.conversion.ExternalConverterDiscovery.make(ExternalConverterDiscovery.java:32) at…
1
vote
1 answer

Document4j support for other ms word like applications

I want to convert ms office documents to pdf. I thought of using document4j for that. But I could see that we need msoffice setup to make it work. Can we somehow use open-office or other libre-office for doing the same work. MSOffice cost is much…
Pooja Dhannawat
  • 101
  • 1
  • 1
  • 4
1
vote
2 answers

How to stop generating .vbs file when .doc is converted to ..pdf using document4j

I have written this code and when I run the program it runs successfully, but it also print .vbs file along with this and I don't want that file as it will load my file system. File fs=new File("D:/parser/samrudha-kelkar.docx"); File…
Vipul Jain
  • 1,395
  • 1
  • 14
  • 28
1
vote
1 answer

Documents4j IllegalStateException

im trying to use documents4j (https://bintray.com/raphw/maven/documents4j) in order to convert a docx file to pdf with this code: Thank you very much in advance, i have no idea of making it works package documents4j; import…
AMB
  • 995
  • 1
  • 12
  • 26
1
vote
0 answers

documents4j - c.d.job.FileSourceFromInputStreamSource error

We have been using documents4j for over 2 months now. We today have started hitting this error today: WARN [pool-2-thread-2] c.d.job.FileSourceFromInputStrea mSource - Could not delete temporary file C:\Users\Admin\AppData\Local\Temp\2\14 …
Hayden
  • 11
  • 1
1
vote
1 answer

How to convert only desired docx page to pdf using documents4j

I have been working with documents4j library to convertdocx to pdf. But I want to convert only the first page of docx to pdf and store it. Where and how should I pass the arguments in order to convert only the first page?
saibabu96
  • 11
  • 2
1
vote
1 answer

Documents4J: Kerning in Word to PDF conversion

So I have put together an implementation of Documents4J using it's standalone executable server jar on one dedicated system with MS Word, and I call it with a web service using the client jars that they also provide. It seems to be working as…
tofertek
  • 11
  • 2
1
vote
1 answer

Custom HttpClient for RemoteConverter of Documents4j

I am using a RemoteConverter from a jBoss web application to a standalone server built as the default server-standalone included into documents4j project. Inside jboss I've got an old version of required libraries httpclient-4.0.1.jar and related…
D. Pesc.
  • 196
  • 15
1
vote
1 answer

Convert Excel to PDF issue with documents4j

I want to use documents4j to convert Excel files to PDF but there are two issues: I must open an Excel file when convert. When I convert Word to PDF, I didn't need open a doc/docx file. The PDFs are not containing a chart imagewhich is contained…
Yang
  • 19
  • 3
1
vote
1 answer

How to schedule documents4j server standalone as windows service using procrun?

I have been trying to schedule the documents4j as windows service using procrun for RTF to PDF conversion but it keeps throwing the following error: com.documents4j.throwables.ConversionInputException: The sent input is invalid at…
WiseGeek
  • 421
  • 3
  • 6