# PDF Utils

<table><thead><tr><th width="228">Property Name</th><th width="236.33333333333331">Property Value</th><th>Description</th></tr></thead><tbody><tr><td>StartPage</td><td>1</td><td>The starting page number for comparison/Extraction</td></tr><tr><td>EndPage</td><td>-1</td><td>The ending page number for comparison/Extraction</td></tr><tr><td>PDFAction</td><td>--</td><td>The action to be performed on the PDF files. Available options: "compare", "ExtractText"</td></tr><tr><td>File1</td><td>Value can be provide either in expressions (td:fileName, ud:fileName) or absolute path</td><td>The path or location of the first PDF file for comparison / extraction</td></tr><tr><td>File2</td><td>Value can be provide either in expressions (td:fileName, ud:fileName) or absolute path</td><td>The path or location of the second PDF file for comparison / extraction</td></tr><tr><td>TrimWhiteSpaces</td><td>Default : false</td><td>Flag to indicate whether to trim white spaces in the PDF files</td></tr><tr><td>HighlightDifference</td><td>Default : false</td><td>Flag to indicate whether to highlight differences in the PDF files</td></tr><tr><td>DifferenceImageColor</td><td>Default : MAGENTA</td><td>The color code (e.g., #FF0000) for highlighting differences in the PDF files</td></tr><tr><td>CompareAllPages</td><td>Default : false</td><td>Flag to indicate whether to compare all pages of the PDF files</td></tr><tr><td><strong>CompareType</strong></td><td>--</td><td>The type of comparison. Available options: "visual", "text"</td></tr><tr><td>ExcludeRegexPattern</td><td>--</td><td>Regular expression pattern to exclude specific text during comparison</td></tr><tr><td>fileName</td><td>Value can be provide either in expressions (td:fileName, ud:fileName) or absolute path</td><td>The path or location of the file <br>Note : Only when PDF Action is "ExtractText"</td></tr><tr><td>ExtractionOperation</td><td>Refer to : <a href="../../../extraction-rules">Extraction Rules</a></td><td>Given extraction operation will be applied to the extracted text<br><br>Note : Only when PDF action is "ExtractText"</td></tr></tbody></table>
