--- title: "Match Word Doc Paper Size" slug: "match-word-doc-paper-size" updated: 2023-07-18T19:20:28Z published: 2023-07-18T19:20:28Z canonical: "documentation.decisions.com/match-word-doc-paper-size" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Match Word Doc Paper Size | Step Details | | --- | | **Introduced in Version** | 8.13.0 | | **Last Modified in Version** | 8.13.0 | | **Location** | Data > MS Word | The Match Word Doc Paper Size step streamlines the process of applying a specific paper size from one document to another. Efficiently maintain consistency and uniformity in paper sizes across various documents, saving time and effort in the document formatting process. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Comparison Document | The document that will serve as the source or reference for the desired paper size. This document has a specific paper size to apply to another Word document. | FileData | | Document to Change | The target document to apply the paper size from the Comparison Document. This is the document that will undergo automatic adjustments to match the paper size of the source document. | FileData | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | MatchWordDocPaperSize1_Output | The modified Document to Change with the new paper size applied. | FileData | --- ## ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2023-07-18_14h32_10.png) --- ## Common Errors ### File cannot be null If the Comparison Document or the Document to Change inputs are not specified, the step will result in the following error; please ensure the step is mapped correctly. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Match Word Doc Paper Size 1[MatchWordDocPaperSize] in flow [Display Steps]: Exception invoking method MatchWordDocPaperSize on class DocumentSteps ---> DecisionsFramework.LoggedException: Exception invoking method MatchWordDocPaperSize on class DocumentSteps ---> System.Exception: File cannot be null. at DecisionsFramework.Utilities.Data.WordUtility.MatchPaperSize(FileData file, FileData comparisonFile at DecisionsFramework.Design.Flow.CoreSteps.Word.DocumentSteps.MatchWordDocPaperSize(FileData documentToChange, FileData comparisonDocument at InvokeStub_DocumentSteps.MatchWordDocPaperSize(Object, Object, IntPtr* at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.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 --- ```