Exemplo n.º 1
0
 /// <summary>
 /// Opens a file and creates a <see cref="PdfDocument"/> for reading from the provided file path.
 /// </summary>
 /// <param name="filePath">The full path to the file location of the PDF file.</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(string filePath, ParsingOptions options = null) => PdfDocumentFactory.Open(filePath, options);
Exemplo n.º 2
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);
Exemplo n.º 3
0
 /// <summary>
 /// Creates a <see cref="PdfDocument"/> for reading from the provided file bytes.
 /// </summary>
 /// <param name="fileBytes">The bytes of the PDF file.</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(byte[] fileBytes, ParsingOptions options = null) => PdfDocumentFactory.Open(fileBytes, options);