mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
more
This commit is contained in:
@@ -1,28 +1,23 @@
|
||||
/* CHAPTER 16. Optional Content Groups */
|
||||
// CHAPTER 16. Optional Content Groups
|
||||
|
||||
/** Begins retrieving optional content group names. The serial number
|
||||
<code>0..n - 1</code> is returned. */
|
||||
public native int startGetOCGList(Pdf pdf) throws CpdfError;
|
||||
/** Begins retrieving optional content group names. The serial number 0..n - 1
|
||||
is returned. */
|
||||
function startGetOCGList(pdf)
|
||||
|
||||
/** Retrieves an entry in the optional content group list, given the serial
|
||||
number <code>0..n - 1</code>. */
|
||||
public native String OCGListEntry(int serial) throws CpdfError;
|
||||
/** Retrieves an OCG name, given its serial number 0..n - 1. */
|
||||
function ocgListEntry(n)
|
||||
|
||||
/** Ends retrieval of optional content group names. */
|
||||
public native void endGetOCGList() throws CpdfError;
|
||||
function endGetOCGList()
|
||||
|
||||
/** Renames an optional content group.
|
||||
@param pdf PDF document
|
||||
@param f name to rename from
|
||||
@param t name to rename to */
|
||||
public native void OCGRename(Pdf pdf, String f, String t) throws CpdfError;
|
||||
/** Renames an optional content group. */
|
||||
function ocgRename(pdf, name_from, name_to)
|
||||
|
||||
/** Ensures that every optional content group appears in the OCG order
|
||||
list. */
|
||||
public native void OCGOrderAll(Pdf pdf) throws CpdfError;
|
||||
/** Ensures that every optional content group appears in the OCG order list. */
|
||||
function ocgOrderAll(pdf)
|
||||
|
||||
/** 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. */
|
||||
public native void OCGCoalesce(Pdf pdf) throws CpdfError;
|
||||
/** 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)
|
||||
|
Reference in New Issue
Block a user