namespace UglyToad.PdfPig { using System.Collections.Generic; using Logging; /// /// Configures options used by the parser when reading PDF documents. /// public class ParsingOptions { /// /// A default with set to false. /// public static ParsingOptions LenientParsingOff { get; } = new ParsingOptions { UseLenientParsing = false }; /// /// Should the parser ignore issues where the document does not conform to the PDF specification? /// public bool UseLenientParsing { get; set; } = true; private ILog logger = new NoOpLog(); /// /// The used to record messages raised by the parsing process. /// public ILog Logger { get => logger ?? new NoOpLog(); set => logger = value; } /// /// The password to use to open the document if it is encrypted. If you need to supply multiple passwords to test against /// you can use . The value of will be included in the list to test against. /// public string Password { get; set; } = string.Empty; /// /// All passwords to try when opening this document, will include any values set for . /// public List Passwords { get; set; } = new List(); } }