-
Notifications
You must be signed in to change notification settings - Fork 0
Enable/disable annotation editing Deo #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated by pigeon.
lib/src/api/pspdfkit_api.g.dart
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated by pigeon.
ios/Classes/api/PspdfkitApi.g.swift
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated by pigeon.
@@ -251,4 +251,11 @@ class PspdfkitWidgetControllerWeb extends PspdfkitWidgetController | |||
Future<double> getZoomScale(int pageIndex) { | |||
return pspdfkitInstance.getZoomScale(pageIndex); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pigeon method definition.
Details
This pull request introduces support for enabling and disabling annotation editing in the Nutrient Flutter plugin. The changes span Android, iOS, and Dart implementations, providing a unified API for managing annotation editing capabilities. Additionally, an example showcasing this functionality has been added to the project.
Feature Implementation: Annotation Editing
Android Changes:
enableAnnotationEditing
inPspdfkitViewImpl
to updatePdfActivityConfiguration
dynamically for enabling or disabling annotation editing.PspdfkitWidgetControllerApi
interface and its message handler to include theenableAnnotationEditing
method. [1] [2]iOS Changes:
enableAnnotationEditing
method inPspdfkitPlatformViewImpl
to modifyeditableAnnotationTypes
in the PDF view controller configuration based on the provided parameters.PspdfkitWidgetControllerApi
protocol and its message handler for the new method. [1] [2]Dart API Updates:
enableAnnotationEditing
method inPspdfkitWidgetController
and its implementations (PspdfkitWidgetControllerImpl
,PspdfkitWidgetControllerNative
, andPspdfkitWidgetControllerWeb
). [1] [2] [3] [4]Example Addition:
DisableAnnotationEditingExample
to demonstrate the usage of theenableAnnotationEditing
method, allowing users to toggle annotation editing via a button.Miscellaneous Updates:
These changes collectively enhance the PSPDFKit Flutter plugin by providing a flexible API for annotation editing, along with a practical example to help you understand and utilize the feature effectively. We will add this feature to our roadmap for future implementation.