How to change pdfbox configuration to generate XML preview by Libreoffice

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2021 08:45 AM
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.
- Labels:
-
Alfresco Content Services

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2021 06:11 AM
Any idea how to fix mentioned error? (char "Řř" in xml). It is possible to change default transofmation algorithm?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2021 08:45 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2021 07:05 AM
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
