Re: [iText-questions] How to fill the background color completely in nested table

2007-08-16 Thread Bruno Lowagie (iText)
Tom.Li wrote:
> when I use nested table with PdfPTable. A problem is that if I set the 
> background color of the inner Table(by setting the bgcolor of the 
> cells), there is always some empty space between inner table and grid of 
> outter table. How to fill the cell completely?

The 'empty space' you're seeing is the padding (the space
between the outer cell and its content). If you want to avoid it,
do outterTable.getDefaultCell().setPadding(0);
Or you could set the background color of the outer cell:
outterTable.getDefaultCell().setBackgroundColor(Color.BLACK);

Or you could wrap the nested table inside a PdfPCell instead
of adding the nested table directly with addCell(). This allows
you to change the properties of the specific cell (without
changing the properties of the default cell).

br,
Bruno

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PdfPtable and page brreaks

2007-08-16 Thread Bruno Lowagie (iText)
Stefan wrote:
> What I am getting is large amounts of page being unused as a table is 
> NOT being started except on a new page

> Any thoughts on how I can control this better

I'm not sure which options you've already tried.
Does the explanation on p178-179 of 'iText in Action' help?
There you'll find an example of the methods setSplitLate()
and setSplitRows() in action.
If this doesn't solve your problem, you might want to gain
more control over the layout by using ColumnText.
br,
Bruno

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PdfPageEventHelper Question

2007-08-16 Thread Bruno Lowagie (iText)
Tom Pessler wrote:
> I used the PageXofY.java example to create a
> PdfPageEventHelper class.  It works good for the page
> number and a "DEMO" watermark.  I am generating this
> PDF from a servlet.
> 
> There is 1 more feature that I need, for certain pages
> I need to add an additional watermark("ASSUMES
> SURRENDER").  At the time the page is generated I know
> if it needs this watermark.  What I want to do is add
> the watermark in the onEndPage method, so that method
> needs to know when to add the watermark.  I tried to
> "re-use" the document property Html Style Class.  I
> would set it to a particular value in the servlet,
> then check for this value in the onEndPage method. 
> But the value is always null in onEndPage method.  Is
> there any other technique for doing this?  Is there
> something I need to do to get the onEndPage method to
> see my "servlet updated" value of the Html Style
> Class.

I don't know if I understand the question.
Why don't you use a member variable in your subclass
of PdfPageEventHelper. Create an instance of your
custom page event class and make sure you have a
setter that allows you to change the value of the
variable. Check this value in the onEndPage method
to make whatever decision is needed (add a watermark,
don't add a watermark, add something else,...).

br,
Bruno

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Itext release for jdk1.3

2007-08-16 Thread Bruno Lowagie (iText)
Sindhu Panicker wrote:
>  Hi!
> 
> Can someone send me the itext release for jdk1.3.
> 
> I've tried to do the changes you mentioned and the top of de post but i 
> keep getting a class not found for org/bouncycastle/cms/RecipientId - do 
> i need to use a specific version of bcmail and bcprov.

Yes, download the 1.3 version of bcmail and bcprov from
bouncycastle.org.
br,
Bruno

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PdfGraphics2D.drawString() simulating bold, italic or bold-italic fonts.

2007-08-16 Thread Bruno Lowagie (iText)
Bill Ensley wrote:
> A few months ago this message was posted to the list.
> 
> I have just got around to implementing it in my branch of iText.
> 
> The fix seems to work quite well, my question:
> 
> Is there a reason why this hasn't been integrated into the main
> Trunk that I should be aware of when using it?

Not that I am aware of ;-)
You're the first one to reply to the message.
Thanks for bringing it to my attention, the
change is in the SVN repository.
br,
Bruno

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Indentation Bug

2007-08-16 Thread Bruno Lowagie (iText)
Bruno Lowagie (iText) wrote:
> Can you check if it's OK now?

Oops, just checked SVN and I see I have miss spelled your name
in a horrible way. Now I lose the right to complain about people
spelling Lowagie as Louagie, Louwagie, Lowaege, Lowagi, etc...
Sorry!
Bruno

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] Table fits Page?

2007-08-16 Thread Marcus Götze
Hello,

My table splits up into two parts even though I set the 
Table.setTableFitsPage(true).
Is there another trick of doing this? My table is smaller than the pagesize and 
should always fit on one page.

Marcus

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Table fits Page?

2007-08-16 Thread Bruno Lowagie (iText)
Marcus Götze wrote:
> Hello,
> 
> My table splits up into two parts even though I set the 
> Table.setTableFitsPage(true).
> Is there another trick of doing this? My table is smaller than the pagesize 
> and should always fit on one page.

Can you switch to PdfPTable?
br,
Bruno

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PdfGraphics2D.drawString() simulating bold, italic or bold-italic fonts.

2007-08-16 Thread Paulo Soares
The fix breaks a couple of things:

- the horizontal scaling was already there. Now it's applied twice and never 
restored
- the bold code seems a bit suspicious in that it never looks at BaseFont to 
see if the font is already bold. Maybe it doesn't matter, maybe it does, 
maybe it can't be sure. Note that the italic code does it right

Paulo

- Original Message - 
From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here" 

Sent: Thursday, August 16, 2007 9:02 AM
Subject: Re: [iText-questions] PdfGraphics2D.drawString() simulating bold, 
italic or bold-italic fonts.


> Bill Ensley wrote:
>> A few months ago this message was posted to the list.
>>
>> I have just got around to implementing it in my branch of iText.
>>
>> The fix seems to work quite well, my question:
>>
>> Is there a reason why this hasn't been integrated into the main
>> Trunk that I should be aware of when using it?
>
> Not that I am aware of ;-)
> You're the first one to reply to the message.
> Thanks for bringing it to my attention, the
> change is in the SVN repository.
> br,
> Bruno


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/