Skip to content

ResizePageHeight

jdubs edited this page Oct 21, 2016 · 1 revision

Table of Contents

Overview

Performs a page height resize on all pages in a template.

Parameters

Height (multiple) The Measurement Unit defining the new page height.

ErrorMessage (multiple | optional) The error message to return when any error occurs.

Synopsis

This method physically changes the template page size for all pages in the rendered output. The supplied value must be a valid Measurement Unit. For example, you can define a page size with the following values: Height = 3in. Objects on the page do not resize.

Source Code

public static void ResizePageHeight(string Height, object ErrorMessage)
{
	Break();
	try
	{
		Document doc = Application.CurrentDocument;
		doc.PageHeight = Height;
	}
	catch (Exception ex)
	{
		throw new Four51ActionsException(ex.Message, (string)ErrorMessage);
	}
}

Referenced Methods

Clone this wiki locally