Flattening XObjects is well defined - but tricky to get correct.
First, you'll need a content stream parser to be able to find where
each form xobject exists in each content stream and the current
graphics state at the time of the "Do" operator.
Next, as you find each one - you need to recurse down till you hit
the branch of the tree
When you hit a branch, you need to do two things
1) copy the content stream from the branch into the parent MAKING
SURE to properly reset the graphics state based on the values in the
branch
2) merge the resources of the branch into the parent - dealing with
name conflicts (which means rewriting the content stream)
Continue the parse
I'd give yourself at least 2-3 months, minimum, to add to iText all
the necessary "framework" and then code the above algorithm.
Leonard
On Apr 6, 2007, at 9:51 AM, Fabrizio Accatino wrote:
Paulo,
yes, I know iText can't do that.
But if I work inside the library, extending/modifying it, is it
possible?
In your opinion, do you think it is a very complex work? Can you
give me some "start points" to investigate?
Fabrizio
On 4/6/07, Paulo Soares <[EMAIL PROTECTED]> wrote:
iText can't flatten nested objects unless you are willing to invest
quite a bit of development time.
Paulo
----------------------------------------------------------------------
---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV________________________________
_______________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/