How to change pdfbox configuration to generate XML preview by Libreoffice
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.
Re: How to change pdfbox configuration to generate XML preview by Libreoffice
Thank you for answer. I saw the websites. In my case, there is unsupported character "Ř" (according pdfbox documentation). I have to either change the code on the alfresco side or just not to use the pdfbox library and leave everything on libreoffice. I wonder if I'm able to somehow change the tool that generates preview for specific mimetype.....in case of emltopdf conversion, use libreoffice