iText has the building blocks for what you need, but you'll need to put
them together in the right way.  Nothing "out of the box".

Leonard

On 11/1/11 12:09 PM, "Giampaolo Capelli" <[email protected]> wrote:

>In the attachment
>
>I'm providing an example of a pdf file where I see 4 "conceptual images",
>in
>the psychological visual sense
>(I understood that they are not images from the pdf point of view).
>
>My aim is to edit the pdf file adding a (rectangular) border to such
>"conceptual images".
>
>Is there an easy way to do it with iText,
>or should I handcraft some sort of low level parsing myself?
>
>Thanks
>
>
>
>-----Messaggio originale-----
>Da: Leonard Rosenthol [mailto:[email protected]]
>Inviato: martedì 1 novembre 2011 15:22
>A: Post here
>Oggetto: Re: [iText-questions] R: R: R: image in Flatedecode stream
>without
>metadata in dictionary
>
>One key question - and this applies EQUALLY to both Image as well as Form
>Xobjects.
>
>Do you want the physical size (what the box would be if rendered w/o any
>context) _OR_ the effective size (taking the current transformation matrix
>into account)?  If effective, then you need to consider that an Xobject
>can be called from multiple places in the same document with different
>CTMs.  What do you want to do in that case?
>
>And this especially applies to the POSITION item you listed below.
>Position is determined by the CALLING CONTEXT (aka the content stream that
>invoked (via the Do operator) the Xobject).  So that would imply you want
>effective size, in which case, you need to step back and look at using the
>page content parser feature of iText.
>
>Leonard
>
>
>On 11/1/11 10:00 AM, "Giampaolo Capelli" <[email protected]> wrote:
>
>>I don't have problems with th concept of image, I perfectly knows the
>>difference between raster and and vector, rather it seems you didn't
>>get what I need, unlike other partipants to this thread. I need a way
>>to render the object expressed by the pdf syntax in a way that it
>>would be possible to get its width and height and position, or I need
>>to get this information from the pdf data, if possible
>>
>>2011/11/1, Leonard Rosenthol <[email protected]>:
>>> You seem to have a problem with the concept of "images".  There are two
>>> types:
>>> - Raster (<http://en.wikipedia.org/wiki/Raster_graphics>)
>>> - Vector (<http://en.wikipedia.org/wiki/Vector_graphics>)
>>>
>>> An Image XObject is a Raster image, while a Form XObject is a vector
>>> image.
>>>
>>> So you need to determine how you wish to deal with the differences in
>>>your
>>> product.
>>>
>>> Leonard
>>>
>>>
>>> On 11/1/11 7:40 AM, "Giampaolo Capelli" <[email protected]> wrote:
>>>
>>>>But since Acrobat Reader is able to properly render my pdf file,
>>>>I guess there should be some way to get the data I need.
>>>>
>>>>Do I need to use a third party library to parse that pdf syntax,
>>>>or to render the images and calculate myself their attributes?
>>>>
>>>>
>>>>-----Messaggio originale-----
>>>>Da: 1T3XT BVBA [mailto:[email protected]]
>>>>Inviato: martedì 1 novembre 2011 12:25
>>>>A: Post all your questions about iText here
>>>>Oggetto: Re: [iText-questions] R: R: image in Flatedecode stream
>>>>without
>>>>metadata in dictionary
>>>>
>>>>On 1/11/2011 11:39, Giampaolo Capelli wrote:
>>>>> That ISO reports the dictionary's BBox entry, that is required.
>>>>>
>>>>> I've decoded one of my Flatedecode streams, it looks like this
>>>>> Does it look like a form XObject?
>>>>
>>>>Yes, that's PDF syntax. This means you don't have an image, but a Form
>>>>XObject.
>>>>If you want to have the Form XObject to have a BBox, please ask the
>>>>people at GhostScript to add one.
>>>>If they don't provide the required BBox value, ask them how you're
>>>>supposed to get the width and the height.
>>>>
>>>>-----------------------------------------------------------------------
>>>>-
>>>>--
>>>>--
>>>>--
>>>>RSA&reg; Conference 2012
>>>>Save &#36;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/3988 -  Data di
>>>>rilascio:
>>>>31/10/2011
>>>>
>>>>
>>>>-----------------------------------------------------------------------
>>>>-
>>>>--
>>>>----
>>>>RSA&reg; Conference 2012
>>>>Save &#36;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
>>>
>>>
>>> 
>>>------------------------------------------------------------------------
>>>-
>>>-----
>>> RSA&reg; Conference 2012
>>> Save &#36;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
>>>
>>
>>
>>-- 
>>Giampaolo Capelli
>>[email protected]
>>[email protected]
>>(+39) 338 7139111
>>---------------------------
>>skype: giampow
>>icq: 96521070
>>msn: [email protected]
>>gtalk: [email protected]
>>
>>-------------------------------------------------------------------------
>>-
>>----
>>RSA&reg; Conference 2012
>>Save &#36;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
>
>
>--------------------------------------------------------------------------
>--
>--
>RSA&reg; Conference 2012
>Save &#36;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/3988 -  Data di rilascio:
>31/10/2011


------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;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