Why is my Pin a number?
In older versions of ABCpdf the Pin property was a number. To
assign a Corner to the Pin property you needed to cast the value.
So you might find code of this form.
theRect.Pin = (int)XRect.Corner.TopRight;
theRect.Pin = CInt(XRect.Corner.TopRight)
In Version 8 the Pin property has been changed to a true
enumeration. This means you can assign the Corner directly.
theRect.Pin = XRect.Corner.TopRight;
theRect.Pin = XRect.Corner.TopRight
If your code is bound to integers rather than enumerations then
it is safe to cast the number to a Corner.
theRect.Pin = (XRect.Corner)myIntegerValue;
theRect.Pin = CType(myIntegerValue, XRect.Corner)