<item oor:path="/org.openoffice.Office.Common/Filter/PDF/Export"><prop oor:name="SelectPdfVersion" oor:op="fuse"><value>1</value></prop></item>
to registrymodifications.xcu I can get LibreOfficeKit save PDF/A-1 (ISO 19005-1:2005) file.
However adding the SelectPdfVersion=1 option via the LibreOfficeKit API has no effect.
Plain PDF 1.5 will be generated. I also tried several other options (PageRange, Watermark, ..) and all I have tried so far seem to fail to function at all.
I tried this with several LibreOffice versions (from 5.x and 6.x lines) and it seems to me the options in the API has been totally broken for a while now.
Steps to Reproduce:
1. Add any option to the lokit API for PDF export
2. Check the result
3. The options have no effect
The options have no impact.
The options to have impact on the PDF generation.
User Profile Reset: No
I will attach my (ugly C++ hack) test program. You can also reproduce this with https://github.com/xrmx/pylokit if you want work less.
Created attachment 147154 [details]
My ugly lokit test application
The same with pylokit:
from pylokit import Office
lo_path = "/path/to/libreoffice/program/dir"
with Office(lo_path) as lo:
with lo.documentLoad("test.dox") as doc:
doc.saveAs("test.pdf", fmt="pdf", options="SelectPdfVersion=1")
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.
For more information about our NEEDINFO policy please read the
wiki located here:
If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
Thank you for helping us make LibreOffice even better for everyone!
Please read this message in its entirety before proceeding.
Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):
a) Provide details of your system including your operating
system and the latest version of LibreOffice that you have
confirmed the bug to be present
b) Provide easy to reproduce steps – the simpler the better
c) Provide any test case(s) which will help us confirm the problem
d) Provide screenshots of the problem if you think it might help
e) Read all comments and provide any requested information
Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:
a) respond via email
b) update the version field in the bug or any of the other details
on the top section of our bug tracker