cpdf-source/javascriptsplits/c17.tex

24 lines
801 B
TeX
Raw Normal View History

2022-05-18 18:47:31 +02:00
// CHAPTER 16. Optional Content Groups
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Begins retrieving optional content group names. The serial number 0..n - 1
is returned. */
function startGetOCGList(pdf)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Retrieves an OCG name, given its serial number 0..n - 1. */
function ocgListEntry(n)
2022-05-12 17:57:13 +02:00
/** Ends retrieval of optional content group names. */
2022-05-18 18:47:31 +02:00
function endGetOCGList()
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Renames an optional content group. */
function ocgRename(pdf, name_from, name_to)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Ensures that every optional content group appears in the OCG order list. */
function ocgOrderAll(pdf)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Coalesces optional content groups. For example, if we merge or stamp two
files both with an OCG called "Layer 1", we will have two different optional
content groups. This function will merge the two into a single optional
content group. */
function ocgCoalesce(pdf)