Hello guys,
I am trying to convert doc to pdf/a using jodconverter and libreoffice. Default configuration allows to generate only 1.4 or 1.5 format. The only official option I have found is to use a proprietary "Document transformation engine". I don't like it because you need a windows server and ms office.
LibreOffice supports generation PDF/A via "SelectPdfVersion" property in a user configuration file (registrymodifications.xcu).
https://ask.libreoffice.org/en/question/2590/convert-files-to-pdfa-on-command-line-headless-mode/
The configuration "registrymodifications.xcu" is created dynamically when a transformation is called by jodconverter (hope so). I need to add the "SelectPdfVersion" line to it somehow.
Libreoffice runs as a service in my environment (docker).
/opt/libreoffice6.1/program/soffice.bin -accept=socket,host=127.0.0.1,port=8100;urp; -env:UserInstallation=file:///tmp/.jodconverter_socket_host-127.0.0.1_port-8100 -headless -nocrashreport -nodefault -nofirststartwizard -nolockcheck -nologo -norestore
I tried to rewrite the jodconverter library in (repository docker)
/usr/local/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-jodconverter-core-3.0.1.1.jar
to put this config dynamically to (libreoffice docker)
/tmp/.jodconverter_socket_host-127.0.0.1_port-8100/user/registrymodifications.xcu
but it doesn't seem to have any effect.
Also tried patch and OOoDirect approach from link below, but I cannot find the relevant configuration files (openoffice-document-formats.xml) and patch did not work.
https://issues.alfresco.com/jira/browse/MNT-14700
Is there any way to set alfresco to generate PDF-A?
Hello,
I see no one has answered you, and the same is true of me. In the end, you could fix it, if it were, you could tell me how you did it.
Greetings and Thanks in advance
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.