here is a snippet of code:
Dim gotoAction As PDFGoToAction = New PDFGoToAction()
' //PDF4NET 5: gotoAction.Destination = new PDFPageDestination();
gotoAction.Destination = New PDFPageDirectDestination()
'//PDF4NET 5: gotoAction.Destination.Page = destinationPage;
(gotoAction.Destination as PDFPageDirectDestination).Page = destinationPage;
The problem I have is with the following line:
(gotoAction.Destination as PDFPageDirectDestination).Page = destinationPage;
In C# casting this object in this manner is allowed but in Visual Basic it is not. I've been searching online for examples and couldn't find the visual basic version of the statement above.