I'm attempting to create a PDF document. My problem is that it seems that I can't properly set the page size. I'm using VB.Net (Visual Studio 2005), with code like the following...
Dim pdf As New Aspose.Pdf.Pdf()
Dim license As New Aspose.Pdf.License
pdf.PageSetup.PageHeight = Aspose.Pdf.PageSize.LetterHeight
pdf.PageSetup.PageWidth = Aspose.Pdf.PageSize.LetterWidth
Dim section As New Aspose.Pdf.Section()
pdf.Save("TestDocuement.pdf", Aspose.Pdf.SaveType.OpenInAcrobat, Response)
When I view the page in Adobe Reader 7.0, and if I look at Document Properties, the page size is always 8.26 x 11.69 inches. I have played around with other values for the pageheight and pagewidth, but it doesn't seem to make any difference. This screws up the margins and the display. What I really want is 8.5 x 11 inches.
My Aspose.Pdf.dll is dated 4/3/2006 and file properties indicates file version 2.9.6.
Any thoughts or recommendations?