Bruno,
Nice to know that I could show you the exact problem.
If not tables, is there anything that we can use?
As it is seen in the PDFs, we have label and data in front of it.
Is there nay other tag that we can make use of? Is there any workaround?
Regards,
Leena
Bruno,
The mail client failed to send th email as the attachment was .zip
I am attaching the files to the message and resending it.
Regards,
Leena
-----------------------------------------------------------------------------------------
Bruno,
Please find attached the two xmls and the generated pdfs as well.
I have zipped the files together hoping that the mail client will not
add extra newlines in the page.
1. We are using the following method for parsing:
XmlParser.parse(objDocument, objInputSource);
Is this class/method introducing the problem?
2. The difference in these two xml is in the data for the last table
printed in the PDF. This makes it spill over to the next page and then
little data is printed on the next page and then the page break is
introduced.
Please refer the PDFs I have attached. In one there are 6 pages and in
another
there are 2. Actually we are trying to print 2 records only.
Sorry for all the trouble. I hope this time you can see the error in
the PDF
and it will be easier for you to suggest.
Regards,
Leena
Leena Kulkarni wrote: > Both are same except in the last table in
error xml.xml the data is there. > We do not know why this differnce.
I removed the newlines added by my mail client. Attached are the two
PDF files generated based on these XML files. They don't look very nice
because of the way you defined the borders. Also in no_error.pdf you
have defined a leading of 1.0 instead of a value that makes sense. This
results in a row that is not high enough to show the text. Apart from
this, I don't see the problem with the newlines you were refering to.
br, Bruno
[EMAIL PROTECTED] wrote:
Bruno,
Please find attached the two xmls and the generated pdfs as well.
I have zipped the files together hoping that the mail client will not
add extra newlines in the page.
1. We are using the following method for parsing:
XmlParser.parse(objDocument, objInputSource);
Is this class/method introducing the problem?
2. The difference in these two xml is in the data for the last table
printed in the PDF. This makes it spill over to the next page and then
little data is printed on the next page and then the page break is
introduced.
Please refer the PDFs I have attached. In one there are 6 pages and in
another
there are 2. Actually we are trying to print 2 records only.
Sorry for all the trouble. I hope this time you can see the error in
the PDF
and it will be easier for you to suggest.
Regards,
Leena
Leena Kulkarni wrote: > Both are same except in the last table in
error xml.xml the data is there. > We do not know why this differnce.
I removed the newlines added by my mail client. Attached are the two
PDF files generated based on these XML files. They don't look very nice
because of the way you defined the borders. Also in no_error.pdf you
have defined a leading of 1.0 instead of a value that makes sense. This
results in a row that is not high enough to show the text. Apart from
this, I don't see the problem with the newlines you were refering to.
br, Bruno
[EMAIL PROTECTED] wrote:
Send iText-questions mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/itext-questions
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of iText-questions digest..."
Today's Topics:
1. Hey Itext, can you help Ali Alain with this >;) (Ali Alain)
2. i18n approach to footer "Page X of Y" (Paul Littlefield)
----------------------------------------------------------------------
Message: 1
Date: Mon, 31 Jul 2006 14:22:33 -0700 (PDT)
From: Ali Alain <[EMAIL PROTECTED]>
Subject: [iText-questions] Hey Itext, can you help Ali Alain with this
>;)
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
Hi Itext,
Ali thinks you're cute and gets a warm, fuzzy feeling at the slightest thought of you. In fact, Ali likes you SO much that Ali wants you to join the fun at ZEBO! This is a privilege bestowed upon only the truly deserving, and Ali thinks you are worthy.
So, what is ZEBO? Well, it's a place where cool people like you can
* Share shopping tips and ideas with your friends through shopping logs that you create.
* Find the BEST deals on the HOTTEST products.
* Create and maintain a network of friends with whom you can shop online.
* Browse our worldwide selection of shops with LOW LOW prices.
please copy and paste the full url into your web browser window.
http://www.zebo.com/ecomhtml/Registration.html?invitorId=7447111&invitationId=322098923&secId=7342427019181923
So c'mon, thank Ali for the kind words and join the fun at ZEBO!
P.S. Please put some photos of yours as well. Ali would be interested in seeing them.
You got this email because someone who knows you
sent you an invitation to join their online shopping community at ZEBO.com.
If you want to prevent any invitation emails from ZEBO members
in the future, you can copy and paste the full url into your web browser window:
http://www.zebo.com/optout.html?&[EMAIL PROTECTED]&vcode=-630022888
or send a single blank email with the subject line "BLOCK" to [EMAIL PROTECTED]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sourceforge.net/mailarchive/forum.php?forum=itext-questions/attachments/20060731/dee396ea/attachment.html
------------------------------
Message: 2
Date: Mon, 31 Jul 2006 17:28:34 -0700
From: "Paul Littlefield" <[EMAIL PROTECTED]>
Subject: [iText-questions] i18n approach to footer "Page X of Y"
To:
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
In the page events examples
http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.htm
l#examples
there is an example of printing a footer with text for page numbers as
in "Page X of Y".
http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent
/pageevents/PageNumbersWatermark.java
The code is not internationalized here and I don't see a way to do it as
the output string is built dynamically from different event handlers.
The "Page X of" text is built for each page in the onEndPage() method.
Then the string is augmented in the onCloseDocument() method with the
total page count.
Any advice on how to do this using an internationalized approach? For
example:
Object[] args = { new Integer(1), new Integer(3) };
String pageXofY = MessageBundle.getString("pageXofY");
MessageFormat format = new MessageFormat(getString(key), _locale);
String localizedString = format.format(args);
In my message.properties file:
pageXofY = Page {0} of {1}
In the meantime I'll just list the page numbers as "Page X" and drop the
"of Y" part.
Thanks!
-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sourceforge.net/mailarchive/forum.php?forum=itext-questions/attachments/20060731/80bc8abe/attachment.html
------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
End of iText-questions Digest, Vol 3, Issue 1
*********************************************
Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
