> Please explain what's hard to understand in this fragment:
> 
> A content stream normally contains references to external objects, 
> images, and fonts. For example, you can find a reference to a font named 
> /F1 in listing 2.2. This font is stored elsewhere in the PDF file.
> ...
> you should pass the reader object to the manipulation class (PdfStamper, 
> PdfCopy, or even PdfWriter) and ask the writer (not the reader!) for the 
> imported page. A PdfImportedPage object is returned. Behind the scenes, 
> all the necessary resources (such as images and fonts) are retrieved.
> 
> Your opinion is valuable because a second edition of the book is being 
> written as we speak!!!

Hmm...there is nothing hard to understand about the sections I read. What was 
difficult for me to understand, was the following implication that when I ask 
the writer for an imported page, and then turned it into a picture, if I wanted 
to write that picture to a PDF output I was stuck using that particular writer. 
In other words, it is rather unclear (and still is) why the Image produced by 
the following method:----------------------        static private Image 
method1()
        {
            PdfWriter tmpWriter = PdfWriter.GetInstance(new Document(), new 
MemoryStream());
            PdfImportedPage page = tmpWriter.GetImportedPage(new 
PdfReader("test.pdf"), 1);
            Image image = Image.GetInstance(page);

            return image;
        }----------------------is somehow different to the Image produced by 
this method. ----------------------        static private Image method1()
        {
            Image image = Image.GetInstance("image.jpg");

            return image;
        }
----------------------
> You don't understand the structure of a PDF file; you'd need to read the > 
> complete book.
No, I don't doubt that you and the others here would know more about this. 
Hence I am asking on this mailing list. 
>From what you've said, it seems to me that you understand exactly what I am 
>asking for, and where I am going wrong. 
If that is the case, it would be rather helpful to me if you could just tell me 
straight up whether or not what I'm trying to do is impossible. Or is it just 
that I'm taking the wrong approach.                                         
_________________________________________________________________
Looking for a place to rent, share or buy this winter? Find your next place 
with Ninemsn property
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Edomain%2Ecom%2Eau%2F%3Fs%5Fcid%3DFDMedia%3ANineMSN%5FHotmail%5FTagline&_t=774152450&_r=Domain_tagline&_m=EXT
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to