cpdf-source/javascriptsplits/c19.tex

55 lines
1.7 KiB
TeX
Raw Normal View History

2022-05-18 18:47:31 +02:00
//CHAPTER 18. Miscellaneous
2022-05-12 17:57:13 +02:00
/** Removes images on the given pages, replacing them with crossed boxes if
2022-05-18 18:47:31 +02:00
'boxes' is true. */
function draft(pdf, range, boxes)
2022-05-12 17:57:13 +02:00
/** Removes all text from the given pages in a given document. */
2022-05-18 18:47:31 +02:00
function removeAllText(pdf, range)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/* Blackens all text on the given pages. */
function blackText(pdf, range)
2022-05-12 17:57:13 +02:00
/** Blackens all lines on the given pages. */
2022-05-18 18:47:31 +02:00
function blackLines(pdf, range)
2022-05-12 17:57:13 +02:00
/** Blackens all fills on the given pages. */
2022-05-18 18:47:31 +02:00
function blackFills(pdf, range)
/** Thickens every line less than min_thickness to min_thickness. Thickness
given in points. */
function thinLines(pdf, range, min_thickness)
/** Copies the /ID from one document to another. */
function copyId(pdf_from, pdf_to)
/** Removes a document's /ID. */
function removeId(pdf)
/** Sets the minor version number of a document. */
function setVersion(pdf, version)
/** Sets the full version number of a document. */
function setFullVersion(pdf, major, minor)
/** Removes any dictionary entry with the given key anywhere in the document. */
function removeDictEntry(pdf, key)
2022-05-12 17:57:13 +02:00
/** Removes any dictionary entry with the given key whose value matches the
2022-05-18 18:47:31 +02:00
given search term. */
function removeDictEntrySearch(pdf, key, searchterm)
/** Replaces the value associated with the given key. */
function replaceDictEntry(pdf, key, newval)
2022-05-12 17:57:13 +02:00
/** Replaces the value associated with the given key if the existing value
2022-05-18 18:47:31 +02:00
matches the search term. */
function replaceDictEntrySearch(pdf, key, newval, searchterm)
2022-05-12 17:57:13 +02:00
/** Removes all clipping from pages in the given range. */
2022-05-18 18:47:31 +02:00
function removeClipping(pdf, range)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/* Returns a JSON array containing any and all values associated with the
given key, and fills in its length. */
function getDictEntries(pdf, key)