Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Oct 26, 2022 11:16 am

Hello

We are using Spire PDF to dynamise some PDF
The source are pdf with CYMK jpeg inside it went well for a year but somehow on some tempolate the conversion of the CYMK jpeg are inverted.

CYMKCapture.JPG


No problem with sRGB jpeg

The generated pdf is ok

We are using Spire.Pdf-3.8.5.jar with a license.

I tried to extract the jpeg to compare them with pdimage but when I do all the image are inverted even those where spirepdf has no issue.

-----------------------------------------

Edit 2 we find out that the problemn does not occurs with
openjdk 11.0.9 2020-10-20
but since an upgrade to
openjdk 11.0.16 2022-07-19

arnaudHa
 
Posts: 2
Joined: Wed Oct 26, 2022 11:02 am

Thu Oct 27, 2022 8:23 am

Hello,

Thanks for your inquiry.
You are using a very old version of Spire.Pdf. Now, the latest version of Spire.Pdf for Java is V8.10.5. Therefore, I suggest you test your scenario with the latest version, and if the issue still exists, please offer the following message to help us reproduce your issue and work out a solution for you. Thanks for your assistance in advance.
1) Your full test code that can reproduce your issue.
2) The input pdf file.
3) Your test environment, such as OS info (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese).

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Wed Nov 02, 2022 7:27 am

Hello,
The code follow this
www e-iceblue.com/Tutorials/JAVA/Spire.PDF-for-JAVA/Program-Guide/Conversion/Convert-PDF-to-Image-in-Java.html
( can not post your url )

The pdf template has CYMK JPG images

Linux

JDK : Java 11.0.15 works.
JDK : Java 11.0.16 does NOT work.
JDK : Java 11.0.17 does NOT work.

arnaudHa
 
Posts: 2
Joined: Wed Oct 26, 2022 11:02 am

Wed Nov 02, 2022 10:34 am

Hello,

Thanks for your feedback.
I created a console project with the latest version of Spire.Pdf8.11.0 and simulated a pdf file to test your scenario, I didn't reproduce your issue when I used the JDK java 11.0.15 or JDK java 11.0.16. Are you using the latest version of spire.pdf? In addition, the linux version is CentOS Linux release 7.9.2009 (Core). To help us reproduce your issue and work out a solution for you, please offer the following message. Thanks for your assistance in advance.

1) Your pdf file that can reproduce your issue, you can attach here or send it to us via email ( [email protected]).
2) The Linux version, such as CentOS Linux release 7.9.2009.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.PDF

cron