Genius again!
Thanks for your help, Paulo. I've got everything I need now.
- Kent
----------------------------------------
Tables are created by default at 70% width relative to the page margins. You
need:
PdfPTable.WidthPercentage = 100
Paulo
----- Original Message -----
From: "Kent Matthew"
To:
Sent: Friday, March 07, 2008 6:13 PM
Subject: Re: [itextsharp-questions] Setting left and right page margins
Hi Paulo,
That's good news! Could you tell me what I'm doing wrong? I've attached an
example of the PDF I'm able to generate with margins that are too big, a PDF
which has the smaller (half-inch) margins I'm looking for (not generated by
iTextSharp), and the code I'm using to generate the PDF. Even though I'm
using the line
Dim doc As Document = New Document(PageSize.LETTER, 36, 36, 36, 36)
maybe I'm screwing it up elsewhere in the code. I figure if you can see all
the code in context, you'll be able to pinpoint my error.
Thank you for your help!
- Kent
----------------------------------------
Yes, it works.
Paulo
-----Original Message-----
On Behalf Of Kent Matthew
Sent: Thursday, March 06, 2008 10:49 PM
Subject: [itextsharp-questions] Setting left and right page margins
I'm using the .NET version of iText in a VB.NET program and
I'm trying to set the margins of my PDF using the following code
Dim doc As Document = New Document(PageSize.LETTER, 36, 36, 36, 36)
The only problem is that it doesn't work. The top margin is
set correctly, but the left and right margins remain
unaffected regardless of what point sizes I use. Is this a
feature that only works in Java and not in .NET or am I doing
something wrong?
Thanks,
- Kent
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
itextsharp-questions mailing list
itextsharp-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions