pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: PDFBox gets wrong font color values from PDF file!
Date Thu, 10 Jan 2019 21:13:48 GMT
It's the CMYK icc profile from Adobe. We can't include it because of the 
license. We use a different icc profile.

The code below reinitializes the CMYK colorspace with that icc profile.

Tilmam

Am 10.01.2019 um 09:09 schrieb Hesham Gneady:
> That has fixed this, and the colors appear with right RGB values now!
> I am not sure what this file does, but it has fixed it!
>
> Thanks a lot Tilman.
>
>
> Best regards,
> Hesham
>
> --------------------------------------------------------------------------------------------------
> Included Message:
>
> Add this at the beginning of your software:
>
>
>           PDDeviceCMYK.INSTANCE = new PDDeviceCMYK()
>           {
>               @Override
>               protected ICC_Profile getICCProfile() throws IOException
>               {
>                   return ICC_Profile.getInstance("USWebCoatedSWOP.icc");
>               }
>           };
>
> Get the ICC file here:
>
> https://www.adobe.com/support/downloads/iccprofiles/iccprofiles_win.html
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message