cpdf-source/docsplits/pysplits/c16.tex

20 lines
828 B
TeX
Raw Permalink Normal View History

2024-04-17 02:14:40 +02:00
def JSONUTF8(utf8):
"""Set the JSON output format. If true, the newer UTF8 format is used.
Default: False."""
2022-01-23 14:06:53 +01:00
def outputJSON(filename, parse_content, no_stream_data, decompress_streams, pdf):
2021-09-01 19:41:10 +02:00
"""Output a PDF in JSON format to the given filename. If parse_content is
2022-01-23 14:06:53 +01:00
True, page content is parsed. If decompress_streams is True, streams are
decompressed. If no_stream_data is True, all stream data is suppressed
entirely."""
def outputJSONMemory(pdf, parse_content, no_stream_data, decompress_streams):
"""outputJSONMemory(pdf, parse_content, no_stream_data, decompress_stream)
is like outputJSON, but it write to a buffer in memory)."""
def fromJSON(filename):
"""Load a PDF from a JSON file given its filename."""
def fromJSONMemory(data):
""" Load a PDF from JSON data in memory."""