If the image doesn't fit it's ignored.
> -----Original Message-----
> From: itext-questions-admin@(protected)
> [mailto:itext-questions-admin@(protected)
> Behalf Of Pankaj Bhatnagar
> Sent: Wednesday, June 29, 2005 3:44 PM
> To: itext-questions@(protected)
> Subject: [iText-questions] Problem adding images
>
> Hi,
>
> I am creating a pdf document using iText 1.3. The file is
> created by adding
com.lowagie.text.Image,
>
com.lowagie.text.pdf.PdfPTable &
com.lowagie.text.Paragraph > objects using the add(Element element) method in the Document
> class. The document is created by the code :
> document = new Document(new Rectangle(200f, 200f), 20f, 20f, 20f, 0f);
> I do not specify page breaks anywhere. Now, if at any time
> the table or the paragraph cannot be accomodated on the same
> page, a new page starts by default & the remaining part is
> transferred to the new page. But in the case of images,
> nothing happens & even the image does not get added. the
> document.add() method returns true showing that the image was
> added but it cannot be seen in the file. Moreover, anything
> added after that image gets added at the place the image
> should have been added.
>
> Is there any way that I can specify that a new page be
> created if the image cannot be accomodated on the page ? If
> not, is there any way to know whether the image was added
> properly to the file or not (as specified above the add()
> method returns true in both the cases) ? I am attaching the 2
> generated files for reference.
>
> Thanks & Regards,
> Pankaj Bhatnagar
>
>
>
> <http://clients.rediff.com/signature/track_sig.asp>
>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions