Resize Word Doc
  • 18 Jul 2023
  • 1 Minute to read
  • Dark
    Light

Resize Word Doc

  • Dark
    Light

Article summary

Step Details
Introduced in Version8.13.0
Last Modified in Version8.13.0
LocationData > MS Word

The Resize Word Doc step applies a specific paper size to the mapped document. Efficiently maintain consistency and uniformity in paper sizes across various documents, saving time and effort in the document formatting process. 



Properties

Margins

PropertyDescriptionData Type
Change MarginsWhen set to true, this option allows specifies the desired dimensions for the left margin, right margin, top margin, and bottom margin in inches.
Boolean

Page

PropertyDescriptionData Type
Paper SizeSpecify the desired dimensions for the document. Select from a range of standard paper sizes, like letter, legal, and A4, or provide custom dimensions.
---
OrientationDetermine the preferred orientation of the document's content on the page. Choose between two options: "Portrait" or "Landscape." Selecting "Portrait" sets the document in a vertical layout, while choosing "Landscape" arranges the content horizontally.
---

Inputs

PropertyDescriptionData Type
DocumentThe document that will be resized based on the dimensions provided in this step. This document serves as the target for applying the desired changes to its paper size, margins, or orientation.
FileData

Outputs

PropertyDescriptionData Type
Resized Word Doc
The modified document with the new paper size applied.
FileData


Common Errors

Object reference not set to an instance of an object

If the Document input is not specified, the step will result in the following error; please ensure the step is mapped correctly. 

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Resize Word Doc Paper 1[ResizeWordDocPaper] in flow [Display Steps]: Object reference not set to an instance of an object.
 ---> System.NullReferenceException: Object reference not set to an instance of an object. at DecisionsFramework.Design.Flow.CoreSteps.Word.ResizeWordDocPaper.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---

Was this article helpful?