2021-06-18 15:19:43 +02:00
|
|
|
/* CHAPTER 15. PDF and JSON */
|
|
|
|
|
2024-04-16 03:44:25 +02:00
|
|
|
/* Set the JSON output format. If true, the newer UTF8 format is used. Default:
|
|
|
|
* false. */
|
2024-03-22 19:56:54 +01:00
|
|
|
void cpdf_JSONUTF8(int);
|
|
|
|
|
2021-06-18 15:19:43 +02:00
|
|
|
/* cpdf_outputJSON(filename, parse_content, no_stream_data, pdf) 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.
|
|
|
|
* */
|
2022-01-19 18:09:46 +01:00
|
|
|
void cpdf_outputJSON(const char[], int, int, int, int);
|
|
|
|
|
2024-04-16 03:44:25 +02:00
|
|
|
/* cpdf_outputJSONMemory(parse_content, no_stream_data, pdf, size) is like
|
2022-03-04 18:26:01 +01:00
|
|
|
* outputJSON, but it writes to a buffer in memory. The length is filled in. */
|
2022-01-19 18:09:46 +01:00
|
|
|
void *cpdf_outputJSONMemory(int, int, int, int, int *);
|
|
|
|
|
2022-03-04 18:26:01 +01:00
|
|
|
/* Load a PDF from a JSON file given its filename. */
|
2022-01-19 18:09:46 +01:00
|
|
|
int cpdf_fromJSON(const char[]);
|
|
|
|
|
2022-03-04 18:26:01 +01:00
|
|
|
/* Load a PDF from a JSON file in memory, given the buffer and its length. */
|
2022-01-19 18:09:46 +01:00
|
|
|
int cpdf_fromJSONMemory(void *, int);
|
2021-06-18 15:19:43 +02:00
|
|
|
|