Apryse type conversion allows you to call C functions directly from C#.
Apryse for Xamarin SDK takes advantage of PInvoke which allows calling C functions from C# directly. This applies to all core classes that are shared between Xamarin.Android and Xamarin.iOS. However, the PDFViewCtrl
class and PDFViewCtrlTools library are direct Xamarin bindings from the source code. This article will walk you through how to deal with managed type and binding types.
Key concepts:
pdftron
namespacepdftronprivate
namespaceA TypeConvertHelper
class is provided to convert between managed types and binding types. For example:
From pdftronprivate.PDF.PDFDoc
to pdftron.PDF.PDFDoc
:
From pdftron.PDF.PDFDoc
to pdftronprivate.PDF.PDFDoc
:
From pdftronprivate.PDF.Annot
to pdftron.PDF.Annot
:
From pdftron.PDF.Annot
to pdftronprivate.PDF.Annot
:
Apryse for Xamarin SDK takes advantage of PInvoke which allows calling C functions from C# directly. This applies to all core classes that are shared between Xamarin.Android and Xamarin.iOS. However, the PDFViewCtrl
class and PDFViewCtrlTools library are direct Xamarin bindings from the source code. This article will walk you through how to deal with managed type and binding types.
Key concepts:
pdftron
namespacepdftronprivate
namespaceA TypeConvertHelper
class is provided to convert between managed types and binding types. For example:
From pdftronprivate.PTPDFDoc
to pdftron.PDF.PDFDoc
:
From pdftron.PDF.PDFDoc
to pdftronprivate.PTPDFDoc
:
From pdftronprivate.PTAnnot
to pdftron.PDF.Annot
:
From pdftron.PDF.Annot
to pdftronprivate.PTAnnot
:
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales