Bug 89652 - pdf export reduces size of imported pictures - works fine using OO
Summary: pdf export reduces size of imported pictures - works fine using OO
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.2.1 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-25 13:52 UTC by Dr. Matthias Weisser
Modified: 2016-01-06 20:15 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
test file showing the graphics in size correctly (445.50 KB, application/msword)
2015-02-25 13:52 UTC, Dr. Matthias Weisser
Details
pdf file showing incorrect output of embedded graphics (112.91 KB, application/octetstream)
2015-02-25 13:55 UTC, Dr. Matthias Weisser
Details
graphic file showing doc file content - pictures in correct size (111.27 KB, image/png)
2015-02-25 14:00 UTC, Dr. Matthias Weisser
Details
shows used pdf options for export (11.44 KB, image/png)
2015-02-25 15:10 UTC, Dr. Matthias Weisser
Details
correct pdf output from old apache office 4.0.0 (289.91 KB, application/octetstream)
2015-02-25 18:59 UTC, Dr. Matthias Weisser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. Matthias Weisser 2015-02-25 13:52:45 UTC
Created attachment 113672 [details]
test file showing the graphics in size correctly

there are pictures included in a document. It does not matter if this document is a .doc (2015_test1.doc) or if it is stored as .odt. 

Exporting this to pdf (2015_test1.pdf) using LO reduces the size of the pictures as can be seen in the test file 2015_test1.pdf and the file 2015_test1.png.
Comment 1 Dr. Matthias Weisser 2015-02-25 13:55:14 UTC
Created attachment 113673 [details]
pdf file showing incorrect output of embedded graphics
Comment 2 Dr. Matthias Weisser 2015-02-25 14:00:06 UTC
Created attachment 113674 [details]
graphic file showing doc file content - pictures in correct size

here the correct size of the embedded graphics can be seen. See the pdf file output in comparison to that. The pdf shows the pictures very very small !

This is unusable output. Using OO 4.0.0 for this output does not show a problem at all.
Comment 3 V Stuart Foote 2015-02-25 14:55:07 UTC
What OS and Desktop environment are you using?

This works correctly on the LO Windows 7 sp1, 64-bit en-US 

Version: 4.2.7.2
Build ID: 933c0aa564ec4f8883ed5732c866db48dca4dac5

Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Locale: en_US

Either postscript print to PDF, or export to PDF the images are rendered at full page size in the result.

Please check result, from the PDF Export dialog -> General tab if you clear all check boxes and just set either the "Lossless compression" or the "JPEG compression" radio buttion.

Any improvement?
Comment 4 Dr. Matthias Weisser 2015-02-25 15:08:27 UTC
> What OS and Desktop environment are you using?

I am using WinXP 32bit. 

For export I used the pdf Icon. This produced the very small pictures. It still does so using the file from here. 

Here is a snap shot of the used pdf options.
Comment 5 Dr. Matthias Weisser 2015-02-25 15:10:02 UTC
Created attachment 113677 [details]
shows used pdf options for export
Comment 6 Dr. Matthias Weisser 2015-02-25 15:14:53 UTC
if I use the PDF Export dialog -> General tab and clear all check boxes and just set "Lossless compression" radio buttion there is just the same behaviour. The pictures again so small to see.
Comment 7 V Stuart Foote 2015-02-25 15:25:24 UTC
Sorry, can not reproduce--4.2.7.2 or 4.4.1.2 builds. 

Image on pg2 and pg3 of PDF are scaled to full A4 page size of PDF.  

Please clear (or rename) your user profile for the installation.

On XP that would be:
C:\Documents and Setting\<user name>\Application Data\libreoffice\4\user

delete (or rename) the libreoffice folder, it will be recreated on next launch.

=-ref-=
https://wiki.documentfoundation.org/User_Profile
Comment 8 Julien Nabet 2015-02-25 16:35:22 UTC
I'd add too, try to upgrade to recent LO version (4.4.0 or 4.3.7 for stable and mature version)
Comment 9 Dr. Matthias Weisser 2015-02-25 18:56:58 UTC
Hello Stuart, I did delete this folder. This did not change the problem. 

Than I did a new installation of the latest LO version. Its now 4.4.0.3. Again with this newest version the same problem. It should be possible verifying this for others. 

Clearly there is no problem at all when opening this .doc from Apache Open Office 4.0.0 and doing export from this version. This works without any problems.

I will attach the pdf from this there as 2015_test1_oo.pdf. 

Also the symbols are looking much nicer in the old version compared to the brutal ones in LO 4.4.0.3. I do not know why this was changed that way. I do not like it at all. But this is another problem.
Comment 10 Dr. Matthias Weisser 2015-02-25 18:59:59 UTC
Created attachment 113684 [details]
correct pdf output from old apache office 4.0.0

This file clearly shows that using the same .doc file given above the pdf output is ok in OO 4.0.0 but not ok in this older LO version and also not ok in the newest LO version after a complete new installation.
Comment 11 V Stuart Foote 2015-02-27 15:06:31 UTC
Works for me, on all versions of LO and AOO

Back to unconfirmed.
Comment 12 Buovjaga 2015-03-04 12:38:35 UTC
I wonder, if this is some XP-specific problem, because I can't confirm the problem with attachment 113672 [details] either!

Matthias: maybe you could test the file on some Win 7/8/10 machine and another XP machine to get more clues.

Win 7 Pro 64-bit, LibO Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Locale: fi_FI
Comment 13 V Stuart Foote 2015-03-04 15:17:33 UTC
Can not confirm on Windows XP sp3 en-US (VMWare workstation guest) with ghostscript 9.06 installed, but no pstoedit or imagemagick.

Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Locale: en_US

export with PDF dialog settings the same as shown in comment 5

pg2 and pg3 images are fit to full page...
Comment 14 Dr. Matthias Weisser 2015-03-05 11:59:17 UTC
I had another try today on the desktop PC using Win XP together with the latest LO. The export problem is still there in the pdf. On the laptop also using XP and the older version of LO 4.2.5.2 the produced pdf seems to be ok. 

So there must be some difference between those XP versions. Whats still bothering me is that the problem does not exist on the desktop using OO 4.0.0 instead. There must be a difference there. 

Its quite time consuming redoing an XP installation because of all those installed applications.
Comment 15 Buovjaga 2015-03-05 12:07:19 UTC
(In reply to Dr. Matthias Weisser from comment #14)
> Its quite time consuming redoing an XP installation because of all those
> installed applications.

If you decide to go the route of XP reinstall, this might give you a kickstart on the application installation: https://ninite.com/
Comment 16 Dr. Matthias Weisser 2015-03-05 12:28:06 UTC
Thank you very much for this hint. I am still not sure if I will try Win 7 instead. Unfortunately until now seldom a newer Win version allowed more productive working. With XP it was the same. Some time it worked quite well. The older it was the more sluggish it behaves. Then a reinstall seems to be a possible solution. My brother worked on sun workstations. There was no reinstallation in 10 years or so. Windows does not seem to be so well. I have seen this for many years now.
Comment 17 Buovjaga 2015-03-05 12:32:17 UTC
If you go with Win 7, this can give you a more familiar, XP-like experience: http://www.classicshell.net/
Comment 18 A (Andy) 2015-12-27 08:52:36 UTC
For me also not reproducible with LO 5.1.0.1, Win 8.1.  The images in the pdf have the same size as in the odt.  
But when using the pdf options as shown in the attachment the pdf size is in my case much larger, therefore I suppose there are also further specific options used?  
Furthermore, I experience that LO hangs up when exporting the pdf and I have to wait several seconds until LO is finished and the pdf is exported.
Comment 19 Timur 2016-01-06 20:15:07 UTC
Since I'm already the 4th person which is not able to reproduce this in Windows 7 and XP, I tried both LO 4.2.2 and 4.4.6., I'll close this one. 
Sorry, we are all making too much effort on this, with no progress, and this may be Windows problem.
Feel free to reopen only if you have some new information.