DocumentOpen Method |
Open a PDF document.
Documents opened with this method are read-only and cannot be modified.public static Document Open( Stream stream, string password )
The stream where the PDF document is stored.
Read access is required.
Exception | Condition |
---|---|
PasswordException | if the file is encrypted and the password is not valid. |
IOException | Error reading from the stream. |
CorruptException | if the file is corrupt or not a PDF. |
UnsupportedFeatureException | if the file is a PDF collection. |
UnsupportedFeatureException | if the PDF contains unrendered XFA fields. |
ConformanceException | if the document's conformance level is not supported |
ArgumentNullException | if stream is . |