Move To, Line To, Rect and Curves – that's correct.

From: Giampaolo Capelli <[email protected]<mailto:[email protected]>>
Reply-To: Post here 
<[email protected]<mailto:[email protected]>>
Date: Wed, 2 Nov 2011 06:35:35 -0700
To: Post here 
<[email protected]<mailto:[email protected]>>
Subject: Re: [iText-questions] R: R: R: R: R: R: image in Flatedecode stream 
without metadata in dictionary

According to what I read from the pdf ISO specifications,
draw primitives are lines, moves and curves: curves are all in the form of 
cubic Bezier.

Such Bezier curves have some nice properties (as for example they are contained 
in the convex hull defined by their control points)
and their evaluation should not be so hard (without taking into account 
optimization techniques).

Am I missing some other primitives?


Leonard Rosenthol-3 wrote:
>
> For certain types of PDFs and PDF graphic objects, it can be done - for
> others, it's pretty tricky.
>

Do you have some additional cases that he should be thinking about?  Not
asking for an exhaustive list, but knowing some example of those would be
quite useful as this progresses.  If we can extend the parser to handle
additional operations, we may be close to letting iText actually render a
visual representation of the PDF, which would be a pretty nice chunk of
capability.


So we have two types of graphic objects that we have provided him with
strategies for dealing with:

1. Raster images can theoretically just use the bounding box of the image
(assuming that the full image is what he wants).
2. Vector graphics should be doable by handling the vector draw operations
(either by determining the union of bounding boxes of all draw operations,
or some sort of raster processing technique that is probably beyond my math
skills).  Ensuring that these operations happen in page space (or are
translatable to page space) should be just an engineering task.

Others that I can think of:

3.  Text.  But we already have text handling pretty much under control.
4.  Form elements  (I doubt this is of concern to the OP)
5.  Annotations (might be of concern to the OP)


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

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
iText-questions mailing list
[email protected]<mailto:[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]<mailto:[email protected]>
[email protected]<mailto:[email protected]>
(+39) 338 7139111
---------------------------
skype: giampow
icq: 96521070
msn: [email protected]<mailto:[email protected]>
gtalk: [email protected]<mailto:[email protected]>
------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
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