How to change pdfbox configuration to generate XML preview by Libreoffice

cancel
Showing results for 
Search instead for 
Did you mean: 
miroslav
Active Member

How to change pdfbox configuration to generate XML preview by Libreoffice

Hello,

I have a lot of XML document with unsupported characters (according pdfbox library) and I would like to generate preview for them. By default, generation is provided by the pdfbox library, which returns following errors:

java.lang.IllegalArgumentException: U+000A ('controlLF') is not available in this font Helvetica (generic: ArialMT) encoding: WinAnsiEncoding...

 if I change the mimetype to plain/text, the preview generation is provided by jodconverter and libreoffice, then everything is fine.

Is there any way to disable pdfbox to generate XML preview? Ideally replace it with libreoffice and set the same behavior as for mime type plain / test.

Thank you.

1 Reply
miroslav
Active Member

Re: How to change pdfbox configuration to generate XML preview by Libreoffice

Any idea how to fix mentioned error? (char "Řř" in xml). It is possible to change default transofmation algorithm?