Did you find this guide helpful?
Some test text!
Xamarin / Changelog / v6.8.0
Version: 6.8.0
Release Date: April 4, 2018
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 .
pdftron.PDF.Controls.FindTextOverlay
and pdftron.PDF.Controls.SearchToolbar
for easy text search pdftron.PDF.Tools.CustomRelativeLayout
for easy UI views on top of PDFViewCtrl PDFNet.Initialize
no 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.PDFViewCtrl.DownloadTypes
=> PDFViewCtrl.DownloadState
PDFViewCtrl.PageChangeType
=> PDFViewCtrl.PageChangeState
ToolManager.Mode
=> ToolManager.ToolMode.Value
PDFViewCtrl
has been updated to match native platform conventionP0
, P1
and so onPDFViewCtrl.RenderingStarted
and PDFViewCtrl.RenderingFinished
events is now EventArgs
PDFViewCtrl.OnSetDoc
=> PDFViewCtrl.DocumentLoad
and the second parameter is now EventArgs
PDFViewCtrl.TextSearchEnded
=> PDFViewCtrl.TextSearchEnd
and PDFViewCtrl.TextSearchEndedEventArgs
=> PDFViewCtrl.TextSearchEndEventArgs
AnnotationToolbar.Shown
=> AnnotationToolbar.AnnotationToolbarShown
AnnotationToolbar.Closed
=> AnnotationToolbar.AnnotationToolbarClosed
ToolManager.convToAnnot
=> TypeConvertHelper.ConvAnnotToManaged
ThumbnailSlider.SetPDFViewCtrl
=> ThumbnailSlider.SetPdfViewCtrl
AnnotationToolbar.Setup
now only takes in ToolManagerPDFViewCtrl.GetHandleInternal()
is removed. Instead, PDFViewCtrl
extends the native PDFViewCtrl
and can be passed into native functions directlyToolManager.SetBuiltInPanModeToolbarEnable
is removed. Instead, use the new SearchToolbar
and FindTextOverlay
pdftron.PDF.PDFViewCtrl
now extends the native PTPDFViewCtrl
class and fully support iOS 11 and iPhone Xpdftron.PDF.Controls.ThumbnailsViewController
: a thumbnails grid view that allows rearrange and page deletion pdftron.PDF.Controls.ThumbnailSliderViewController
: a bottom navigation bar with preview thumbnails pdftron.PDF.Controls.FindTextToolbar
: a toolbar for text search pdftron.PDF.PTPrint
class for easy printing, see sample project for detailsPDFViewCtrl
, use flag e_postprocess_night_mode
in PDFViewCtrl.SetColorPostProcessMode
PDFNet.Initialize
no 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.pdftron.PDF.PDFViewCtrl
class has been moved under namespace pdftron.PDF
, for example, pdftron.PDF.PDFViewCtrl.PagePresentationModes
will now be pdftron.PDF.PagePresentationModes
, values are unchangedPDFViewCtrl.Doc
property now expects type PTPDFDoc
, you can update the code as follows:pdftron.PDF.PDFDoc docToOpen;
...
mPdfViewCtrl.Doc = TypeConvertHelper.ConvPDFDocToNative(docToOpen);
docToOpen = TypeConvertHelper.ConvPDFDocToManaged(mPdfViewCtrl.Doc);
ToolManager
annotation change events now returns type PTAnnot
, you can update the code as follows:pdftron.PDF.Annot annot = TypeConvertHelper.ConvAnnotToManaged(e.Annotation);
ToolManager.AnnotationModificationEventArgs
=> pdftron.PDF.Tools.AnnotationModificationEventArgs
PDViewCtrl.PageNumberChanged
=> PDFViewCtrl.PageNumberChangedFrom
with args PageNumberChangedFromEventArgs
PDViewCtrl.TextSearchEnded
=> PDFViewCtrl.TextSearchResult
with args TextSearchResultEventArgs
PDFViewCtrl.DocumentDownloaded
=> PDFViewCtrl.DownloadEventType
with args DownloadEventTypeEventArgs
PDFViewCtrl.SetColorPostProcessMode
takes in pdftron.PDF.ColorPostProcessMode
instead of PDFRasterizer.ColorPostProcessMode
ToolManager.ToolChanged
=> ToolManager.ToolManagerToolChanged
AnnotationToolbar.SetToolManager
=> ToolManager
propertyAnnotationToolbar.ToolShouldGoBackToPan
=>mAnnotationToolbar.ToolShouldGoBackToPan = (annotationToolbar) =>
{
return false;
};
PDFViewCtrl.HighlightSelection
now takes in PTSelection
which is obtained through TextSearchResultEventArgs.Selection
, and PDFViewCtrl.Selection
is no longer neededPDFViewCtrl.OpenURL
=> PDFViewCtrl.OpenUrlAsync
pdftronprivate.AnnotationViewControllerAnnotaionSelectedEventArgs
=> AnnotationViewControllerAnnotaionSelectedEventArgs
pdftronprivate.OutlineViewControllerBookmarkSelectedEventArgs
=> OutlineViewControllerOutlineSelectedEventArgs
pdftronprivate.BookmarkViewControllerBookmarkSelectedEventArgs
=> BookmarkViewControllerBookmarkSelectedEventArgs
OnSetDoc
used to have PDFDoc
as the sender, but is now changed to PDFViewCtrl
as the sender, OnSetDocEventArgs.Doc
is the PDFDoc
:mPdfViewCtrl.OnSetDoc += (sender, e) =>
{
PDFDoc doc = TypeConvertHelper.ConvPdfDocToManaged(e.Doc);
// do something with the doc
};
AnnotationToolbar
constructor now takes in ToolManager
, use Auto Layout for size and positionToolManager.BackToPan()
and ToolManager.BackToPanToolAfterUse
are removed, use the following instead:mToolManager.ChangeTool(new Class(typeof(pdftron.PDF.Tools.PanTool)));
BookmarkViewController.DocPath
is no longer neededTrial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales