Skip to content
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

Exposed a few additional APIs #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sarbogast
Copy link

Details

In order to integrate PSPDFKit into my Flutter application, I needed a few additional APIs to be exposed:

  • the restoreLastViewedPage flag to have the possibility to disable this restoration when switching from one PDF to another
  • a notification when the user leaves the annotation creation mode by clicking the close button in the annotation toolbar
  • a method to programmatically enter into annotation creation mode so that I can hide the toolbar and do this from my own UI
  • a method to programmatically jump to a specific page, to enable navigation from my own UI
  • a method to determine whether the viewer is currently displaying 2 pages or just one, in case pageLayoutMode is automatic and the viewer decides how many pages to show based on orientation

For now, custom methods are only implemented in iOS and Android, not on the web as I didn't need them there.

Acceptance Criteria

  • Before merging retest all the examples to make sure that they work on both Android and iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant