I'm doing the following, which I think for my particular case and needs will
suffice:

-to add to the RenderListener interface some methods (callbacks)
corresponding to the draw primitives (movetTo, lineTo, curveTo in its three
form "v", "y", "c", currentMatrix)
and to add the necessary mappings of such primitives in
PdfContentStreamProcessor.populateOperators(), as advised by Kevin

-to implement the RenderListener interface in a class that uses a heuristic
to recognize my "conceptual images":
each "moveTo" is checked against a threshold on the x axis, if the movement
on the x axis is greater than a threshold, it is likely that it means a draw
of a new "conceptual image" (every "conceptual image" starts with a moveTo),
otherwise the moveTo is likely a draw operation within the same/current
"conceptual image",
 
Combining such heuristic with information on the textual description under
"conceptual images" (in my pdf files there is one description word for each
"conceptual image") I think I'm able to recognize at least their position
and width.

For the data I need (that is position and size of bounding boxes of
"conceptual images"), in my class implementing RenderListener I'm using an
object of class java.awt.geom.GeneralPath which fits for offering the
rendering of the pdf draw commands and a method "getBounds2D()", which
returns the bounding box of the path.



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

ok - I think that's enough to convince me that this is doable - Giampaolo
should be able to put together a proof of concept for this.  I'm looking
forward to seeing how it looks.

--
View this message in context:
http://itext-general.2136553.n4.nabble.com/image-in-Flatedecode-stream-witho
ut-metadata-in-dictionary-tp3962812p3976335.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(R) 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