[poppler] Pdftohtml background colors don't match pdftoppm
billhatesspam at yahoo.com
Fri Dec 9 12:05:42 PST 2011
I couldn't upload the pdf because it is a customer's, but I did some digging and found that the difference in colors was due to the images being generated from different versions of poppler.
16.4 and 18.1. Updating both machines to the latest version solved my problem. I guess there was a change to how colorspaces are handled between these versions. I hope this post is useful to anyone with the same issue.
From: Albert Astals Cid <aacid at kde.org>
To: poppler at lists.freedesktop.org
Sent: Friday, December 9, 2011 10:35 AM
Subject: Re: [poppler] Pdftohtml background colors don't match pdftoppm
El Dijous, 8 de desembre de 2011, a les 16:14:11, Bill Williamson va escriure:
> I've noticed that the background images generated by pdftohtml don't match
> the output from pdftoppm.
> For example, in pdftoppm, a red red object in the background might have a
> RGB color of <255 38 0>, while the same background pixel from the output of
> pdftohtml will have a RGB value of <255 0 0>. Could someone point me to the
> correct place in the source where this might be happening? I've taken a
> look at the derived SpashOutputDevice in pdftohtml, but I don't see
> anything obvious there.
> Any ideas? Perhaps some kind of colorspace transformation is being applied
> in a place I'm not looking?
Which poppler version are you using? Which command line options are you using?
Which file are you running pdftohtml on?
poppler mailing list
poppler at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the poppler