Table of Contents

Class ParsingOptions

Namespace
UglyToad.PdfPig
Assembly
UglyToad.PdfPig.dll

Configures options used by the parser when reading PDF documents.

public class ParsingOptions
Inheritance
ParsingOptions
Inherited Members

Constructors

ParsingOptions()

public ParsingOptions()

Properties

ClipPaths

Should the parser apply clipping to paths? Defaults to false.

Bezier curves will be transformed into polylines if clipping is set to true.

public bool ClipPaths { get; set; }

Property Value

bool

LenientParsingOff

A default ParsingOptions with UseLenientParsing set to false.

public static ParsingOptions LenientParsingOff { get; }

Property Value

ParsingOptions

Logger

The ILog used to record messages raised by the parsing process.

public ILog Logger { get; set; }

Property Value

ILog

Password

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 Passwords. The value of Password will be included in the list to test against.

public string Password { get; set; }

Property Value

string

Passwords

All passwords to try when opening this document, will include any values set for Password.

public List<string> Passwords { get; set; }

Property Value

List<string>

SkipMissingFonts

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; }

Property Value

bool

UseLenientParsing

Should the parser ignore issues where the document does not conform to the PDF specification?

public bool UseLenientParsing { get; set; }

Property Value

bool