Version 6.8.0 Changelog (April 4, 2018)
Version: 6.8.0
Release Date: April 4, 2018
Notes
In this version, both binding projects for Xamarin.Android and Xamarin.iOS have significant changes. Please read the new tutorial on how to build the binding project for Xamarin.Android and Xamarin.iOS.
Xamarin.Android
New features
Adds
pdftron.PDF.Controls.FindTextOverlayandpdftron.PDF.Controls.SearchToolbarfor easy text searchAdds
pdftron.PDF.Tools.CustomRelativeLayoutfor easy UI views on top of PDFViewCtrlFor more new features, see Changelog for Android
Breaking changes
PDFNet.Initializeno longer accepts null or empty license keys. A valid demo or commercial license key is required at all times. Please request a trial license if you do not have one.All DLLs are distributed via NuGet package now, see Upgrading.
PDFNetAndroid package no longer comes in split form for each abi, see Building split APK.
Enum
PDFViewCtrl.DownloadTypes=>PDFViewCtrl.DownloadStatePDFViewCtrl.PageChangeType=>PDFViewCtrl.PageChangeStateToolManager.Mode=>ToolManager.ToolMode.Value
Enum value
All enum values in
PDFViewCtrlhas been updated to match native platform convention
Event
Frequently used events have been updated to have meaningful name for the event args instead of
P0,P1and so onThe second parameter for
PDFViewCtrl.RenderingStartedandPDFViewCtrl.RenderingFinishedevents is nowEventArgsPDFViewCtrl.OnSetDoc=>PDFViewCtrl.DocumentLoadand the second parameter is nowEventArgsPDFViewCtrl.TextSearchEnded=>PDFViewCtrl.TextSearchEndandPDFViewCtrl.TextSearchEndedEventArgs=>PDFViewCtrl.TextSearchEndEventArgsAnnotationToolbar.Shown=>AnnotationToolbar.AnnotationToolbarShownAnnotationToolbar.Closed=>AnnotationToolbar.AnnotationToolbarClosed
Changed
ToolManager.convToAnnot=>TypeConvertHelper.ConvAnnotToManagedThumbnailSlider.SetPDFViewCtrl=>ThumbnailSlider.SetPdfViewCtrlAnnotationToolbar.Setupnow only takes in ToolManager
Removed
PDFViewCtrl.GetHandleInternal()is removed. Instead,PDFViewCtrlextends the nativePDFViewCtrland can be passed into native functions directlyToolManager.SetBuiltInPanModeToolbarEnableis removed. Instead, use the newSearchToolbarandFindTextOverlay
Xamarin.iOS
New features
pdftron.PDF.PDFViewCtrlnow extends the nativePTPDFViewCtrlclass and fully support iOS 11 and iPhone XAdds a new annotation style picker
Adds
pdftron.PDF.Controls.ThumbnailsViewController: a thumbnails grid view that allows rearrange and page deletionAdds
pdftron.PDF.Controls.ThumbnailSliderViewController: a bottom navigation bar with preview thumbnailsAdds
pdftron.PDF.Controls.FindTextToolbar: a toolbar for text searchAdds
pdftron.PDF.PTPrintclass for easy printing, see sample project for detailsAdds new night mode to
PDFViewCtrl, use flage_postprocess_night_modeinPDFViewCtrl.SetColorPostProcessModeRTL support for free text annotations
Sample project updated to use Auto Layout
For more new features, see Changelog for iOS
Breaking changes
PDFNet.Initializeno longer accepts null or empty license keys. A valid demo or commercial license key is required at all times. Please request a trial license if you do not have one.All DLLs are distributed via NuGet package now, see Upgrading.
Enum
All enums in
pdftron.PDF.PDFViewCtrlclass has been moved under namespacepdftron.PDF, for example,pdftron.PDF.PDFViewCtrl.PagePresentationModeswill now bepdftron.PDF.PagePresentationModes, values are unchanged
Type mapping
PDFViewCtrl.Docproperty now expects typePTPDFDoc, you can update the code as follows:
ToolManagerannotation change events now returns typePTAnnot, you can update the code as follows:
Event
ToolManager.AnnotationModificationEventArgs=>pdftron.PDF.Tools.AnnotationModificationEventArgsPDViewCtrl.PageNumberChanged=>PDFViewCtrl.PageNumberChangedFromwith argsPageNumberChangedFromEventArgsPDViewCtrl.TextSearchEnded=>PDFViewCtrl.TextSearchResultwith argsTextSearchResultEventArgsPDFViewCtrl.DocumentDownloaded=>PDFViewCtrl.DownloadEventTypewith argsDownloadEventTypeEventArgsPDFViewCtrl.SetColorPostProcessModetakes inpdftron.PDF.ColorPostProcessModeinstead ofPDFRasterizer.ColorPostProcessModeToolManager.ToolChanged=>ToolManager.ToolManagerToolChangedAnnotationToolbar.SetToolManager=>ToolManagerpropertyAnnotationToolbar.ToolShouldGoBackToPan=>
PDFViewCtrl.HighlightSelectionnow takes inPTSelectionwhich is obtained throughTextSearchResultEventArgs.Selection, andPDFViewCtrl.Selectionis no longer neededPDFViewCtrl.OpenURL=>PDFViewCtrl.OpenUrlAsyncpdftronprivate.AnnotationViewControllerAnnotaionSelectedEventArgs=>AnnotationViewControllerAnnotaionSelectedEventArgspdftronprivate.OutlineViewControllerBookmarkSelectedEventArgs=>OutlineViewControllerOutlineSelectedEventArgspdftronprivate.BookmarkViewControllerBookmarkSelectedEventArgs=>BookmarkViewControllerBookmarkSelectedEventArgs
EventArgs
sender is added to all events, for example,
OnSetDocused to havePDFDocas the sender, but is now changed toPDFViewCtrlas the sender,OnSetDocEventArgs.Docis thePDFDoc:
Changed
AnnotationToolbarconstructor now takes inToolManager, use Auto Layout for size and position
Removed
ToolManager.BackToPan()andToolManager.BackToPanToolAfterUseare removed, use the following instead:
BookmarkViewController.DocPathis no longer needed
Last updated
Was this helpful?