Debenu Quick PDF logo

DAMovePage

Direct access functionality, Page manipulation

Description

Moves a page to a new location in the document.

Syntax

Delphi

function TDebenuPDFLibrary1511.DAMovePage(FileHandle, PageRef, TargetPageRef, 
  Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DAMovePage(FileHandle As Long,
  PageRef As Long, TargetPageRef As Long, Options As Long) As Long

DLL

int DPLDAMovePage(int InstanceID, int FileHandle, int PageRef, int TargetPageRef,
  int Options)

Parameters

FileHandle A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRef A page reference returned by the DAFindPage or DANewPage functions. This is the page that will be moved.
TargetPageRef A page reference returned by the DAFindPage or DANewPage functions. The page will be moved before or after this page.
Options 0 = Move before target page
1 = Move after target page

Return values

0 The page could not be moved. Check that the FileHandle, PageRef and TargetPageRef values are correct.
1 The page was moved successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport