public static PdfDocument Open(byte[] fileBytes, ParsingOptions options = null) => PdfDocumentFactory.Open(fileBytes, options);
public static PdfDocument Open(string filename, ParsingOptions options = null) => PdfDocumentFactory.Open(filename, options);
/// <summary> /// Creates a <see cref="PdfDocument"/> for reading from the provided stream. /// The caller must manage disposing the stream. The created PdfDocument will not dispose the stream. /// </summary> /// <param name="stream"> /// A stream of the file contents, this must support reading and seeking. /// The PdfDocument will not dispose of the provided stream. /// </param> /// <param name="options">Optional parameters controlling parsing.</param> /// <returns>A <see cref="PdfDocument"/> providing access to the file contents.</returns> public static PdfDocument Open(Stream stream, ParsingOptions options = null) => PdfDocumentFactory.Open(stream, options);