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

All color are inverted #572

Open
francoisnicolas opened this issue Jun 14, 2024 · 1 comment
Open

All color are inverted #572

francoisnicolas opened this issue Jun 14, 2024 · 1 comment
Labels
type: bug Existing feature doesn't work correctly

Comments

@francoisnicolas
Copy link

Describe the bug
A clear and concise description of what the bug is.

All the colors are inverted when "render pdf to image"

To reproduce
Code snippet to reproduce the behavior:

Add the folowing files in the asset folder
another bug : for the file cmb.pdf when we stip the text, many letters change cases : lower to upercase

System.out.println("Hello world");

PDF example
Link or attach a PDF demonstrating the issue
Download one pdf on the site (file too big for github) : https://www.calameo.com/books/000529009490a941dda5d
clic on "LIRE LA PUBLICATION", then download
cmb.pdf

Expected behavior
A clear and concise description of what you expected to happen.

Actual behavior
A clear and concise description of what happened instead.

Environment details:

  • PdfBox-Android version: [e.g. 2.0.27.0]
  • Android API version: [e.g. API 33]
    cmb.pdf

latest version of pdfbox-android

Android Studio Electric Eel | 2022.1.1 on WINDOWS 11
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false

Result screen :
screen1
screen2

Additional context
Add any other context about the problem here.

@francoisnicolas francoisnicolas added the type: bug Existing feature doesn't work correctly label Jun 14, 2024
@francoisnicolas
Copy link
Author

There is an error message :
E/PdfBox-Android: Unsupported color space kind: COSName{DeviceCMYK}. Will try DeviceRGB instead

same problem is exposed in :
#483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Existing feature doesn't work correctly
Projects
None yet
Development

No branches or pull requests

1 participant