jdubs edited this page Oct 21, 2016 · 1 revision

Table of Contents


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


Width (multiple) The Measurement Unit defining the new page width.

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


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: Width = 5in. Objects on the page do not resize.

Source Code

public static void ResizePageWidth(string Width, object ErrorMessage)
		Document doc = Application.CurrentDocument;
		doc.PageWidth = Width;
	catch (Exception ex)
		throw new Four51ActionsException(ex.Message, (string)ErrorMessage);

Referenced Methods

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.