Skip to content

App crashes when modifying PDF #98

Description

@AnasAlamin

i'm getting this below error while trying to modify pdf.

 ERROR  TypeError: null is not an object (evaluating '_PDFLib.default.modifyPDF')

the error is produced when i call write() as shown in the below code snippet

PDFDocument
  .modify(filePath)
  .modifyPage(page1)
  .write() // Returns a promise that resolves with the PDF's path
  .then(path => {
       console.log('PDF modified at: ' + path);
   });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions