2022-05-18 18:47:31 +02:00
|
|
|
// CHAPTER 0. Preliminaries
|
2022-05-12 17:57:13 +02:00
|
|
|
|
2022-05-18 18:47:31 +02:00
|
|
|
/** Returns a string giving the version number of the CPDF library. */
|
|
|
|
function version()
|
2022-05-12 17:57:13 +02:00
|
|
|
|
2022-05-18 18:47:31 +02:00
|
|
|
/** Some operations have a fast mode. The default is 'slow' mode, which works
|
|
|
|
even on old-fashioned files. For more details, see section 1.13 of the CPDF
|
|
|
|
manual. This function sets the mode to fast globally. */
|
|
|
|
function setFast()
|
2022-05-12 17:57:13 +02:00
|
|
|
|
2022-05-18 18:47:31 +02:00
|
|
|
/** Some operations have a fast mode. The default is 'slow' mode, which works
|
|
|
|
even on old-fashioned files. For more details, see section 1.13 of the CPDF
|
|
|
|
manual. This function sets the mode to slow globally. */
|
|
|
|
function setSlow()
|
2022-05-12 17:57:13 +02:00
|
|
|
|
2022-05-18 18:47:31 +02:00
|
|
|
/** Delete a PDF so the memory representing it may be recovered. */
|
|
|
|
function deletePdf(pdf)
|
2022-05-12 17:57:13 +02:00
|
|
|
|
2022-05-18 18:47:31 +02:00
|
|
|
/* A debug function which prints some information about resource usage. This
|
|
|
|
can be used to detect if PDFs or ranges are being deallocated properly.
|
|
|
|
Contrary to its name, it may be run at any time. */
|
|
|
|
function onexit()
|