cpdf-source/pysplits/c17.tex

17 lines
628 B
TeX
Raw Normal View History

2021-08-10 15:41:18 +02:00
# CHAPTER 16. Optional Content Groups
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def getOCGList(pdf):
"""Return a list of Optional Content Groups in the given pdf."""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def OCGRename(pdf, n_from, n_to):
"""OCGRename(pdf, n_from, n_to) will rename an optional content group."""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def OCGOrderAll(pdf):
"""Ensure that every optional content group appears in the OCG order list."""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def OCGCoalesce(pdf):
"""Coalesce 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."""