All Downloads are FREE. Search and download functionalities are using the official Maven repository.

implementationcheckers.TiffITP1ProfileChecker.xml Maven / Gradle / Ivy

There is a newer version: 1.2.8
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<implementationCheckerObject xmlns="http://www.dpfmanager.org/ProfileChecker"
                             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                             xsi:schemaLocation="http://www.dpfmanager.org/ProfileChecker ProfileChecker.xsd">

    <title>TIFF/IT-P1</title>
    <iso>TIFF/IT-P1</iso>
    <description>ISO 12639:2004(E)</description>
    <version>1.0.0</version>
    <author>Easy Innova</author>
    <date>2016-09-20</date>

    <include>
        <policyChecker>TIFF_Baseline_Core_6_0.xml</policyChecker>
        <excluderules>IFDE-0001</excluderules>
        <excluderules>TAG-296-0005</excluderules>
        <excluderules>TAG-254-0003</excluderules>
        <excluderules>TAG-259-0003</excluderules>
        <excluderules>TAG-284-0003</excluderules>
        <excluderules>TAG-284-0004</excluderules>
        <excluderules>TAG-262-0003</excluderules>
    </include>
    <include>
        <policyChecker>TiffITProfileChecker.xml</policyChecker>
        <excluderules>TIFF-IT-CT</excluderules>
        <excluderules>TIFF-IT-CT-RGB</excluderules>
        <excluderules>TIFF-IT-CT-CIELAB</excluderules>
        <excluderules>TIFF-IT-LW</excluderules>
        <excluderules>TIFF-IT-HC</excluderules>
        <excluderules>TIFF-IT-MP</excluderules>
        <excluderules>TIFF-IT-BP</excluderules>
        <excluderules>TIFF-IT-BL</excluderules>
        <excluderules>TIFF-IT-SD</excluderules>
        <excluderules>TIFF-IT-FP</excluderules>

    </include>

    <rules id="TIFF-IT-P1">
        <title>Image rules</title>
        <description></description>
        <rule id="TIFF-IT-P1-0001" context="ifd[class=image]" level="error">
            <title>Forbidden DocumentName tag</title>
            <description>DocumentName tag is forbidden in TIFF/IT P1</description>
            <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference>
            <assert test="{!tags.tag[name=DocumentName]}">DocumentName tag is forbidden in TIFF/IT P1</assert>
        </rule>
        <rule id="TIFF-IT-P1-0002" context="ifd[class=image]" level="error">
            <title>Forbidden Model tag</title>
            <description>Model tag is forbidden in TIFF/IT P1</description>
            <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference>
            <assert test="{!tags.tag[name=Model]}">Model tag is forbidden in TIFF/IT P1</assert>
        </rule>
        <rule id="TIFF-IT-P1-0003" context="ifd[class=image]" level="error">
            <title>Orientation valid value</title>
            <description>the only valid value for Orientation tag is 1 in TIFF/IT P1</description>
            <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference>
            <assert test="{!tags.tag[name=Orientation] || {tags.tag[name=Orientation]==1}">Orientation value must be 1</assert>
        </rule>
        <rule id="TIFF-IT-P1-0004" context="ifd[class=image]" level="error">
            <title>Forbidden PageName tag</title>
            <description>PageName tag is forbidden in TIFF/IT P1</description>
            <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference>
            <assert test="{!tags.tag[name=PageName]}">PageName tag is forbidden in TIFF/IT P1</assert>
        </rule>
        <rule id="TIFF-IT-P1-0005" context="ifd[class=image]" level="error">
            <title>Forbidden HostComputer tag</title>
            <description>HostComputer tag is forbidden in TIFF/IT P1</description>
            <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference>
            <assert test="{!tags.tag[name=HostComputer]}">HostComputer tag is forbidden in TIFF/IT P1</assert>
        </rule>
        <rule id="TIFF-IT-P1-0006" context="ifd[class=image]" level="error">
            <title>Forbidden Site tag</title>
            <description>Site tag is forbidden in TIFF/IT P1</description>
            <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference>
            <assert test="{!tags.tag[name=Site]}">Site tag is forbidden in TIFF/IT P1</assert>
        </rule>
        <rule id="TIFF-IT-P1-0007" context="ifd[class=image]" level="error">
            <title>Forbidden IT8Header tag</title>
            <description>IT8Header tag is forbidden in TIFF/IT P1</description>
            <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference>
            <assert test="{!tags.tag[name=IT8Header]}">IT8Header tag is forbidden in TIFF/IT P1</assert>
        </rule>
    </rules>

    <rules id="TIFF-IT-CT-P1">
        <title>TIFF/IT-CT/P1 Colour continuous-tone picture</title>
        <description>There are three formats for describing the pixel structure of colour continuous-tone picture file data:
            pixel interleaving (also called chunky format).
            line interleaving (also called row interleaving).
            colour interleaving (also called planar format).

            TIFF/IT-CT/P1 is a simplified image file format profile for colour continuous-tone picture image (CT) data and
            can be considered a constrained subset of TIFF/IT-CT. TIFF/IT-CT/P1 files can be read by typical TIFF 6.0
            readers and be written by typical TIFF 6.0 writers that conform to TIFF 6.0, Section 16: CMYK Images.

            TIFF/IT-CT/P1 does not permit any compression of image data.

            NOTE TIFF/IT-CT/P1 do not allow the use of a value 32895 for field 259 (Compression) to indicate the use of raster padding nor do they allow the use of
            field 34019 (RasterPadding).
        </description>

        <rule id="TIFF-IT-CT-P1-0001" context="ifd[filetype=ct]" level="error" experimental="true">
            <title>TIFF/IT-CT/P1 BitsPerSample valid values</title>
            <description>BitsPerSample on a colour continuous-tone picture (CT) file must be 8,8,8,8</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{tags.tag[name=BitsPerSample] == '8,8,8,8'}">Invalid BitsPerSample value. BitsPerSample should be [8,8,8,8]</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0002" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 Compression valid value</title>
            <description>The only valid value for Compression is 1, No compression.</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{tags.tag[name=Compression] == 1}">Invalid Compression value for colour continuous-tone picture (CT) image. The only valid value is no compression (1)</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0003" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 PhotometricInterpretation valid value</title>
            <description>The only valid value for PhotometricInterpretation in continuous-tone picture (CT) is CMYK</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 5}">Invalid Compression value for colour continuous-tone picture (CT) image</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0004" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 SamplesPerPixel valid value</title>
            <description>The only valid value for SamplesPerPixel in continuous-tone picture (CT) is 4</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{tags.tag[name=SamplesPerPixel] == 4}">Invalid SamplesPerPixel. SamplesPerPixel for colour continuous-tone picture (CT) CMYK should be 4</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0005" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 PlanarConfiguration valid value </title>
            <description>PlanarConfiguration on a colour continuous-tone picture (CT) file must be 1</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{tags.tag[name=PlanarConfiguration] == 1}">Invalid PlanarConfiguration. PlanarConfiguration for colour continuous-tone picture (CT) CMYK should be 1</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0006" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 InkSet valid value</title>
            <description>InkSet on a colour continuous-tone picture (CT) file must be 1</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{tags.tag[name=InkSet] == 1}">Invalid InkSet. InkSet for colour continuous-tone picture (CT) CMYK should be 1</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0007" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 InkNames forbidden tag </title>
            <description>InkNames is forbidden on a colour continuous-tone picture (CT) </description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{!tags.tag[name=InkNames]}">InkNames is forbidden on a colour continuous-tone picture (CT)</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0008" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 NumberOfInks valid value</title>
            <description>If NumberOfInks tag is used, it must be 4</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{tags.tag[name=NumberOfInks] == 4}">invalid NumberOfInks. If NumberOfInks tag is used, it must be 4</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0009" context="ifd[filetype=ct]" level="error" experimental="true">
            <title>TIFF/IT-CT/P1 NumberOfInks match SamplesPerPixel</title>
            <description>If NumberOfInks tag is used, it must have the same value as the value of SamplesPerPixel</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{!tags.tag[name=NumberOfInks]} || {tags.tag[name=NumberOfInks] == tags.tag[name=SamplesPerPixel]}">invalid NumberOfInks. If NumberOfInks tag is used, it must have the same value as the value of SamplesPerPixel</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0010" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 DotRange valid value</title>
            <description>If DotRange tag is used, it must be 0,255</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{tags.tag[name=DotRange] == 0,255}">invalid DotRange. If DotRange tag is used, it must be 0,255</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0011" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 ColorSequence is forbidden</title>
            <description>ColorSequence on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0012" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 RasterPadding is forbidden</title>
            <description>RasterPadding on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{!tags.tag[name=RasterPadding]}">RasterPadding on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0013" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 TrapIndicator is forbidden</title>
            <description>TrapIndicator on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{!tags.tag[name=TrapIndicator]}">TrapIndicator on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0014" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 CMYKEquivalent is forbidden</title>
            <description>CMYKEquivalent on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{!tags.tag[name=CMYKEquivalent]}">CMYKEquivalent on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-CT-P1-0015" context="ifd[filetype=ct]" level="error">
            <title>TIFF/IT-CT/P1 InterColourProfile is forbidden</title>
            <description>InterColourProfile on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page>
            </reference>
            <assert test="{!tags.tag[name=InterColourProfile]}">InterColourProfile on a colour continuous-tone picture (CT) TIFF/IT P1 file is forbidden</assert>
        </rule>
    </rules>


    <rules id="TIFF-IT-LW-P1">
        <title>Colour line-art (LW) file</title>
        <description>Colour line-art data consists of an image file comprised of the following three parts.The first part consists of
            one or more blocks of run-length encoded data describing the colour line-art image in terms of colour numbers
            and run lengths.The second part is a colour table (in the IFD) that defines the colour values for the colour
            numbers of the first part.The third part is a table describing the separations of the second part.This data
            structure is similar to binary line-art data with the addition of two colour tables for colour specification.

            TIFF/IT-LW/P1 is a simplified image-file format profile for line-art (LW) image data and can be considered a
            constrained subset of TIFF/IT-LW specified for simpler implementation.

            NOTE TIFF/IT-LW files are not readable by typical TIFF 6.0 readers and cannot be written by typical TIFF 6.0 writers
            because of the mandatory use of TIFF/IT-specific fields and values and non-traditional interpretations of other TIFF 6.0
            fields and values (e.g. compression by mandatory run length encoding).
        </description>

        <rule id="TIFF-IT-LW-P1-0001" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 BitsPerSample valid value </title>
            <description>BitsPerSample valid value on a Colour line-art picture (LW) file must be 8</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=BitsPerSample] == 8">Invalid BitsPerSample value. BitsPerSample on a Colour line-art picture (LW) file must be 8</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0002" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 Compression valid value </title>
            <description>Compression value on a Colour line-art picture (LW) picture must be IT8 Linework RLE (32896)</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=Compression] == 32896}">Invalid Compression value, Compression should be  IT8 Linework RLE (32896)</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0003" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 PhotometricInterpretation valid value </title>
            <description>PhotometricInterpretation value on a Colour line-art picture (LW) picture must be CMYK (5)</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 5}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be CMYK (5)</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0004" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 SamplesPerPixel valid value </title>
            <description>SamplesPerPixel value on a Colour line-art picture (LW) picture must be 1</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=SamplesPerPixel] == 1}">Invalid SamplesPerPixel value, SamplesPerPixel should be 1</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0005" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 InkSet valid value </title>
            <description>InkSet value on a Colour line-art picture (LW) picture must be 1</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=InkSet] == 1}">Invalid InkSet value, InkSet should be 1</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0006" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 InkNames forbidden tag </title>
            <description>InkNames is forbidden a Colour line-art picture (LW) picture</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{!tags.tag[name=InkNames]}">InkNames is forbidden a Colour line-art picture (LW) picture</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0007" context="ifd[filetype=lw]" level="error" experimental="true">
            <title>TIFF/IT-LW/P1 NumberOfInks match SamplesPerPixel</title>
            <description>If NumberOfInks tag is used on a Colour line-art picture (LW) TIFF/IT P1 file, it must have the same value as the value of SamplesPerPixel</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=NumberOfInks] == tags.tag[name=SamplesPerPixel]}">NumberOfInks tag on a Colour line-art picture (LW) TIFF/IT P1 file, must have the same value as the value of SamplesPerPixel</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0008" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 NumberOfInks valid value</title>
            <description>If NumberOfInks tag is used on a Colour line-art picture (LW) TIFF/IT P1 file, it must be 4</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=NumberOfInks] == 4}">Invalid NumberOfInks. If NumberOfInks tag is used, it must be 4</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0009" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 DotRange valid value</title>
            <description>If DotRange tag is used on a Colour line-art picture (LW) TIFF/IT P1 file, it must be 0,255</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=DotRange] == 0,255}">Invalid DotRange. If DotRange tag is used, it must be 0,255</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0010" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 ColorSequence is forbidden</title>
            <description>ColorSequence on a Colour line-art picture (LW) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence on a Colour line-art picture (LW) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0011" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 BitsPerRunLength valid value</title>
            <description>BitsPerRunLength on a Colour line-art picture (LW) TIFF/IT P1 file must be 8</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=BitsPerRunLength] == 8}">Invalid BitsPerRunLength. BitsPerRunLength on a Colour line-art picture (LW) TIFF/IT P1 file must be 8</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0012" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 BitsPerExtendedRunLength valid value</title>
            <description>BitsPerExtendedRunLength on a Colour line-art picture (LW) TIFF/IT P1 file must be 16</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=BitsPerExtendedRunLength] == 16}">Invalid BitsPerExtendedRunLength. BitsPerExtendedRunLength on a Colour line-art picture (LW) TIFF/IT P1 file must be 16</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0013" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 ColorTable is mandatory</title>
            <description>ColorTable is mandatory for on a Colour line-art picture (LW) TIFF/IT P1 </description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{tags.tag[name=ColorTable]}">ColorTable is mandatory for on a Colour line-art picture (LW) TIFF/IT P1 </assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0014" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 TrapIndicator is forbidden</title>
            <description>TrapIndicator on a Colour line-art picture (LW) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{!tags.tag[name=TrapIndicator]}">TrapIndicator on a Colour line-art picture (LW) TIFF/IT P1 file is forbidden</assert>
        </rule>

        <rule id="TIFF-IT-LW-P1-0015" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 CMYKEquivalent is forbidden</title>
            <description>CMYKEquivalent on a Colour line-art picture (LW) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{!tags.tag[name=CMYKEquivalent]}">>CMYKEquivalent on a Colour line-art picture (LW) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-LW-P1-0016" context="ifd[filetype=lw]" level="error">
            <title>TIFF/IT-LW/P1 InterColourProfile is forbidden</title>
            <description>InterColourProfile on a Colour line-art picture (LW) TIFF/IT P1 file is forbidden</description>
            <reference>
                <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page>
            </reference>
            <assert test="{!tags.tag[name=InterColourProfile]}">InterColourProfile on a Colour line-art picture (LW) TIFF/IT P1 file is forbidden</assert>
        </rule>
    </rules>

    <rules id="TIFF-IT-HC-P1">
        <title>High-resolution continuous-tone (HC) file</title>
        <description>High-resolution continuous-tone data consist of an image file of one or more blocks of run-length encoded
            pixel data. The number of lines is defined in the ImageLength field. Each line is made up of pixel runs and
            starts and ends with a blank pixel run (all zero bytes). Each pixel run is made up of two components: a run
            length followed by a colour value. The run length is a 16-bit integer as defined in 7.4.2.4.2. The big-endian
            byte order is used regardless of the order used in the TIFF/IT directories (IFD). The sum of the run lengths in
            the line shall be the value found in ImageWidth. Run lengths shall not cross line boundaries. The colour value
            is defined by the values of SamplesPerPixel, BitsPerSample, ColorSequence and DotRange in the same
            manner that CT colour values are specified, except that a special case of colour value is reserved for a
            transparent colour, if used.

            TIFF/IT field 34028 is used as the transparency indicator. If transparency is used, colour values of zero
            become a special case, and signify transparency in that separation of the high-resolution continuous-tone
            (HC) data. Transparency indicates that the underlying colour picture separation value is used.

            TIFF/IT-HC/P1 is a simplified image file format profile for high-resolution continuous-tone (HC) image data and
            can be considered a constrained subset of TIFF/IT-HC specifically intended for simpler implementation.

            NOTE TIFF/IT-HC/P1 is not readable by typical TIFF 6.0 readers and cannot
            be written by typical TIFF 6.0 writers because of the mandatory use of TIFF/IT-specific fields and values and nontraditional
            interpretations of other TIFF 6.0 fields and values (e.g. compression by mandatory run-length encoding).
        </description>
        <rule id="TIFF-IT-HC-P1-0001" context="ifd[filetype=hc]" level="error" experimental="true">
            <title>TIFF/IT-HC/P1 BitsPerSample valid values</title>
            <description>BitsPerSample on a  High-resolution continuous-tone data (HC) file must be [8,8,8,8]</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{tags.tag[name=BitsPerSample] == '8,8,8,8'}">Invalid BitsPerSample value. BitsPerSample should be [8,8,8,8]</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0002" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 Compression valid value </title>
            <description>Compression valid values for High-resolution continuous-tone data (HC) is IT8MP Run-length encoding, used with HC format (32897)</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{tags.tag[name=Compression] == 32897}">Invalid Compression. Compression for High-resolution continuous-tone data should be IT8MP Run-length encoding (32897)</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0003" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 PhotometricInterpretation valid value</title>
            <description>PhotometricInterpretation valid value for High-resolution continuous-tone data (HC) is CMYK (5)</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 5}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be CMYK (5)</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0004" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 SamplesPerPixel valid value</title>
            <description>SamplesPerPixel value ofor High-resolution continuous-tone data (HC) must be 4</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{tags.tag[name=SamplesPerPixel] == 4}">Invalid SamplesPerPixel value, SamplesPerPixel should be 4</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0005" context="ifd[filetype=hc]]" level="error">
            <title>TIFF/IT-HC/P1 PlanarConfiguration valid value</title>
            <description>PlanarConfiguration  for a High-resolution continuous-tone data (HC) must be 1</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{tags.tag[name=PlanarConfiguration] == 1}">Invalid PlanarConfiguration. PlanarConfiguration for a High-resolution continuous-tone data (HC) should be 1</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0006" context="ifd[filetype=hc]]" level="error">
            <title>TIFF/IT-HC/P1 InkSet valid value</title>
            <description>InkSet for a High-resolution continuous-tone data (HC) must be 1</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{tags.tag[name=InkSet] == 1}">Invalid InkSet. InkSet for a High-resolution continuous-tone data (HC) should be 1</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0007" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 InkNames is forbidden</title>
            <description>InkNames for a High-resolution continuous-tone data (HC) P1 is forbidden</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{!tags.tag[name=InkNames]}">InkNames for a High-resolution continuous-tone data (HC) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0008" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 NumberOfInks valid value</title>
            <description>SamplesPerPixel value for High-resolution continuous-tone data (HC) must be 4</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{tags.tag[name=NumberOfInks] == 4}">Invalid NumberOfInks value, SamplesPerPixel should be 4</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0009" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 DotRange valid value</title>
            <description>If DotRange tag is used for High-resolution continuous-tone data (HC) TIFF/IT P1 file, it must be 0,255</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{tags.tag[name=DotRange] == 0,255}">Invalid DotRange. If DotRange tag is used, it must be 0,255</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0010" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 ColorSequence is forbidden</title>
            <description>ColorSequence for a High-resolution continuous-tone data (HC) P1 is forbidden</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence for a High-resolution continuous-tone data (HC) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0011" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 TrapIndicator is forbidden</title>
            <description>TrapIndicator for a High-resolution continuous-tone data (HC) P1 is forbidden</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{!tags.tag[name=TrapIndicator]}">TrapIndicator for a High-resolution continuous-tone data (HC) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0012" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 CMYKEquivalent is forbidden</title>
            <description>CMYKEquivalent for a High-resolution continuous-tone data (HC) P1 is forbidden</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{!tags.tag[name=CMYKEquivalent]}">CMYKEquivalent for a High-resolution continuous-tone data (HC) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-HC-P1-0013" context="ifd[filetype=hc]" level="error">
            <title>TIFF/IT-HC/P1 ICCProfile is forbidden</title>
            <description>ICCProfile for a High-resolution continuous-tone data (HC) P1 is forbidden</description>
            <reference>
                <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page>
            </reference>
            <assert test="{!tags.tag[name=ICCProfile]}">ICCProfile for a High-resolution continuous-tone data (HC) TIFF/IT P1 file is forbidden</assert>
        </rule>
    </rules>

    <rules id="TIFF-IT-MP-P1">
        <title>Monochrome continuous-tone picture (MP) file</title>
        <description>The image-colour values for a pixel are obtained by combining the colour values for each of the colour
            components with the pixel-intensity values in the data stream. This applies to foreground colours only.
            Monochrome continuous-tone pictures do not have background-colour specifications.The scaling of these
            intensity values is linear with respect to printing-dot percent.

            TIFF/IT-MP/P1 is a simplified image file format profile for monochrome continuous-tone picture image (MP)
            data and can be considered a constrained subset of TIFF/IT-MP specifically intended for simpler
            implementation.

            TIFF/IT-MP/P1 does not permit any compression of image data.

            NOTE  TIFF/IT-MP/P1 files can be read by typical TIFF 6.0 readers and be written by typical TIFF 6.0 writers.
            TIFF/IT-MP/P1 files will be recognized by baseline TIFF 6.0 readers as Grayscale images as described in Section 4 of the
            TIFF 6.0 specification. As such, all reference to colour specifications will be lost, since those fields describing colour are
            not recognized by a baseline TIFF 6.0 reader.</description>

        <rule id="TIFF-IT-MP-P1-0001" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 BitsPerSample valid values</title>
            <description>BitsPerSample on a Monochrome continuous-tone picture (MP) file must be 8</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="tags.tag[name=BitsPerSample] == 8}">Invalid BitsPerSample value. BitsPerSample should be 8</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0002" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 Compression valid values </title>
            <description>Compression valid value for Monochrome continuous-tone picture (MP) file is:
                1 = No compression</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{tags.tag[name=Compression] == 1}">Invalid Compression for Monochrome continuous-tone picture (MP) file</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0003" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 PhotometricInterpretation valid values</title>
            <description>PhotometricInterpretation valid value for  Monochrome continuous-tone picture (MP) is WhiteIsZero (0)</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 0}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be  WhiteIsZero (0)</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0004" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 SamplesPerPixel valid value</title>
            <description>SamplesPerPixel for Monochrome continuous-tone picture (MP) should be 1</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{tags.tag[name=SamplesPerPixel] == 1}">Invalid SamplesPerPixel. SamplesPerPixel for  Monochrome continuous-tone picture (MP) should be 1</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0005" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 InkSet is forbidden</title>
            <description>InkSet for Monochrome continuous-tone picture (MP) P1 is forbidden</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{!tags.tag[name=InkSet]}">InkSet for a Monochrome continuous-tone picture (MP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0006" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 InkNames is forbidden</title>
            <description>InkNames for Monochrome continuous-tone picture (MP) P1 is forbidden</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{!tags.tag[name=InkNames]}">InkNames for a Monochrome continuous-tone picture (MP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0007" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 NumberOfInks is forbidden</title>
            <description>NumberOfInks for Monochrome continuous-tone picture (MP) P1 is forbidden</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{!tags.tag[name=NumberOfInks]}">NumberOfInks for a Monochrome continuous-tone picture (MP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0008" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 DotRange valid value</title>
            <description>If DotRange tag is used for Monochrome continuous-tone picture (MP) TIFF/IT P1 file, it must be 0,255</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{tags.tag[name=DotRange] == 0,255}">Invalid DotRange. If DotRange tag is used, it must be 0,255</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0009" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 ColorSequence is forbidden</title>
            <description>ColorSequence for Monochrome continuous-tone picture (MP) P1 is forbidden</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence for a Monochrome continuous-tone picture (MP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0010" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 RasterPadding is forbidden</title>
            <description>RasterPadding for Monochrome continuous-tone picture (MP) P1 is forbidden</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{!tags.tag[name=RasterPadding]}">RasterPadding for a Monochrome continuous-tone picture (MP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0011" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 ImageColorValue mandatory</title>
            <description>In a Monochrome continuous-tone picture (MP) file If ImageColorIndicator value is 1, ImageColorValue is mandatory. </description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{tags.tag[name=ImageColorIndicator]!=1} || {tags.tag[name=ImageColorValue]}">ImageColorValue is mandatory. If ImageColorIndicator is 1 in Monochrome continuous-tone picture (MP) file.</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0012" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 ImageColorValue forbidden</title>
            <description>In a Monochrome continuous-tone picture (MP) file If ImageColorIndicator value is 0, ImageColorValue is forbidden. </description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{tags.tag[name=ImageColorIndicator] || {tags.tag[name=ImageColorIndicator]!=0} || {!tags.tag[name=ImageColorValue]}">ImageColorValue is forbidden if ImageColorIndicator is 0 in Monochrome continuous-tone picture (MP) file.</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0013" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 PixelIntensityRange valid value</title>
            <description>If PixelIntensityRange tag is used for Monochrome continuous-tone picture (MP) TIFF/IT P1 file, it must be 0,255</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{tags.tag[name=PixelIntensityRange] == 0,255}">Invalid PixelIntensityRange. If PixelIntensityRange tag is used, it must be 0,255</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0014" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 TrapIndicator is forbidden</title>
            <description>TrapIndicator for Monochrome continuous-tone picture (MP) P1 is forbidden</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{!tags.tag[name=TrapIndicator]}">TrapIndicator for a Monochrome continuous-tone picture (MP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0015" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 CMYKEquivalent is forbidden</title>
            <description>CMYKEquivalent for Monochrome continuous-tone picture (MP) P1 is forbidden</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{!tags.tag[name=CMYKEquivalent]}">CMYKEquivalent for a Monochrome continuous-tone picture (MP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0016" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 ICCProfile is forbidden</title>
            <description>ICCProfile for Monochrome continuous-tone picture (MP) P1 is forbidden</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{!tags.tag[name=ICCProfile]}">ICCProfile for a Monochrome continuous-tone picture (MP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-MP-P1-0017" context="ifd[filetype=mp]" level="error">
            <title>TIFF/IT-MP/P1 ImageColorIndicator valid values</title>
            <description>In a Monochrome continuous-tone picture (MP) file ImageColorIndicator valid values are:
                0 = image/background colour not defined (default value);
                1 = image/background colour defined;</description>
            <reference>
                <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page>
            </reference>
            <assert test="{tags.tag[name=ImageColorIndicator] == 1}  || {tags.tag[name=ImageColorIndicator] == 0} ">Invalid ImageColorIndicator value. ImageColorIndicator in Monochrome continuous-tone picture (MP) file should be 0 or 1.</assert>
        </rule>
    </rules>

    <rules id="TIFF-IT-BP-P1">
        <title>Binary picture (BP) file</title>
        <description>For binary pictures, ImageColorValue and BackgroundColorValue may contain the values of the colour
            components for the image (foreground) and background colour, specified in the sequence as defined in
            ColorSequence. These colour values apply to the solid image and background colours for binary pictures.
            The data stream indicates which of the colours, foreground and background, will print. The bits in the data
            stream function as a switch between the image colour and the background colour. Bitmap fill order is from
            most significant bit to least significant bit within the byte, the default TIFF fill order. ImageColorIndicator and
            BackgroundColorIndicator field values shall be used to indicate when, if, and how image and background
            colours are used, including the use of transparency.

            TIFF/IT-BP/P1 limit the field values to the default value, a single value or a small choice of values. TIFF/IT-BP/P1 also limit the usage of
            optional fields to the minimum required for reasonable interchange.

            NOTE TIFF/IT-BP/P1 is a simplified image file format profile for binary picture (BP) image data and can be
            considered a constrained subset of TIFF/IT-BP specifically intended for simpler implementation. TIFF/IT-BP/P1 files can
            be read by typical TIFF 6.0 readers and be written by typical TIFF 6.0 writers. TIFF/IT-BP/P1 files will be recognized by
            baseline TIFF 6.0 readers as Bilevel Images as described by Section 3 of the TIFF 6.0 specification. As such, all reference
            to colour specifications will be lost since those fields describing colour are not recognized by a baseline TIFF 6.0 reader.
        </description>

        <rule id="TIFF-IT-BP-P1-0001" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 BitsPerSample valid values</title>
            <description>BitsPerSample on a Binary picture (BP) file must be 1</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="tags.tag[name=BitsPerSample] == 1}">Invalid BitsPerSample value. BitsPerSample should be 1</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0002" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 Compression valid values </title>
            <description>Compression valid values for  Binary picture (BP) file is:
                1 = No compression</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{tags.tag[name=Compression] == 1}">Invalid Compression for Binary picture (BP) file</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0003" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 PhotometricInterpretation valid value</title>
            <description>PhotometricInterpretation valid value for Binary picture (BP) is WhiteIsZero</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 0}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be  WhiteIsZero (0)</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0004" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 SamplesPerPixel valid value</title>
            <description>SamplesPerPixel for Binary picture (BP) should be 1</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{tags.tag[name=SamplesPerPixel] == 1}">Invalid SamplesPerPixel. SamplesPerPixel for Binary picture (BP) should be 1</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0005" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 InkSet is forbidden</title>
            <description>InkSet for Binary picture (BP) P1 is forbidden</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{!tags.tag[name=InkSet]}">InkSet for a Binary picture (BP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0006" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 InkNames is forbidden</title>
            <description>InkNames for Binary picture (BP) P1 is forbidden</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{!tags.tag[name=InkNames]}">InkNames for a Binary picture (BP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0007" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 NumberOfInks is forbidden</title>
            <description>NumberOfInks for Binary picture (BP) P1 is forbidden</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{!tags.tag[name=NumberOfInks]}">NumberOfInks for a Binary picture (BP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0008" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 DotRange valid value</title>
            <description>If DotRange tag is used forBinary picture (BP) TIFF/IT P1 file, it must be 0,255</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{tags.tag[name=DotRange] == 0,255}">Invalid DotRange. If DotRange tag is used, it must be 0,255</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0009" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 ColorSequence is forbidden</title>
            <description>ColorSequence for Binary picture (BP) P1 is forbidden</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence for a Binary picture (BP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0010" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 ImageColorValue mandatory</title>
            <description>In a  Binary picture (BP) file If ImageColorIndicator value is 1, ImageColorValue is mandatory. </description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{tags.tag[name=ImageColorIndicator]!=1} || {tags.tag[name=ImageColorValue]}">ImageColorValue is mandatory. If ImageColorIndicator is 1 in Binary picture (BP) file.</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0011" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 ImageColorValue forbidden</title>
            <description>In a  Binary picture (BP) file If ImageColorIndicator value is 0, ImageColorValue is forbidden. </description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{tags.tag[name=ImageColorIndicator] || {tags.tag[name=ImageColorIndicator]!=0} || {!tags.tag[name=ImageColorValue]}">ImageColorValue is forbidden if ImageColorIndicator is 0 in Binary picture (BP) file.</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0012" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 BackgroundColorValue mandatory</title>
            <description>In a  Binary picture (BP) file If BackgroundColorIndicator value is 1, BackgroundColorValue is mandatory. </description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{tags.tag[name=BackgroundColorIndicator]!=1} || {tags.tag[name=BackgroundColorValue]}">BackgroundColorValue is mandatory. If BackgroundColorIndicator is 1 in Binary picture (BP) file.</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0013" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 BackgroundColorValue forbidden</title>
            <description>In a  Binary picture (BP) file If BackgroundColorIndicator value is 0, BackgroundColorValue is forbidden. </description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{tags.tag[name=BackgroundColorIndicator] || {tags.tag[name=BackgroundColorIndicator]!=0} || {!tags.tag[name=BackgroundColorValue]}">BackgroundColorValue is forbidden if BackgroundColorIndicator is 0 in Binary picture (BP) file.</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0014" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 TrapIndicator is forbidden</title>
            <description>TrapIndicator for Binary picture (BP) P1 is forbidden</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{!tags.tag[name=TrapIndicator]}">TrapIndicator for a Binary picture (BP) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BP-P1-0015" context="ifd[filetype=bp]" level="error">
            <title>TIFF/IT-BP/P1 CMYKEquivalent is forbidden</title>
            <description>CMYKEquivalent for Binary picture (BP) P1 is forbidden</description>
            <reference>
                <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page>
            </reference>
            <assert test="{!tags.tag[name=CMYKEquivalent]}">CMYKEquivalent for a Binary picture (BP) TIFF/IT P1 file is forbidden</assert>
        </rule>
    </rules>

    <rules id="TIFF-IT-BL-P1">
        <title>Binary line-art (BL) file</title>
        <description>Each line of data shall be encoded as a sequence of pairs of background and image run lengths. Each new
            scan line shall start with a background run. In the case where a continuous background or an image section of
            a scan line has to be encoded by more than one run length pair, a zero run-length of the “opposite” colour
            shall be inserted.
            For binary line-art, the data stream indicates which of the colours, foreground or background, will print. The
            decoded run lengths of the data stream function as a switch between the image (foreground) colour and the
            background colour.

            TIFF/IT-BL/P1 limits the field values to the default value, a single value
            or a small choice of values. TIFF/IT-BL/P1 also limits the usage of optional fields to the minimum required for
            reasonable interchange.

            NOTE TIFF/IT-BL/P1 files are not readable by typical TIFF 6.0 readers and neither can be written
            by typical TIFF 6.0 writers because of the mandatory use of TIFF/IT-specific fields and values, and non-traditional
            interpretations of other TIFF 6.0 fields and values (e.g., compression by mandatory run length encoding). It is possible to
            write filters for DTP applications that need to read and write TIFF/IT-BL/P1 files.The filters for
            TIFF/IT-BL/P1, as it is a simplified profile, are easier to implement than for TIFF/IT-BL. </description>

        <rule id="TIFF-IT-BL-P1-0001" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 BitsPerSample valid values</title>
            <description>BitsPerSample on a Binary line-art (BL) file must be 1</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="tags.tag[name=BitsPerSample] == 1}">Invalid BitsPerSample value. BitsPerSample should be 1</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0002" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 Compression valid values </title>
            <description>Compression valid value on a Binary line-art (BL) is:
                32895 = IT8CTPAD</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{tags.tag[name=Compression] == 32895}">Invalid Compression on a Binary line-art (BL) file. compression should be IT8CTPAD</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0003" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 PhotometricInterpretation valid values</title>
            <description>PhotometricInterpretation valid value on a Binary line-art (BL) es WhiteIsZero (0)</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 0} || {tags.tag[name=PhotometricInterpretation] == 1}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be WhiteIsZero (0)</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0004" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 SamplesPerPixel valid value</title>
            <description>SamplesPerPixel on a Binary line-art (BL) should be 1</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{tags.tag[name=SamplesPerPixel] == 1}">Invalid SamplesPerPixel. SamplesPerPixel on a Binary line-art (BL) should be 1</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0005" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 InkSet is forbidden</title>
            <description>InkSet on a Binary line-art (BL) P1 is forbidden</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{!tags.tag[name=InkSet]}">InkSet on a Binary line-art (BL) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0006" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 InkNames is forbidden</title>
            <description>InkNames on a Binary line-art (BL) P1 is forbidden</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{!tags.tag[name=InkNames]}">InkNames on a Binary line-art (BL) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0007" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 NumberOfInks is forbidden</title>
            <description>NumberOfInks on a Binary line-art (BL) P1 is forbidden</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{!tags.tag[name=NumberOfInks]}">NumberOfInks on a Binary line-art (BL) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0008" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 DotRange valid value</title>
            <description>If DotRange tag is used on a Binary line-art (BL) TIFF/IT P1 file, it must be 0,255</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{tags.tag[name=DotRange] == 0,255}">Invalid DotRange. If DotRange tag is used, it must be 0,255</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0009" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 ColorSequence is forbidden</title>
            <description>ColorSequence on a Binary line-art (BL) P1 is forbidden</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence on a Binary line-art (BL) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0010" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 ImageColorValue mandatory</title>
            <description>On a Binary line-art (BL) file If ImageColorIndicator value is 1, ImageColorValue is mandatory. </description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{tags.tag[name=ImageColorIndicator]!=1} || {tags.tag[name=ImageColorValue]}">ImageColorValue is mandatory. If ImageColorIndicator is 1 on a Binary line-art (BL) file.</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0011" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 ImageColorValue forbidden</title>
            <description>>On a Binary line-art (BL) file If ImageColorIndicator value is 0, ImageColorValue is forbidden. </description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{tags.tag[name=ImageColorIndicator] || {tags.tag[name=ImageColorIndicator]!=0} || {!tags.tag[name=ImageColorValue]}">ImageColorValue is forbidden if ImageColorIndicator is 0 on a Binary line-art (BL) file.</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0012" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 BackgroundColorValue mandatory</title>
            <description>>On a Binary line-art (BL) file If BackgroundColorIndicator value is 1, BackgroundColorValue is mandatory. </description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{tags.tag[name=BackgroundColorIndicator]!=1} || {tags.tag[name=BackgroundColorValue]}">BackgroundColorValue is mandatory. If BackgroundColorIndicator is 1 on a Binary line-art (BL) file.</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0013" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 BackgroundColorValue forbidden</title>
            <description>>On a Binary line-art (BL) file If BackgroundColorIndicator value is 0, BackgroundColorValue is forbidden. </description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{tags.tag[name=BackgroundColorIndicator] || {tags.tag[name=BackgroundColorIndicator]!=0} || {!tags.tag[name=BackgroundColorValue]}">BackgroundColorValue is forbidden if BackgroundColorIndicator is 0 on a Binary line-art (BL) file.</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0014" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 TrapIndicator is forbidden</title>
            <description>TrapIndicator on a Binary line-art (BL) P1 is forbidden</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{!tags.tag[name=TrapIndicator]}">TrapIndicator on a Binary line-art (BL) TIFF/IT P1 file is forbidden</assert>
        </rule>
        <rule id="TIFF-IT-BL-P1-0015" context="ifd[filetype=bl]" level="error">
            <title>TIFF/IT-BL/P1 CMYKEquivalent is forbidden</title>
            <description>CMYKEquivalent on a Binary line-art (BL) P2 is forbidden</description>
            <reference>
                <section>Section 7.8.3: TIFF/IT-BL and TIFF/IT-BL/P1 encoding</section><page>41</page>
            </reference>
            <assert test="{!tags.tag[name=CMYKEquivalent]}">CMYKEquivalent on a Binary line-art (BL) TIFF/IT P1 file is forbidden</assert>
        </rule>
    </rules>

    <rules id="TIFF-IT-FP-P1">
        <title>Final page (FP) file</title>
        <description>Typically, a final page, ready for exposure on an output recorder, consists of more than one of the CT, MP, SD,
            LW, BL, BP and HC raster formats described in this International Standard. TIFF/IT-FP provides a mechanism
            for associating image files of the different types that make up a final page.

            By default, it is assumed that, for each image type, the page assembly processes have combined all the pageinput
            components of that data type into one output file: the single-component image file of that data type for
            the page, though this is a requirement only for both TIFF/IT-P1 and TIFF/IT-P2 conformance.

            The component-image files of a final page may be of any one of the TIFF/IT, TIFF/IT-P1, or TIFF/IT-P2
            conformance levels. The final page is considered to be TIFF/IT-P1-conformant only if all of its component files
            are TIFF/IT-P1-conformant and its own fields are TIFF/IT-FP/P1-conformant as specified in 7.10.2.5. The final
            page is considered to be TIFF/IT-P2-conformant only if all of its component files are TIFF/IT-P1- or
            TIFF/IT-P2-conformant and its own fields are TIFF/IT-FP/P2-conformant as specified in 7.10.2.5.</description>

        <rule id="TIFF-IT-FP-P1-0001" context="ifd[filetype=fp]" level="error">
            <title>TIFF/IT-FP/P1 NewSubfileType valid value</title>
            <description>NewSubfileType on Final page (FP) file should be bigger than 7</description>
            <reference>
                <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType] &gt; 7}">Invalid NewSubfileType. NewSubfileType value on Final page (FP) file should be bigger than 7</assert>
        </rule>
        <rule id="TIFF-IT-FP-P1-0002" context="ifd[filetype=fp]" level="error" experimental="true">
            <title>TIFF/IT-FP/P1 ImageWidth valid value</title>
            <description>ImageWidth on Final page (FP) file must be any  value  such that ImageWidth divided by XResolution equals the exact actual page width in ResolutionUnits.</description>
            <reference>
                <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page>
            </reference>
            <assert test="{tags.tag[name=ImageWidth] % {tags.tag[name=XResolution] == 0}">Invalid ImageWidth. ImageWidth value on Final page (FP)must be any  value  such that ImageWidth divided by XResolution equals the exact actual page width in ResolutionUnits</assert>
        </rule>
        <rule id="TIFF-IT-FP-P1-0003" context="ifd[filetype=fp]" level="error" experimental="true">
            <title>TIFF/IT-FP/P1 ImageLength valid value</title>
            <description>ImageLength on Final page (FP) file must be any  value  such that ImageWidth divided by YResolution equals the exact actual page width in ResolutionUnits.</description>
            <reference>
                <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page>
            </reference>
            <assert test="{tags.tag[name=ImageLength] % {tags.tag[name=YResolution] == 0}">Invalid ImageLength. ImageLength value on Final page (FP)must be any  value  such that ImageLength divided by YResolution equals the exact actual page width in ResolutionUnits</assert>
        </rule>
        <rule id="TIFF-IT-FP-P1-0004" context="ifd[filetype=fp]" level="error" experimental="true">
            <title>TIFF/IT-FP/P1 ImageDescription mandatory</title>
            <description>ImageDescription on Final page (FP) file is mandatory and must contain the name of the FP file at creation time, in order to facilitate identifying it in case of a subsequent rename.</description>
            <reference>
                <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page>
            </reference>
            <assert test="{tags.tag[name=ImageDescription]}">ImageDescription on Final page (FP) file is mandatory and must contain the name of the FP file at creation time, in order to facilitate identifying it in case of a subsequent rename</assert>
        </rule>
        <rule id="TIFF-IT-FP-P1-0005" context="ifd[filetype=fp]" level="error" experimental="true">
            <title>TIFF/IT-FP/P1 PlanarConfiguration valid value</title>
            <description>PlanarConfiguration on Final page (FP) file must be chunky (1).</description>
            <reference>
                <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page>
            </reference>
            <assert test="{tags.tag[name=PlanarConfiguration] == 1}">Invalid PlanarConfiguration. PlanarConfiguration on Final page (FP) file should be chunky (1)</assert>
        </rule>
    </rules>

</implementationCheckerObject>





© 2015 - 2024 Weber Informatics LLC | Privacy Policy