It not a spam :-) I am just looking for answers.
Link to post:
(Convert document to PDF/A format)
by miroslav
https://hub.alfresco.com/t5/alfresco-content-services-forum/convert-document-to-pdf-a-format/m-p/298...
<p>Hello guys,<br /><br />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.<br /><br />LibreOffice supports generation PDF/A via "<span>SelectPdfVersion</span>" property in a user configuration file (r<span>egistrymodifications.xcu</span>)<br /><a href="https://ask.libreoffice.org/en/question/2590/convert-files-to-pdfa-on-command-line-headless-mode/" target="_blank" rel="noopener">https://ask.libreoffice.org/en/question/2590/convert-files-to-pdfa-on-command-line-headless-mode/</a... /><br /><span>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.<br /></span><br />Libreoffice runs as a service in my environment (docker). </p><pre>/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</pre><p>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. <br /><br />Also <span>tried </span>patch and OOoDirect approach from link below, but <span>I cannot find the relevant configuration files (openoffice-document-formats.xml) and patch did not work. </span></p><p><a href="https://issues.alfresco.com/jira/browse/MNT-14700" target="_blank" rel="noopener">https://issues.alfresco.com/jira/browse/MNT-14700</a><br /><br /><span>Is there any way to set alfresco to generate PDF / A?</span><br /><br /><br /><br /></p><p> </p>
This message has 0 replies