Bug 106059 - Include original PDF content for PDF images during export
Summary: Include original PDF content for PDF images during export
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: target:5.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 11:22 UTC by Miklos Vajna
Modified: 2024-03-06 07:58 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Reproducer document. (13.27 KB, application/vnd.oasis.opendocument.text)
2017-02-17 11:22 UTC, Miklos Vajna
Details
Larger PDF image. (2.11 MB, application/pdf)
2017-02-23 11:07 UTC, Miklos Vajna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miklos Vajna 2017-02-17 11:22:20 UTC
Created attachment 131291 [details]
Reproducer document.

Steps to reproduce:

1) open the attached document.

2) Notice that while it has a bitmap, that bitmap has the original PDF data next to it. (Right click -> Save can extract that PDF data from the document.)

3) Export the document as pdf.

Expected: the original vector image is shown.

Actual: the bitmap rendered by LO is shown.
Comment 1 Commit Notification 2017-02-17 14:55:16 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=5fd4c95affbad94f5630425e35bced434d18e3d8

tdf#106059 PDF export: include content of PDF images as an embedded file

It will be available in 5.4.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2017-02-17 19:26:57 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=42c0dfbd6b08ecbc5893595a4100d572a3082d8a

tdf#106059 PDF export: write form XObject proxy for PDF images

It will be available in 5.4.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2017-02-22 14:30:27 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=57c5ad79609134e0ff0013a002cc80a570e81c20

tdf#106059 PDF export: set matrix and bbox for PDF images

It will be available in 5.4.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2017-02-22 16:30:24 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=6db0f1feb1d9931d2726dd11a889c58815710ce0

tdf#106059 PDF export: create a reference XObject for PDF images

It will be available in 5.4.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Miklos Vajna 2017-02-23 11:07:36 UTC
Created attachment 131427 [details]
Larger PDF image.

This larger "image" is converted to a JPG bitmap by default on export, and there still only the bitmap version is written.
Comment 6 Commit Notification 2017-02-23 15:37:36 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=78e25558e86188314b9b72048b8ddca18697cb86

tdf#106059 PDF export: create a reference XObject for JPG images with PDF data

It will be available in 5.4.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.