Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9616 Reply

    chris

    I implemented a simple viewer in an android app to display a pdf from the download folder, with the following code:

    When now making changes like annotating and trying to save in onDestroy with

    I receive the following logs and exceptions and nothing is saved:

    Am I missing something out? Any help or hints would be appreciated 🙂

    #9619 Reply

    Dr. Plug
    Moderator

    Hello Chris,

    Thank you for posting your question. This is because you should first set permissions for writing PDF files.
    Note that there’s a method named setEncrpyt in the PDFDocument class.

    So please use the following code snippet for saving your PDF files:

    I hope this helps.

    • This reply was modified 1 year, 3 months ago by  Dr. Plug.
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Exception when trying to save an annotated pdf
Your information: