Consider the following text file, which comes from https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt cventin:~> cat file.txt Box drawing alignment tests: █ ▉ ╔══╦══╗ ┌──┬──┐ ╭──┬──╮ ╭──┬──╮ ┏━━┳━━┓ ┎┒┏┑ ╷ ╻ ┏┯┓ ┌┰┐ ▊ ╱╲╱╲╳╳╳ ║┌─╨─┐║ │╔═╧═╗│ │╒═╪═╕│ │╓─╁─╖│ ┃┌─╂─┐┃ ┗╃╄┙ ╶┼╴╺╋╸┠┼┨ ┝╋┥ ▋ ╲╱╲╱╳╳╳ ║│╲ ╱│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╿ │┃ ┍╅╆┓ ╵ ╹ ┗┷┛ └┸┘ ▌ ╱╲╱╲╳╳╳ ╠╡ ╳ ╞╣ ├╢ ╟┤ ├┼─┼─┼┤ ├╫─╂─╫┤ ┣┿╾┼╼┿┫ ┕┛┖┚ ┌┄┄┐ ╎ ┏┅┅┓ ┋ ▍ ╲╱╲╱╳╳╳ ║│╱ ╲│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╽ │┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▎ ║└─╥─┘║ │╚═╤═╝│ │╘═╪═╛│ │╙─╀─╜│ ┃└─╂─┘┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▏ ╚══╩══╝ └──┴──┘ ╰──┴──╯ ╰──┴──╯ ┗━━┻━━┛ ▗▄▖▛▀▜ └╌╌┘ ╎ ┗╍╍┛ ┋ ▁▂▃▄▅▆▇█ ▝▀▘▙▄▟ If I convert this file to PDF with writer_pdf_Export by using cventin:~> libreoffice --headless --convert-to pdf file.txt convert /home/vlefevre/file.txt -> /home/vlefevre/file.pdf using filter : writer_pdf_Export then I get a PDF with some spacing issues. But if I convert it to PDF via printing to file cventin:~> libreoffice --headless --print-to-file file.txt print /home/vlefevre/file.txt -> /home/vlefevre/file.pdf using <default_printer> then the obtained has even more spacing issues. I'm going to attach all these files.
Created attachment 185868 [details] the text file file.txt
Created attachment 185869 [details] the PDF file obtained with "--convert-to pdf"
Created attachment 185870 [details] the PDF file obtained with "--print-to-file"
Note: the machine is a Debian/unstable with the libreoffice 4:7.4.5-2 Debian package.
Thanks for the report, Vincent. I could already see the very marked difference in: Version: 6.0.0.3 Build ID: 64a0f66915f38c6217de274f0aa8e15618924765 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; Locale: en-AU (en_AU.UTF-8); Calc: group In a recent master build, I get overall better results, but still some difference between the two methods, using Ubuntu 20.04 with GNOME 3.36.8 and: Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 1349f140fcc49e5da78482ca3db09663ccdae0a9 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded
Created attachment 187358 [details] screenshot of 7.6.0.0.alpha1+ test results: export to pdf (top), print to file (bottom)
Dear Vincent Lefevre, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Same problem under Debian/unstable (future Debian 13 trixie), except that the cross in the first figure is now correct in both cases ("--convert-to pdf" and "--print-to-file"). Help information: Version: 25.2.3.2 (X86_64) / LibreOffice Community Build ID: 520(Build:2) CPU threads: 16; OS: Linux 6.7; UI render: default; VCL: gtk3 Locale: en-DK (C.UTF-8); UI: en-US Debian package version: 4:25.2.3-2 Calc: threaded
I can see that each file uses 2 fonts. I'm wondering whether this could be related to font substitution (see e.g. bug 162928). But this alone would not explain the difference between "--convert-to pdf" and "--print-to-file". With LO 7.4 in 2023: LiberationMono and NotoSansMono-Regular. With LO 25.2.3.2 in 2025: LiberationMono and DejaVuSansMono.