I searched and searched, but could not find any samples nor any forum posts revealing what I need to do.
I am working with a tool to create cards for games. Each card needs to be its own page. But I can't find out how to do code to get this to happen. I need each PDF page to be 59 x 89 mm in size.
Basically, this is what I want to do
Code:
Dim page As PdfPage = document.AddPage()
page.Size = PageSize.Undefined
page.Width.Millimeter = 59
page.Height.Millimeter = 89
But on the second line I directly get an
Invalid PageSize ArgumentException thrown at me. All the other size enumerators works perfectly. The last two line won't even get through the compiler. I can only touch page.Width and page.Height to set a size, but were do I then tell them it's millimeter I use.
Anyone know what I missed? I guess it must be basic, but it keeps eluding me