Configuring the PDFWatermark

You can control watermarks using a dedicated PDFWatermark.xml file. When present, the PDFWatermark page object controls the specific watermark for a given organization, state, and file category. If the PDFWatermark.xml page object does not exist, the original watermark property settings are used.


Before you begin: A sample PDFWatermark.xml file is located at ../Apps/DocumentControlCentral/V6R2022x/Modules/ENOPDFRendering/AppInstall/Programs/PDFWatermark.xml.
  1. To add the PDFWatermark.xml file, run the following MQL command:

    add page PDFWatermark file <File Path>/PDFWatermark.xml

  2. Run the following MQL command to specify the MQL expression or JPO method for the business object type:

    The first file category that is found to be associated with the attached files defines the watermark that is used. When a match is not found, the default watermark is used.

    Important: When naming file categories, enter Default in the <Name></Name> attribute or enter a range value specified in enoDocumentControl.FileCategory.RangeValues in the enoDocumentControl.properties page object. When naming the <State>, enter the state name as it appears in the lifecycle that displays. For example, <Name>In Work</Name> or <Name>In Approval</Name>. As in the case for State, the same applies to Business Object Type such as Quality System Document and Organization.

    mod page PDFWatermark file <File Path>/PDFWatermark.xml

    <Watermarks>
    	<BOTypes>
    		<BOType>
    			<Name>Default</Name>
    			<Companies>
    				<Company>
    					<Name>Default</Name>
    					<States>
    						<State>
    							<Name>Default</Name>
    							<FileCategories>
    								<FileCategory>
    									<Name>Default</Name>
    									<MQL>current</MQL>
    								</FileCategory>
    							</FileCategories>
    						</State>
    						<State>
    							<Name>In Work</Name>
    							<FileCategories>
    								<FileCategory>
    									<Name>Default</Name>
    									<MQL>current</MQL>
    								</FileCategory>
    							</FileCategories>
    						</State>
    						<State>
    							<Name>In Approval</Name>
    							<FileCategories>
    								<FileCategory>
    									<Name>Default</Name>
    									<MQL>current</MQL>
    								</FileCategory>
    								<FileCategory>
    									<Name>Heterogeneous</Name>
    									<JPO>PDFRSpecificWatermarkImpl:getApprovedWatermark</JPO>
    								</FileCategory>
    								<FileCategory>
    									<Name>Digital Signature</Name>
    									<MQL></MQL>
    								</FileCategory>
    							</FileCategories>
    						</State>
    						<State>
    							<Name>Approved</Name>
    							<FileCategories>
    								<FileCategory>
    									<Name>Default</Name>
    									<JPO>PDFRSpecificWatermarkImpl:getApprovedWatermark</JPO>
    								</FileCategory>
    								<FileCategory>
    									<Name>Digital Signature</Name>
    									<MQL></MQL>
    								</FileCategory>
    							</FileCategories>
    						</State>
    					</States>
    				</Company>
    			</Companies>
    		</BOType>
    		<BOType>
    			<Name>Quality System Document</Name>
    			<Companies>
    				<Company>
    					<Name>MyCompany</Name>
    					<States>
    						<State>
    							<Name>Default</Name>
    							<FileCategories>
    								<FileCategory>
    									<Name>Default</Name>
    									<MQL>current</MQL>
    								</FileCategory>
    							</FileCategories>
    						</State>
    						<State>
    							<Name>In Work</Name>
    							<FileCategories>
    								<FileCategory>
    									<Name>Default</Name>
    									<MQL>current</MQL>
    								</FileCategory>
    							</FileCategories>
    						</State>
    						<State>
    							<Name>In Approval</Name>
    							<FileCategories>
    								<FileCategory>
    									<Name>Default</Name>
    									<MQL>current</MQL>
    								</FileCategory>
    								<FileCategory>
    									<Name>Heterogeneous</Name>
    									<JPO>PDFRSpecificWatermarkImpl:getApprovedWatermark</JPO>
    								</FileCategory>
    								<FileCategory>
    									<Name>Digital Signature</Name>
    									<MQL></MQL>
    								</FileCategory>
    							</FileCategories>
    						</State>
    						<State>
    							<Name>Approved</Name>
    							<FileCategories>
    								<FileCategory>
    									<Name>Default</Name>
    									<MQL>current</MQL>
    								</FileCategory>
    								<FileCategory>
    									<Name>Digital Signature</Name>
    									<MQL></MQL>
    								</FileCategory>
    							</FileCategories>
    						</State>
    					</States>
    				</Company>
    			</Companies>
    		</BOType>
    	</BOTypes>
    </Watermarks>