<Application xmlns="http://ns.adobe.com/acrobat/app/2014" title="Enhance Scans" description="Turn scans or photos of paper documents into searchable PDFs with selectable text" id="PaperToPDFApp" majorVersion="1" minorVersion="0" manualLayout="true">
	<Commands>
	<!-- Listing Commands so that they can appear in Search Results -->
		<Command name="P2PInsertMenu"/>
		<Command name="MagicCleanPerspectiveCorrection"/>
		<Command name="Scan:OPT"/>
		<Command name="P2P:ShowOptimize"/>
		<Command name="P2P:ShowOCR"/>
		<Command name="Cpt:CapturePages"/>
		<Command name="Cpt:CaptureMultipleFiles"/>
		<Command name="TouchUp:ShowCaptureSuspects"/>
		<Command name="BatesNumbering"/>
		<!-- Single Page Operations -->
		<Command name="Crop"/>
		<Command name="RotatePagesCCW"/>
		<Command name="RotatePagesCW"/>
		<Command name="DeleteSelectedPages"/>
		<Command name="P2PInsertMenu"/>
	</Commands>
	
	<Layouts>
		<Layout name="Default">
			<TopBar align="Center">
				<Component name="P2PInsertMenu" showLabel="true"/>
				<Component name="P2PEnhanceMenu" showLabel="true"/>
				<Component name="P2PTextRecognitionMenu" showLabel="true"/>
				<Component name="BatesNumbering" showLabel="true"/>
				<Component type="Separator"/>
				<Component name="Crop"/>
				<Component name="RotatePagesCCW"/>
				<Component name="RotatePagesCW"/>
				<Component name="DeleteSelectedPages"/>
			</TopBar>
		</Layout>

		<Layout name="P2PLandingLayout">
			<TopBar/>
			<RHP/>
			<ContentView>
				<Component name="FormsLandingView" type="Custom" columns="1" hAlign="center" vAlign="near">
					<Component type="Table" columns="1" hAlign="center" vAlign="center" bottomOffset="35">
					<Component type="Label" label="Select a file or scan a document to begin" fontSize="30" />
					<Component type="Table" columns="2" hAlign="center" vAlign="near" leftOffset="30" rightOffset="30">
						<Component type="Table" hAlign="center" vAlign="near">
							<Component type="LargeIconButton" name="P2P:LandingSelectFileButton"/>
							<Component type="Label" name="P2P:LandingFileName" fontSize="16" />
							<Component type="HyperLink" name="P2P:LandingSelectFileLink" fontSize="16" />
						</Component>
						<Component type="Table" hAlign="center" vAlign="near">
							<Component type="LargeIconButton" name="P2P:LandingScanButton"/>
							<Component type="HyperLink" name="P2P:LandingScanLink" fontSize="16" />
						</Component>
					</Component>
				<Component type="PushButton" name="P2P:LandingExecute" vAlign="center"/>
				<Component type="HyperLink"  name="P2P:LandingOCRMultipleFiles" label="Or recognize text in multiple files" fontSize="16" vAlign="center"/>
			  </Component>
			</Component>
		  </ContentView>
		</Layout>

		<Layout name="OCRCorrectionLayout">
			<Properties align="Center">
				<Component type="Group" spacing="25">
					<Component name="TouchUp:ShowOCRText" type="Checkbox"/>
					<Component type="Separator"/>
					<Component type="Group" spacing="10">
						<Component type="Label" label="Image" fontSize="14" />
						<Component name="TouchUp:OCRLibraryBitmap" type="Custom"/>
						<Component type="Label" label="recognized as" fontSize="14" />
						<Component name="TouchUp:OCRLibraryCorrectedText" type="Custom"/>
					</Component>
					<Component type="Separator"/>
					<Component name="TouchUp:AcceptSelectedSuspect" type="TertiaryBarButton"/>
					<Component type="Custom" name="P2P:Close"/>
				</Component>
			</Properties>
		</Layout>

		<Layout name="MagicCleanDisabledLayout">
			<Properties align="Center">
				<Component type="Group" spacing="25">
					<Component type="Label" name="MagicClean:PageNumLabel" fontSize="14" />
					<Component type="Separator"/>
					<Component type="Group" spacing="10">
						<Component type="Label" label="Content" fontSize="14" />
						<Component type="Custom" name="MagicClean:DocType"/>
					</Component>
					<Component type="Group" spacing="15"><!-- Because IconButton adds a right padding of 10px -->
						<Component type="IconButton" name="MagicClean:StateLabel" fontSize="14" />
						<Component type="Separator"/>
					</Component>
					<Component type="TertiaryBarButton" name="MagicClean:Enhance"/>
					<Component type="Custom" name="P2P:Close"/>
				</Component>
			</Properties>
		</Layout>
		<Layout name="MagicCleanBoundariesLayout">
			<Properties align="Center">
				<Component type="Group" spacing="25">
					<Component type="Label" name="MagicClean:PageNumLabel" fontSize="14" />
					<Component type="Separator"/>
					<Component type="Group" spacing="10">
						<Component type="Label" label="Content" fontSize="14" />
						<Component type="Custom" name="MagicClean:DocType"/>
					</Component>
					<Component type="Label" name="MagicClean:StateLabel" fontSize="14" />
					<Component type="Separator"/>
					<Component type="TertiaryBarButton" name="MagicClean:Enhance"/>
					<Component type="Custom" name="P2P:Close"/>
				</Component>
			</Properties>
		</Layout>
		<Layout name="MagicCleanCleanedLayout">
			<Properties align="Center">
				<Component type="Group" spacing="25">
					<Component type="Label" name="MagicClean:PageNumLabel" fontSize="14" />
					<Component type="Separator"/>
					<Component type="Group" spacing="10">
						<Component type="Label" label="Adjust enhancement level" fontSize="14"/>
						<Component type="Group" spacing="1"> <!-- Because slider & icon add padding and min 1 is mandatory -->
							<Component type="Button" name="MagicClean:CustomCleanPrev"/>
							<Component type="Custom" name="MagicClean:LevelSlider"/>
							<Component type="Button" name="MagicClean:CustomCleanNext"/>
						</Component>
					</Component>
					<Component type="Separator"/>
					<Component type="Custom" name="P2P:Close"/>
				</Component>
			</Properties>
		</Layout>
		<Layout name="MagicCleanErrorOnlyLayout">
			<Properties align="Center">
				<Component type="Group" spacing="25">
					<Component type="Label" name="MagicClean:PageNumLabel" fontSize="14" />
					<Component type="Separator"/>
					<Component type="Group" spacing="15"><!-- Because IconButton adds a right padding of 10px -->
						<Component type="IconButton" name="MagicClean:StateLabel" fontSize="14" />
						<Component type="Separator"/>
					</Component>
					<Component type="Custom" name="P2P:Close"/>
				</Component>
			</Properties>
		</Layout>

		<Layout name="OptimizeLayout">
			<Properties align="Center">
				<Component type="Group" spacing="25">
					<Component type="Group" spacing="10">
						<Component type="Label" label="Pages" fontSize="14"/>
						<Component type="Custom" name="P2P:OptimizePageRange"/>
					</Component>
					<Component type="Checkbox" name="P2P:OptimizeRunOCR"/>
					<Component type="IconButton" name="P2P:OptimizeSettings"/>
					<Component type="Separator"/>
					<Component type="TertiaryBarButton" name="P2P:OptimizeExecute"/>
					<Component type="Custom" name="P2P:Close"/>
				</Component>
			</Properties>
		</Layout>

		<Layout name="OCRLayout">
			<Properties align="Center">
				<Component type="Group" spacing="25">
					<Component type="Group" spacing="10">
						<Component type="Label" label="Pages" fontSize="14"/>
						<Component type="Custom" name="P2P:OCRPageRange"/>
					</Component>
					<Component type="Group" spacing="10">
						<Component type="Label" label="Language" fontSize="14"/>
						<Component type="Custom" name="P2P:OCRLanguage"/>
					</Component>
					<Component type="IconButton" name="P2P:OCRSettings"/>
					<!-- <Component type="IconButton" name="Cpt:CaptureMultipleFiles"/> -->
					<Component type="Separator"/>
					<Component type="TertiaryBarButton" name="P2P:OCRExecute"/>
					<Component type="Custom" name="P2P:Close"/>
				</Component>
			</Properties>
		</Layout>
	</Layouts>
</Application>
