Skip to content

PdfFile.IsPdfFileOwnerPassword Method

IsPdfFileOwnerPassword(Stream,String)

Verifies if the password matches the owner password set on the PDF file.

C#
public static bool IsPdfFileOwnerPassword(Stream stream, string password)

Parameters

stream Stream

Stream that contains the PDF file.

password String

Password to verify.