Class ContentParser
Parses content streams into operations (ISO 32000-2, 7.8.2).
public static class ContentParser
- Inheritance
-
ContentParser
- Inherited Members
Methods
Parse(byte[], bool)
Parses decoded content stream bytes into operations. The sequence is evaluated lazily. Malformed syntax is read
tolerantly, as viewers do (unknown tokens become operators, unterminated strings, arrays and dictionaries end at
the end of the data). Operands that cannot be parsed at all (nested deeper than the parser allows) end the
sequence there, or throw a PdfParseException if strict is true.
public static IEnumerable<ContentOperation> Parse(byte[] content, bool strict = false)