I am a relatively newer user of iText, and need
assistance in resolving two issues:

(1) I want to gray fill a PdfPCell, and the
setGrayFill() method of PdfPCell does not seem to be
working. It takes a float which indicates the grayfill
value desired for the cell. I have tried various
values, and none seem to work. What is the range in
values that this method accepts? Anyone else having a
problem with this? I searched the 2002 archives and
didn't find any one asking about this issue.

(2) The Document in question, which I create using the
following line of code,

Document document = new Document(PageSize.A4.rotate(),
9, 9, 9, 9); //0.125" margins

looks perfect when viewing it in Acrobat Reader.
However, both the print preview and actual printed
versions are less than perfect. Unless the "Shrink
oversized pages to paper size" option is not used in
Acrobat Reader, document content is lost on both the
left and right margins. Although using this Acrobat
Reader option fixes the lost content problem, the top
and bottom margins are then increased, which I do not
want. I've played around with this quite a bit, and
can't seem to figure out the cause of this. Is there a
problem with the PdfPTable method
setWidthPercentage()? I'm currently using a value of
100 for the method (making sure the relative widths of
applicable columns also add up to 100), to cause the
tables to span the entire page, but the result causes
the page content to run off both sides of the page.
Reducing the value of 100 to 90 or 95 still causes the
left portions of the tables to run off the page. In
addition, changing the margins of the Document to, for
example, (18, 18, 18, 18), also does not fix this
problem. Do you know of any solution to this?

Thank you for your time. I appreciate it.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to