cpdf-source/docsplits/pysplits/c17.tex

16 lines
571 B
TeX
Raw Permalink Normal View History

2021-08-10 15:41:18 +02:00
def getOCGList(pdf):
2021-09-01 19:41:10 +02:00
"""Return a list of Optional Content Groups in the given pdf as strings."""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def OCGRename(pdf, n_from, n_to):
2021-09-01 19:41:10 +02:00
"""Rename an optional content group."""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def OCGOrderAll(pdf):
2024-04-17 02:14:40 +02:00
"""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."""