Thank you Kevin,

I'll study the material you've provided and I'll get back to the mailing
list,
I would like to develop some way in iText to reach my target.



-----Messaggio originale-----
Da: Kevin Day [mailto:[email protected]] 
Inviato: martedì 1 novembre 2011 17:35
A: [email protected]
Oggetto: Re: [iText-questions] R: R: R: image in Flatedecode stream without
metadata in dictionary

It sounds like you are going to have to compute the bounding box by
interpreting the content stream draw operations.  The content parser
(com.itextpdf.text.pdf.parser) has the scaffolding in place to help with
this, but I have not added a renderDrawOperation() method (or something to
that effect) to the RenderListener interface.

Actually interpreting the draw operations will be a bit of an undertaking
(as pointed out in earlier posts, finding the true extents of a bezier
curve, for example, will take some math), but it is doable.

If you want to take a crack at it, I can provide guidance.  A starting point
would be to add renderDrawOperation() method to RenderListener, then add
additional handlers to PdfContentStreamProcessor.populateOperators().

The real question is how much state needs to get tracked in the
PdfContentStreamProcessor, and how much should get tracked in the listener. 
Probably tracking things like the current pen/color should be in the
PdfContentStreamProcessor.

At the end of the day, this will take a bit of delving into the PDF spec and
understanding each operator that is involved in draw operations.

If this is something you intend to do, let me know and I'll get you contact
info so we can collaborate on any designed decisions, etc...

--
View this message in context:
http://itext-general.2136553.n4.nabble.com/image-in-Flatedecode-stream-witho
ut-metadata-in-dictionary-tp3962812p3964251.html
Sent from the iText - General mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
-----
Nessun virus nel messaggio.
Controllato da AVG - www.avg.com
Versione: 10.0.1411 / Database dei virus: 2092/3989 -  Data di rilascio:
01/11/2011


------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to