mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
more
This commit is contained in:
@@ -1,19 +1,28 @@
|
||||
CHAPTER 15. PDF and JSON
|
||||
/* CHAPTER 15. PDF and JSON */
|
||||
|
||||
Cpdf.outputJSON(String, Boolean, Boolean, Boolean, Cpdf.Pdf)
|
||||
/** Outputs a PDF in JSON format to the given filename.
|
||||
@param filename file name
|
||||
@param parse_content parse page content
|
||||
@param no_stream_data all stream data is suppressed entirely
|
||||
@param decompress_streams streams are decompressed
|
||||
@param pdf PDF document */
|
||||
public void outputJSON(String filename, boolean parse_content,
|
||||
boolean no_stream_data, boolean decompress_streams,
|
||||
Pdf pdf)
|
||||
throws CpdfError;
|
||||
|
||||
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.
|
||||
/** Like outputJSON, but it writes to a byte array in memory.
|
||||
@param pdf PDF document
|
||||
@param parse_content parse page content
|
||||
@param no_stream_data all stream data is suppressed entirely
|
||||
@param decompress_streams streams are decompressed */
|
||||
public native byte[] outputJSONMemory(Pdf pdf, boolean parse_content,
|
||||
boolean no_stream_data,
|
||||
boolean decompress_streams)
|
||||
throws CpdfError;
|
||||
|
||||
Cpdf.outputJSONMemory(Cpdf.Pdf, Boolean, Boolean, Boolean)
|
||||
/** Loads a PDF from a JSON file given its filename. */
|
||||
public Pdf fromJSON(String filename) throws CpdfError;
|
||||
|
||||
Like outputJSON, but it writes to a byte array in memory.
|
||||
|
||||
Cpdf.fromJSON(String)
|
||||
|
||||
Loads a PDF from a JSON file given its filename.
|
||||
|
||||
Cpdf.fromJSONMemory(Byte[])
|
||||
|
||||
Loads a PDF from a JSON file in memory
|
||||
/** Loads a PDF from a JSON file in memory. */
|
||||
public native Pdf fromJSONMemory(byte[] data) throws CpdfError;
|
||||
|
Reference in New Issue
Block a user