示例#1
0
 public static PdfDocument Open(byte[] fileBytes, ParsingOptions options = null) => PdfDocumentFactory.Open(fileBytes, options);
示例#2
0
 public static PdfDocument Open(string filename, ParsingOptions options  = null) => PdfDocumentFactory.Open(filename, options);
示例#3
0
 /// <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);