/* ----------------------------------------------------------------- */ /// /// DocumentReader /// /// <summary> /// Initializes a new instance of the DocumentReader class with /// the specified arguments. /// </summary> /// /// <param name="src">Path of the PDF file.</param> /// <param name="password">Password query or string.</param> /// <param name="options">Other options.</param> /// /* ----------------------------------------------------------------- */ private DocumentReader(string src, QueryMessage <IQuery <string>, string> password, OpenOption options ) { Core = PdfiumReader.Create(src, password, options); }
/* ----------------------------------------------------------------- */ /// /// DocumentReader /// /// <summary> /// Initializes a new instance of the DocumentReader class with /// the specified arguments. /// </summary> /// /// <param name="src">Path of the PDF file.</param> /// <param name="query">Password query.</param> /// <param name="fullaccess">Requires full access.</param> /// <param name="io">I/O handler.</param> /// /* ----------------------------------------------------------------- */ public DocumentReader(string src, IQuery <string> query, bool fullaccess, IO io) : base(io) { Debug.Assert(io != null); _core = PdfiumReader.Create(src, query, fullaccess, io); Debug.Assert(_core != null); File = _core.File; Pages = _core.Pages; Metadata = _core.Metadata; Encryption = _core.Encryption; Attachments = null; // not implemented }