PDFObjectsParser¶
-
PDFObjectsParser.
classify_steam
(stream_iter: utils.ObjectIter, letter=None)¶ Classifies and parses the given stream
Parameters: - stream_iter – A stream whose 1st character indicates its type
- letter – Passes the letter that was consumed elsewhere
Returns: A PDF Object or a standard object
-
PDFObjectsParser.
extract_array
(stream: utils.ObjectIter) → PDFObjects.PDFArray¶ Extracts array from steam
Parameters: stream – ObjectIter Returns: PDFArray
-
PDFObjectsParser.
extract_name
(stream: utils.ObjectIter) → bytes¶ Extracts the next name from the iterator (7.3.5 PDF 32000-1:2008)
Parameters: stream – A stream whose forward slash / was just consumed Returns: Bytes containing the name
-
PDFObjectsParser.
parse_dictionary
(pdf_stream) → PDFObjects.PDFDict¶ Parses PDFDictionary objects
Parameters: pdf_stream – Object Stream Returns: PDFObjects.PDFDict
object
-
PDFObjectsParser.
parse_literalStrings
(stream: utils.ObjectIter) → bytes¶ Parses string literals (7.3.4.2) PDF 32000-1:2008
Parameters: stream – A stream whose opening round bracket ( was just consumed Returns: The string literal including the round brackets
-
PDFObjectsParser.
parse_numeric
(init: bytes, stream: utils.ObjectIter)¶ Parses numeric objects
Parameters: - init – The char that
PDFObjectsParser.classify_steam()
already consumed - stream – Object Stream
Returns: A number or a reference object
- init – The char that