[Libreoffice-bugs] [Bug 74861] [Spreadsheet] Exporting A4-sized ODS to PDF with '--headless' creates Letter-sized PDF (where manual export via GUI creates A4)
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 27 22:40:26 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=74861
--- Comment #50 from kurt.pfeifle at gmail.com ---
So I created myself a few different AppImages:
* First available release from 3.x.x.x series
* Last available release from 3.x.x.x series
* First available release from 4.x.x.x series
* Last available release from 4.x.x.x series
* First available release from 5.x.x.x series
* Last available release from 5.x.x.x series
* First available dailybuild 6.1.0.0.Alhpa0+
Unfortunately none of the 3.x.x.x ones did produce any PDF output for me.
Some did not even run in --headless mode, because they are looking for
Java and telling me:
"javaldx failed. User must select a JRE from options dialog!"
But the 4.x.x.x and 5.x.x.x all converted the ODS to PDF.
============================================================================
# Testing all LibreOffice versions available to me as AppImages:
$ cd out
$ for i in LibreOffice-*.AppImage ; do
j=${i%%.AppImage}
time ./$i \
"-env:UserInstallation=file:///tmp/LibO_Conversion__${USER}" \
--headless \
--convert-to pdf:calc_pdf_Export \
--outdir $(pwd)/${j/LibreOffice-/} \
$(pwd)/lh-dummy-a4.ods ;
exitcode $? ;
echo "Converting with $i DONE with exitcode $exitcode" ;
echo
done
============================================================================
>From the command looping through all the AppImage versions I had built, I
learned these additional things (which I did not investigate further):
1. Version 3.3.0 completed the PDF output with exit code 127.
It did not produce any PDF output.
2. Version 3.5.7rc2 completed the PDF output with exit code 139.
It did not produce any PDF output.
3. Version 3.4.6rc2 produced no PDF output, but created the output
directory with a file inside named ".~lock.lh-dummy-a4.pdf#". The
contents of this file was a comma-separated line of ASCII strings
looking like this ("kp" is the username I'm using):
,kp,<fq-hostname>,27.11.2017 23:18,,file:///tmp/LibO_Conversion__kp;kp
============================================================================
#####################################################################
# As a side result from this investigation I observed that version #
# 5.2.2.2 was significantly slower in producing PDF output in #
# headless mode than any version before or after. #
#####################################################################
# But now for the bug that I'm interested to get solved:
$ for i in */*.pdf; do
echo -n " $i:";
pdfinfo $i | grep "Page size";
echo ;
done
============================================================================
I got these results:
4.0.0.1.de.help-x86_64/lh-dummy-a4.pdf: Page size: 612x792 pts (letter)
4.4.7.2.de.help-x86_64/lh-dummy-a4.pdf: Page size: 612x792 pts (letter)
5.0.0.1.de.help-x86_64/lh-dummy-a4.pdf: Page size: 612x792 pts (letter)
5.3.7-x86_64/lh-dummy-a4.pdf : Page size: 612x792 pts (letter)
5.4.3.2.de.help-x86_64/lh-dummy-a4.pdf: Page size: 611.972x791.972 pts
(letter)
5.4.3-x86_64/lh-dummy-a4.pdf : Page size: 611.972x791.972 pts
(letter)
6.1.0.0.alpha0-x86_64/lh-dummy-a4.pdf : Page size: 611.972x791.972 pts
(letter)
+============================================================================+
| |
| 1. None of the versions did carry my A4 page size from the input ODS into |
| the headlessly generated PDF. |
| |
| 2. Now it's your turn again, guys! |
| |
+============================================================================+
( Also, as another side effect from this investigation:
we can see that after v5.3.7 and before v5.4.3 the precision of
putting the page size dimensions into the PDF somehow must have
been upgraded by somebody,
isn't it? )
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171127/0898dec5/attachment.html>
More information about the Libreoffice-bugs
mailing list