[poppler] Problem understanding Optional Content

Brad Hards bradh at frogmouth.net
Wed Nov 7 01:13:07 PST 2007


On Wednesday 07 November 2007 08:47, Leonard Rosenthol wrote:
> On Nov 6, 2007, at 9:41 PM, Brad Hards wrote:
> >> Then as you render, you need to check each piece of content to see if
> >> it lies inside of an OCG, and whether that OCG is "On" or "Off" at
> >> this time.
> >
> > Yep. What I don't see is "how do I tell if this item is part of an
> > OCG or not"
> > for most of the items.
>
> 	Look in the content stream
This is the part I missed.
> 	for /OC MC0 /BMC. 
Thanks.

> 	You need to track marked content operators and see what type of MC's
> they are (since MC is used for a variety of things, of which OC is
> just one).  Remember that it's a stack, since you can have multiple
> OCs on a single piece of content.
Urgh.

> 	Enclosed are two good OCMD test files - one with a simple "flat" set
> and one that also demonstrates "hierarchical" grouping.   You are
> welcome to include them in your test cases.
Thanks.

> 	I'll try to dig up an VE sample for you...
That would be appreciated.

Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20071107/eb4f4eef/attachment.pgp 


More information about the poppler mailing list