cpdf-source/javascriptsplits/c16.tex

16 lines
659 B
TeX
Raw Normal View History

2022-05-18 18:47:31 +02:00
// CHAPTER 15. PDF and JSON
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Outputs a PDF in JSON format to the given filename. If parse_content is
true, page content is parsed. If no_stream_data is true, all stream data is
suppressed entirely. If decompress_streams is true, streams are decompressed. */
function outputJSON(filename, parse_content, no_stream_data, decompress_streams, pdf)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Like outputJSON, but it writes to a byte array in memory. */
function outputJSONMemory(parse_content, no_stream_data, decompress_streams, pdf)
2022-05-12 17:57:13 +02:00
/** Loads a PDF from a JSON file given its filename. */
2022-05-18 18:47:31 +02:00
function fromJSON(filename)
2022-05-12 17:57:13 +02:00
/** Loads a PDF from a JSON file in memory. */
2022-05-18 18:47:31 +02:00
function fromJSONMemory(data)