namespace UglyToad.PdfPig
{
using System.Collections.Generic;
using Logging;
///
/// Configures options used by the parser when reading PDF documents.
///
public sealed class ParsingOptions
{
///
/// A default with set to false.
///
public static ParsingOptions LenientParsingOff { get; } = new ParsingOptions
{
UseLenientParsing = false
};
///
/// Should the parser apply clipping to paths?
/// Defaults to .
/// Bezier curves will be transformed into polylines if clipping is set to .
///
public bool ClipPaths { get; set; } = false;
///
/// Should the parser ignore issues where the document does not conform to the PDF specification?
///
public bool UseLenientParsing { get; set; } = true;
///
/// The used to record messages raised by the parsing process.
///
public ILog Logger { get; set; } = new NoOpLog();
///
/// 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();
///
/// Skip extracting content where the font could not be found, will result in some letters being skipped/missed
/// but will prevent the library throwing where the source PDF has some corrupted text. Also skips XObjects like
/// forms and images when missing.
///
public bool SkipMissingFonts { get; set; } = false;
}
}