Frameworks
React Native
Flutter
Package samples
Cookbook
Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
By default, PDFViewCtrl
shows all annotations on PDF document. If you want to hide a particular annotation on PDFViewCtrl
, or hide all annotations on PDFViewCtrl
, you can hide annotations as follows:
To show a hidden annotation in PDFViewCtrl
, call showAnnotation(Annot)
:
To hide an annotation in PDFViewCtrl
, call hideAnnotation(Annot)
.
After hide and show an annotation in PDFViewCtrl
, You must call update
to redraw the area covered with the given annotation.
Alternatively, you can show/hide all annotations in PDFViewCtrl
by calling setDrawAnnotations(boolean)
. This method toggles the visibility of annotations and form fields.
For example, disabling all annotations and form fields from rendering:
After toggling annotation and form fields visibility in PDFViewCtrl
, You must call update
to redraw the pdf content.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales