mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2024-12-12 08:46:39 +01:00
19 lines
752 B
TeX
19 lines
752 B
TeX
/* CHAPTER 15. PDF and JSON */
|
|
|
|
/* 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.
|
|
* */
|
|
void cpdf_outputJSON(const char[], int, int, int, int);
|
|
|
|
/* cpdf_outputJSONMemory(parse_content, no_stream_data, pdf, &length) is like
|
|
* outputJSON, but it write to a buffer in memory. The length is filled in. */
|
|
void *cpdf_outputJSONMemory(int, int, int, int, int *);
|
|
|
|
/* Load a PDF from a JSON file given its filename */
|
|
int cpdf_fromJSON(const char[]);
|
|
|
|
/* Load a PDF from a JSON file in memory, given the buffer and its length */
|
|
int cpdf_fromJSONMemory(void *, int);
|
|
|