PDF4Java Reference Documentation
com.o2sol.pdf4java.core Package / PDFFile Class / isPDFFileUserPassword Method
Stream that contains the PDF file.
Password to verify.
Collapse All Expand All
In This Topic

isPDFFileUserPassword Method
In This Topic
Verifies if the password matches the user password set on the PDF file.
Syntax

    public static boolean isPDFFileUserPassword(
       Stream stream,
       java.lang.String password
    )

#### Parameters

stream
  Stream that contains the PDF file.
password
  Password to verify.

#### Return Value

True if the password is the user password, false if the password is not the user password or the file is not encrypted.
See Also

#### Reference

PDFFile Class
PDFFile Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.