[Poppler-bugs] [Bug 24686] New: ICC-based colorspaces caching problem

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Oct 23 01:41:04 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=24686

           Summary: ICC-based colorspaces caching problem
           Product: poppler
           Version: unspecified
          Platform: x86 (IA32)
        OS/Version: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: kav at exitonsoftware.com


Hello
I use Poppler lib (compiled with USE_CMS) to render several pdf files one by
one.
I've encountered the following problem.
If Poppler renders pdf with ICC-based colorspaces it caches them in the private
static cache in GfxICCBasedColorSpace using pdf stream's gen and num as a key.
After that (inside the same program call) if it renders next pdf which uses the
same gen and num for another colorspace it takes wrong one from the cache.
I think it would be better to have something else as a key. For example it can
use pdf's ID field along with gen, num pair or some hash of the ICC stream's
data. Or some public function to clean the cache might be added.
Thanks


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list