2018-01-11 03:49:32 +08:00
|
|
|
|
namespace UglyToad.PdfPig
|
2017-11-10 03:14:09 +08:00
|
|
|
|
{
|
|
|
|
|
using Logging;
|
|
|
|
|
|
2018-01-07 20:37:48 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Configures options used by the parser when reading PDF documents.
|
|
|
|
|
/// </summary>
|
2017-11-10 03:14:09 +08:00
|
|
|
|
public class ParsingOptions
|
|
|
|
|
{
|
2018-01-07 20:37:48 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Should the parser ignore issues where the document does not conform to the PDF specification?
|
|
|
|
|
/// </summary>
|
2017-11-10 03:14:09 +08:00
|
|
|
|
public bool UseLenientParsing { get; set; } = true;
|
|
|
|
|
|
2018-01-07 20:37:48 +08:00
|
|
|
|
private ILog logger = new NoOpLog();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The <see cref="ILog"/> used to record messages raised by the parsing process.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ILog Logger
|
|
|
|
|
{
|
|
|
|
|
get => logger ?? new NoOpLog();
|
|
|
|
|
set => logger = value;
|
|
|
|
|
}
|
2017-11-10 03:14:09 +08:00
|
|
|
|
}
|
|
|
|
|
}
|