I copied and pasted the console application code in windows form but it
produces some errors:
1 'Create' is not a member of 'System.Drawing.Font'
2 'StandardType1Font' is not a member of 'System.Drawing.Font'
3 Variable 'e' hides a variable in an enclosing block.
I code in VB.net.
It seems these are basic namespace collision problems. If you expand
the namespace qualifier the errors should go away. For example:
pdftron.PDF.Font myfont = ...
Dim myfont As pdftron.PDF.Font = ...
Font myfont = ...
Dim myfont As Font = ...