Debenu Quick PDF logo

SetPageDimensions

Page properties, Page layout

Description

Set the size of the selected page.

This function updates the MediaBox entry which represents the physical medium of the page and will only affect content subsequently added to the page. This function does not resize the already existing content of the page.

Syntax

Delphi

function TDebenuPDFLibrary1511.SetPageDimensions(NewPageWidth, 
  NewPageHeight: Double): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetPageDimensions(NewPageWidth As Double,
  NewPageHeight As Double) As Long

DLL

int DPLSetPageDimensions(int InstanceID, double NewPageWidth, double NewPageHeight)

Parameters

NewPageWidth The new width of the page
NewPageHeight The new height of the page

Return values

0 The page size could not be set. This should never occur.
1 The page was resized successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport