Convert document to PDF/A format

cancel
Showing results for 
Search instead for 
Did you mean: 
miroslav
Customer

Convert document to PDF/A format

 

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 try patch and OOoDirect approach from link below, but I cannot find the relevant configuration files (openoffice-document-formats.xml).

https://issues.alfresco.com/jira/browse/MNT-14700

Is there any way to set alfresco to generate PDF / A?