-
Notifications
You must be signed in to change notification settings - Fork 1
ResizePageHeight
jdubs edited this page Oct 21, 2016
·
1 revision
Performs a page height resize on all pages in a template.
Height (multiple) The Measurement Unit defining the new page height.
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: Height = 3in. Objects on the page do not resize.
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);
}
}