Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

DynaPDF Manual - Page 518

Previous Page 517   Index   Next Page 519

Function Reference
Page 518 of 766
The paramter Index can be one of the following:
-1: Load the default configuration.
-2: If a configuration was already loaded, leave it unchanged. Load
the default configuration otherwise.
0..Count -1: Load the specified configuration.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
LockLayer
Syntax:
LBOOL pdfLockLayer(
const PPDF* IPDF, // Instance pointer
UI32 Layer)
// Handle of an OCG
The functions adds a layer to the list of locked layers. The state of a locked layer cannot be changed
through the user interface of a PDF viewer. However, the state of locked layers can still be changed
via Javascript or SetOCGState actions.
Returns values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
MovePage
Syntax:
LBOOL pdfMovePage(
const PPDF* IPDF, // Instance pointer
UI32 Source,
// Source page number
UI32 Dest)
// Target page number
The function moves a page to another position in the document. Moving a page requires some
processing time if the document contains many bookmarks or page links because the destinations of
all links and bookmarks must be modified so that they refer still to the correct page. For example, if
the first page of a document should be moved to the last page, all pages of the document must be
reordered. If the document is large and if it contains a few thousands page links as well as
bookmarks, this action can take a while.
The parameter Source must be a valid page number in the document. Page numbering starts at one. If
the destination page is larger than the source page, the page number can be greater than the number
of pages currently available in the document. The document is then filled with empty pages until the
destination page becomes valid.
If the destination page is smaller than the source page number, both page numbers must already
exist in the document.
It is also possible to exchange two pages with ExchangePage().
 

Previous topic: LoadLayerConfig

Next topic: MultiplyMatrix