Bug 92803 - Bad quality generated pdf and a very large file sizes
Summary: Bad quality generated pdf and a very large file sizes
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.0.0.3 rc
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-17 13:26 UTC by Tomas Kralik
Modified: 2017-04-12 13:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Input odt document for generated pdf (1.00 MB, application/vnd.oasis.opendocument.text)
2015-07-17 13:26 UTC, Tomas Kralik
Details
generated pdf (288.60 KB, application/pdf)
2015-07-17 13:27 UTC, Tomas Kralik
Details
inputDocument (1.00 MB, application/vnd.oasis.opendocument.text)
2015-07-17 13:29 UTC, Tomas Kralik
Details
OpenOffice_3.2.1 (288.60 KB, application/pdf)
2015-07-17 13:29 UTC, Tomas Kralik
Details
LibreOffice_4.4.2 (464.14 KB, application/pdf)
2015-07-17 13:30 UTC, Tomas Kralik
Details
LibreOffice_5.0.0.3_RC (502.03 KB, application/pdf)
2015-07-17 13:31 UTC, Tomas Kralik
Details
OO_3.2.1-pdf_picture_8x_zoom (1.85 MB, image/png)
2015-07-17 13:31 UTC, Tomas Kralik
Details
LO_4.4.2- pdf_picture_8x_zoom (1.04 MB, image/png)
2015-07-17 13:32 UTC, Tomas Kralik
Details
LO_5.0.0.3-pdf_picture_8x_zoom (1.04 MB, image/png)
2015-07-17 13:32 UTC, Tomas Kralik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Kralik 2015-07-17 13:26:34 UTC
Created attachment 117293 [details]
Input odt document for generated pdf

Generating PDF to LibreOffice headless mode running on an application server.
I have three distribution office:
- Libreoffice_5.0.0.3_RC
- Libreoffice_4.4.2
- Openoffice_3.2.1
Running through LibreOffice (or OpenOffice) API Java code, which will send the document processing odt, getting back to pdf.

With newer versions of the LO (or OO) comes these Defects:
- Lower resolution images
- Bigger size pdf file

File for generating the Annex as inputDocument.odt.

There are three pdf named according to package LO (or OO) version.

Included are three pictures that show deteriorating quality of conversion, again named after release.
Comment 1 Tomas Kralik 2015-07-17 13:27:43 UTC
Created attachment 117294 [details]
generated pdf
Comment 2 Tomas Kralik 2015-07-17 13:29:21 UTC
Created attachment 117295 [details]
inputDocument
Comment 3 Tomas Kralik 2015-07-17 13:29:55 UTC
Created attachment 117296 [details]
OpenOffice_3.2.1
Comment 4 Tomas Kralik 2015-07-17 13:30:29 UTC
Created attachment 117297 [details]
LibreOffice_4.4.2
Comment 5 Tomas Kralik 2015-07-17 13:31:03 UTC
Created attachment 117298 [details]
LibreOffice_5.0.0.3_RC
Comment 6 Tomas Kralik 2015-07-17 13:31:38 UTC
Created attachment 117299 [details]
OO_3.2.1-pdf_picture_8x_zoom
Comment 7 Tomas Kralik 2015-07-17 13:32:30 UTC
Created attachment 117300 [details]
LO_4.4.2- pdf_picture_8x_zoom
Comment 8 Tomas Kralik 2015-07-17 13:32:57 UTC
Created attachment 117301 [details]
LO_5.0.0.3-pdf_picture_8x_zoom
Comment 9 Tomas Kralik 2015-07-17 13:35:15 UTC
Files Input_odt_document_for_generated_pdf.odt and generated.pdf are unnecessary.
Comment 10 Cor Nouws 2015-07-17 15:05:08 UTC
Thanks for filing Tomas,

I have no change to confirm, however:

(In reply to Tomas Kralik from comment #0)

> With newer versions of the LO (or OO) comes these Defects:
> - Lower resolution images

See issue 58831
> - Bigger size pdf file

Heard people about that. Thought that there was an issue for that already, but cannot find it.

Ciao - Cor
Comment 11 m_a_riosv 2015-07-17 23:19:28 UTC
I think headless use the last options used in LibreOffice.

Have you tried, doing first one opening LibreOffice, setting up properly the options and try after in headless mode.
Comment 12 Tomas Kralik 2015-07-21 14:45:44 UTC
(In reply to m.a.riosv from comment #11)
> I think headless use the last options used in LibreOffice.
> 
> Have you tried, doing first one opening LibreOffice, setting up properly the
> options and try after in headless mode.

Thank you for your response.

However, I have LO installed only on the server version of Linux. 
Thus, without a graphical interface.
Is it possible to somehow set the PDF export directly in the configuration file LO?
For example, DPI, quality, etc.
Comment 13 m_a_riosv 2015-07-21 16:56:06 UTC
Sure it is possible, but indeed perhaps not so easy, apart from locate the proper keys, know which are the possible values.

I think must be easy prepare the configuration in another computer, and copy the profile to the server.

If I'm not wrong the setting are in the registrymodifications.xcu file that is in the root of user profile, maybe only with copy this file to the server is enough.

More information about user profile in:
https://wiki.documentfoundation.org/UserProfile
Comment 14 Xisco Faulí 2016-09-10 14:58:16 UTC Comment hidden (obsolete)
Comment 15 Cor Nouws 2016-09-10 15:43:07 UTC
@Tomas: I think it's fair that you try to find this info first via support. Then if it's impossible, make an enhancement request. 
  http://www.libreoffice.org/get-help/community-support/
OK?
Comment 16 QA Administrators 2017-03-28 08:18:11 UTC Comment hidden (obsolete)
Comment 17 Cor Nouws 2017-04-12 13:58:58 UTC
(In reply to Cor Nouws from comment #15)
> @Tomas: I think it's fair that you try to find this info first via support.
> Then if it's impossible, make an enhancement request. 
>   http://www.libreoffice.org/get-help/community-support/
> OK?