namespace UglyToad.PdfPig
{
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.
///
public string Password { get; set; } = string.Empty;
}
}