[poppler] Optional Content Properties

Carlos Garcia Campos carlosgc at gnome.org
Fri Jun 20 03:12:45 PDT 2008

Hi all, 

according to the spec the optional content properties dictionary "is
required if the file contains any optional content; if it is missing, a
PDF consumer should ignore any optional  content structures in the
document". However we are always creating an OCGs object in the Catalog
which caused some crashes that were already fixed by this commit 


it doesn't crash anymore, but it still shows warnings like this 

Error: Could not find a OCG with Ref (10:0)

I think we shouldn't create the OCGs object if the document doesn't have
an Optional Content Properties dictionary. See attached patch. If nobody
complains I'll commit it in a few days. 

Carlos Garcia Campos
   elkalmail at yahoo.es
   carlosgc at gnome.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-not-create-an-OCGs-object-if-there-isn-t-an-OCPro.patch
Type: application/mbox
Size: 4219 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20080620/2f3f2c62/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
Url : http://lists.freedesktop.org/archives/poppler/attachments/20080620/2f3f2c62/attachment.pgp 

More information about the poppler mailing list