Dim PDFjetPDF1 As PDFjetPDF=CreateBasePDFDocument
Dim PDFPage As PDFjetPage
PDFPage.Initialize(PDFjetPDF1, PDFjetConstants1.PageSize.Executive_PORTRAIT)
Dim PDFFont1 As PDFjetFont
PDFFont1.Initialize(PDFjetPDF1, PDFjetConstants1.CoreFont.HELVETICA)
PDFFont1.SetSize(45)
Dim PDFFont2 As PDFjetFont
PDFFont2.Initialize(PDFjetPDF1, PDFjetConstants1.CoreFont.HELVETICA_BOLD)
PDFFont2.SetSize(75)
Dim PDFFont2 As PDFjetFont
PDFFont2.Initialize(PDFjetPDF1, PDFjetConstants1.CoreFont.HELVETICA_BOLD)
PDFFont2.SetSize(75)
AddTextCentered(PDFPage,PDFFont1,LabelDate,40)
AddTextCentered(PDFPage,PDFFont1,labelContract,90)
AddTextCentered(PDFPage,PDFFont2,LabelTypeCode,160)
AddTextCentered(PDFPage,PDFFont2,LabelTypeSize,245)
AddTextCentered(PDFPage,PDFFont1,LabelTypeName,310)
PDFjetPDF1.Close