Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Grayscale transformation corrupts some PDFs #579

Open
dillonkh opened this issue Feb 10, 2025 · 1 comment
Open

[BUG] Grayscale transformation corrupts some PDFs #579

dillonkh opened this issue Feb 10, 2025 · 1 comment

Comments

@dillonkh
Copy link

Description

This may not actually be a bug, but im hoping to at least get some help on this issue im facing.
Im using the grayscale example to transform a pdf to grayscale. When i open the resulting pdf i get the message An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem. and the pdf indeed does not display correctly.

Expected Behavior

Popular PDF viewers such as Acrobat should be able to render PDFs that have been transformed to grayscale

Actual Behavior

Steps to reproduce the behavior:

  1. $ cd unipdf-examples/advanced
  2. copy trouble pdf to directory
  3. $ go run pdf_grayscale_transform.go sample-pdf-file.pdf gray.pdf
  4. open gray.pdf in adobe acrobat

Attachments

Trouble PDF (color): sample-pdf-file.pdf
Trouble PDF (grayscale): gray.pdf

Acrobat Error Message:
Image

Acrobat PDF Render:
Image

@3ace
Copy link

3ace commented Feb 11, 2025

Hi @dillonkh

Thank you for reaching out regarding this matter. We will promptly review the issue and provide an update upon any developments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants