ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.89k stars 1.1k forks source link

Distorted CMYK images in exported PDF #1585

Open stefan0xC opened 2 years ago

stefan0xC commented 2 years ago

This issue is unique.

Operating System

Linux (DEB package)

Version information

6.4.2.6

Expected Behavior

When you save a document as PDF images should be rendered without issues.

Actual Behavior

When the document is saved as PDF the embedded JPEG image (in CMYK colorspace) will be colorless and distorted. See Document1.pdf for an example.

Reproduction Steps

You can reproduce the issue with the attached Document1.docx and saving the document as PDF.

  1. Download and open the document with OnlyOffice
  2. Click File -> Save as
  3. Change the file type to "PDF File (*.pdf)"
  4. Click Save.
  5. Open the file with any PDF viewer

Additional information

The same behavior can be observed in the online version of OnlyOffice (6.4.2). The issue is not present with every JPEG image but as far as I have tested it only where colorspace has been changed to CMYK (e.g. with the GRACoL_TR006_coated.icc or SNAP_TR002_newsprint.icc). To recreate the issue I've exported a JPEG image in GIMP and applied the ICC profile with ImageMagick's convert.

Rita-Bubnova commented 2 years ago

Hello, @stefan0xC. Thank you for the report. I can confirm - this is a bug, issue 54918 in our private issue tracker.

ShockwaveNN commented 2 years ago

Moving this issue to DocumentServer repo, since it's our base product and problem actual there too