John:
Here is some sample code creating a Left Aligned Table with 2 Columns and a
Fixed Width:
# iTextSharp Defines
New-Variable cAlignCenter -value 1 -Option Constant
New-Variable cAlignLeft -value 0 -Option Constant
$oHdrTable = New-Object iTextSharp.text.pdf.PdfPTable(2)
$oHdrTable.TotalWidth = 400
$oHdrTable.LockedWidth = $true
$oHdrTable.HorizontalAlignment = $cAlignLeft
$aWidths = 1,3
$Rslt=$oHdrTable.SetWidths($aWidths)
$oCell = New-Object iTextSharp.text.pdf.PDFPcell("GTIN:")
$oCell.border=0
$Rslt=$oHdrTable.AddCell($oCell)
$oCell = New-Object iTextSharp.text.pdf.PDFPcell($sGTIN)
$ oCell.border=0
$Rslt=$oHdrTable.AddCell($oCell)
Repeat as often as necessary
Then write the Table to the PDF
$Rslt=$script:oPDFRpt.Add($oHdrTable)
Tim Bernhardson
Technical Services Manager
Sun-Maid Growers of California
7273 Murray Drive, Ste 18
Stockton, CA 95210
Direct Telephone: 1-209-472-8547
Facsimile: 1-209-482-8448
E-Mail: tbern...@sunmaid.com<mailto:tbern...@sunmaid.com>
Web: www.sunmaid.com<http://www.sunmaid.com>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php