[poppler] Optional Content improvements and glib support (second try)

Carlos Garcia Campos carlosgc at gnome.org
Sun Oct 26 12:12:46 PDT 2008


I've finally decided to add optional content support to the glib
bindings. Some of the issues I reported the first time I looked at OC
code are still there so here is a set of patches:

0001-Delete-the-optContent-object-if-it-s-invalid.patch

This just adds a typical isOk() method to OCGs class so that the object
can be removed from memory when it's not valid

0002-Minor-code-cleanup-and-consistency-issues.patch

This patch was already approved by Brad indeed
 - Ref() -> getRef()
 - State() -> getState()
 - Name() -> getName()
quite trivial. It contains also the changes needed for the qt4 frontend,
but I don't have Qt installed so it's untested. 

0004-Do-not-show-hidden-optional-content.patch

Right now, optional content only works for XObjects. This patch add
support for any drawing operation, using a stack for the markedContent.

0005-Check-annotation-optional-content-properties-before.patch

This one adds support also for annotations

0006-Fix-memory-leaks-in-OptionalContent.patch

Two memory leaks I reported and I had forgotten. 

0003--glib-Show-action-titles-when-printing-the-index-in.patch
0007--glib-Add-Optional-Content-support.patch
0008--glib-demo-Add-Optional-Content-demo.patch

These are glib only.

-- 
Carlos Garcia Campos
   elkalmail at yahoo.es
   carlosgc at gnome.org
   http://carlosgc.linups.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Delete-the-optContent-object-if-it-s-invalid.patch
Type: text/x-patch
Size: 2507 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0008.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Minor-code-cleanup-and-consistency-issues.patch
Type: text/x-patch
Size: 6240 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0009.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003--glib-Show-action-titles-when-printing-the-index-in.patch
Type: text/x-patch
Size: 1582 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0010.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Do-not-show-hidden-optional-content.patch
Type: text/x-patch
Size: 12486 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0011.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Check-annotation-optional-content-properties-before.patch
Type: text/x-patch
Size: 2565 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0012.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Fix-memory-leaks-in-OptionalContent.patch
Type: text/x-patch
Size: 2455 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0013.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007--glib-Add-Optional-Content-support.patch
Type: text/x-patch
Size: 25255 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0014.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008--glib-demo-Add-Optional-Content-demo.patch
Type: text/x-patch
Size: 16745 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0015.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
 digitalmente
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081026/06a1ad42/attachment-0001.pgp 


More information about the poppler mailing list