-
Notifications
You must be signed in to change notification settings - Fork 1
ResizePageWidth
jdubs edited this page Oct 21, 2016
·
1 revision
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.
public static void ResizePageWidth(string Width, object ErrorMessage)
{
Break();
try
{
Document doc = Application.CurrentDocument;
doc.PageWidth = Width;
}
catch (Exception ex)
{
throw new Four51ActionsException(ex.Message, (string)ErrorMessage);
}
}