I checked the height/width/location of the pages I am writing and I'm
definitely not writing the ImportedPage objects on top of each other.

When the page first draws it appears okay. But when you force a redraw (e.g.
zoom), the text overlaps. For example, in the img I attached, the last two
lines are:
Carboyhydrates (g): 63
Carbohydrate Units: 4

If I only call addTemplate up to a certain point on the y-axis, text will
redraw fine. But if I continue adding all the PDFs I need, then the redraw
gets messy. The original PDFs that I am adding look fine and do not exhibit
this problem. All PDFs have an embedded TT font which is being used for the
text.

I am wondering if anyone has seen a problem like this and can suggest
solutions - could this be a problem in how the PDFs are created? how I am
reading them and writing them? how I can diagnose the problem? a known
problem in Acrobat?

Any help would be appreciated

thx
andy

-----Original Message-----
From: Bruno Lowagie [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 3:36
To: Andy Kriger
Cc: Itext
Subject: Re: [iText-questions] munged text?


Andy Kriger wrote:

>I am building a PDF by:
>1) opening a PDF to be used as a template
>2) opening other PDFs (28 total), reading them in, writing them to the
>template using addTemplate
>3) writing out the template PDF
>(I'm not including code because this is pretty standard stuff taken from
the
>tutorial and example code)
>
>The resulting PDF has text that overlaps (see the attached PNG file). The
>overlaps show up on-screen and in print. Does anyone have any ideas why
this
>is happening and how can fix the problem?
>
You seem to be writing the ImportedPage-object over eachother.
What do you want to achieve? Do you want them all next to eachother
(in that case, you should add each ImportedPage at different coordinates)?
Or do you want each ImportedPage on a new page (call newPage() every
time you added an ImportedPage to the document).



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to