PDF Doc

I have a question, is there a document where it says the size of a pdf letter page, it is so that when I go to create the page I know where the maximum position is where I am going to put the lines and texts in the pdf document.
example : 400x280
Thank you

PDFDocument has an enum that helps with creating the page using the size of any of the most common standard sizes. Then you can use the Width / Height properties on the Graphic context of the page to get that values.

So, for example:

Var d As New PDFDocument(PDFDocument.PageSizes.A3)
Var g As Graphics = d.Graphics

Var pageWidth As Double = g.Width
Var pageHeight As Double = g.Height

I hope, that helps! :+1:

1 Like

Thanks for help