 #===========================================================================
# allowed DPIs
#===========================================================================
dpis:
  - 96
  - 150
  - 300

#===========================================================================
# the allowed scales
#===========================================================================
scales:
  - 500
  - 1000
  - 2000
  - 5000
  - 10000
  - 20000
  - 50000
  - 100000
  - 200000
  - 500000
  - 100000
  - 500000
  - 1000000
  - 2000000
  - 4000000
  - 10000000
  - 20000000

formats:
  - '*'

#===========================================================================
# the list of allowed hosts
#===========================================================================
hosts:
  - !localMatch
    dummy: true

  - !ipMatch
    ip: 127.0.0.1
    # Allow to all hosts
    mask: 0.0.0.0

  - !acceptAll
    dummy: true

brokenUrlPlaceholder: 'data:png,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='
disableScaleLocking: true

layouts:
  #=======A4 portrait with legend=============================================
  A4 :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 595 842
      landscape: false
      items:
        - !columns
          absoluteX: 30
          absoluteY: 800
          width: 550
          items:
            - !image
              maxWidth: 550
              url: 'file://${configDir}/print_header.png'
        - !map
          height: 600
          width: 400
          absoluteX: 30
          absoluteY: 670
        #legend panel
        - !columns
          config:
            borderWidth: 1
            cells:
              - borderWidth: 2
                borderWidthLeft: 1
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [155]
          absoluteX: 435
          absoluteY: 670
          width: 155
          items:
            - !legends
              horizontalAlignment: left
              #iconMaxWidth: 150
              maxWidth: 150
              iconMaxHeight: 0
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              failOnBrokenUrl: false
        - !columns
          absoluteX: 370
          absoluteY: 140
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 30
          absoluteY: 745
          width: 395
          widths: [395]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 30
          absoluteY: 715
          width: 395
          widths: [395]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 30
          absoluteY: 60
          width: 395
          widths: [240, 240]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 30
          absoluteY: 40
          width: 395
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A4 landscape with legend============================================
  A4_landscape :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 842 595
      landscape: false
      items:
        - !columns
          absoluteX: 30
          absoluteY: 575
          width: 782
          items:
            - !image
              maxWidth: 782
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 592
          height: 400
          absoluteX: 30
          absoluteY: 475
        #legend panel
        - !columns
          config:
            borderWidth: 1
            cells:
              - borderWidth: 2
                borderWidthLeft: 1
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [170]
          absoluteX: 642
          absoluteY: 475
          width: 170
          items:
            - !legends
              horizontalAlignment: left
              #iconMaxWidth: 150
              maxWidth: 160
              iconMaxHeight: 0
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              failOnBrokenUrl: false
        - !columns
          absoluteX: 590
          absoluteY: 140
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 30
          absoluteY: 60
          width: 782
          widths: [240, 300, 240]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 30
          absoluteY: 40
          width: 592
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A4 portrait no legend=============================================
  A4_no_legend :
  #=========================================================================
    mainPage:
      rotation: true
      pageSize: 595 842
      landscape: false
      items:
        - !columns
          absoluteX: 30
          absoluteY: 800
          width: 550
          items:
            - !image
              maxWidth: 550
              url: 'file://${configDir}/print_header.png'
        - !map
          height: 600
          width: 535
          absoluteX: 30
          absoluteY: 670
        - !columns
          absoluteX: 510
          absoluteY: 140
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 30
          absoluteY: 745
          width: 395
          widths: [395]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 30
          absoluteY: 715
          width: 395
          widths: [395]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 30
          absoluteY: 60
          width: 535
          widths: [240, 240]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 30
          absoluteY: 40
          width: 535
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A4 landscape no legend=============================================
  A4_no_legend_landscape :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 842 595
      landscape: false
      items:
        - !columns
          absoluteX: 30
          absoluteY: 575
          width: 782
          items:
            - !image
              maxWidth: 782
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 780
          height: 400
          absoluteX: 30
          absoluteY: 475
        - !columns
          absoluteX: 750
          absoluteY: 140
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 30
          absoluteY: 60
          width: 782
          widths: [240, 300, 240]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 30
          absoluteY: 40
          width: 780
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A4 portrait with 2 pages legend=====================================
  A4_2_pages_legend :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 595 842
      landscape: false
      items:
        - !columns
          absoluteX: 30
          absoluteY: 800
          width: 550
          items:
            - !image
              maxWidth: 550
              url: 'file://${configDir}/print_header.png'
        - !map
          height: 600
          width: 535
          absoluteX: 30
          absoluteY: 670
        - !columns
          absoluteX: 510
          absoluteY: 140
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 30
          absoluteY: 745
          width: 395
          widths: [395]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 30
          absoluteY: 715
          width: 395
          widths: [395]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 30
          absoluteY: 60
          width: 535
          widths: [240, 240]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 30
          absoluteY: 40
          width: 535
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
    lastPage:
      pageSize: 595 842
      landscape: false
      items:
        #legend panel
        - !columns
          config:
            borderWidth: 0
            cells:
              - borderWidth: 0
                borderWidthLeft: 0
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [500]
          absoluteX: 30
          absoluteY: 800
          width: 500
          items:
            - !legends
              failOnBrokenUrl: false
              horizontalAlignment: left
              iconMaxWidth: 0
              iconMaxHeight: 700
              maxHeight: 750
              maxColumns: 1
              maxWidth: 500
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              reorderColumns: true
              dontBreakItems: true
              overflow: true
  #=======A4 landscape with 2 pages legend====================================
  A4_2_pages_legend_landscape :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 842 595
      landscape: false
      items:
        - !columns
          absoluteX: 30
          absoluteY: 575
          width: 782
          items:
            - !image
              maxWidth: 782
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 780
          height: 400
          absoluteX: 30
          absoluteY: 475
        - !columns
          absoluteX: 750
          absoluteY: 140
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 30
          absoluteY: 60
          width: 782
          widths: [240, 300, 240]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 30
          absoluteY: 40
          width: 780
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
    lastPage:
      pageSize: 842 595
      landscape: false
      items:
        #legend panel
        - !columns
          config:
            borderWidth: 0
            cells:
              - borderWidth: 0
                borderWidthLeft: 0
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          absoluteX: 30
          absoluteY: 535
          width: 780
          widths: [780]
          items:
            - !legends
              failOnBrokenUrl: false
              horizontalAlignment: left
              iconMaxWidth: 0
              iconMaxHeight: 500
              maxHeight: 535
              maxColumns: 2
              maxWidth: 780
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              reorderColumns: true
              dontBreakItems: true
              overflow: true
  #=======A3 portrait with legend=============================================
  A3 :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 842 1190
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1150
          width: 800
          items:
            - !image
              maxWidth: 800
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 550
          height: 850
          absoluteX: 42
          absoluteY: 950
        #legend panel
        - !columns
          config:
            borderWidth: 1
            cells:
              - borderWidth: 2
                borderWidthLeft: 1
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [241]
          absoluteX: 598
          absoluteY: 950
          width: 240
          items:
            - !legends
              horizontalAlignment: left
              #iconMaxWidth: 150
              maxWidth: 240
              iconMaxHeight: 0
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              failOnBrokenUrl: false
        - !columns
          absoluteX: 540
          absoluteY: 180
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 1060
          width: 424
          widths: [424]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 42
          absoluteY: 1010
          width: 424
          widths: [424]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 42
          absoluteY: 65
          width: 550
          widths: [340, 424]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 40
          width: 550
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A3 landscape with legend============================================
  A3_landscape :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 1190 842
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 814
          width: 1105
          items:
            - !image
              maxWidth: 1105
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 837
          height: 594
          absoluteX: 42
          absoluteY: 700
        #legend panel
        - !columns
          config:
            borderWidth: 1
            cells:
              - borderWidth: 2
                borderWidthLeft: 1
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [241]
          absoluteX: 907
          absoluteY: 700
          width: 240
          items:
            - !legends
              horizontalAlignment: left
              #iconMaxWidth: 150
              maxWidth: 240
              iconMaxHeight: 0
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              failOnBrokenUrl: false
        - !columns
          absoluteX: 800
          absoluteY: 170
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 85
          width: 1105
          widths: [340, 424, 340]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 60
          width: 837
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A3 portrait no legend============================================
  A3_no_legend :
  #========================================================================
    mainPage:
      rotation: true
      pageSize: 842 1190
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1150
          width: 780
          items:
            - !image
              maxWidth: 780
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 760
          height: 850
          absoluteX: 42
          absoluteY: 950
        - !columns
          absoluteX: 730
          absoluteY: 180
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 1060
          width: 424
          widths: [424]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 42
          absoluteY: 1010
          width: 424
          widths: [424]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 42
          absoluteY: 65
          width: 760
          widths: [340, 424]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 40
          width: 760
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A3 landscape no legend============================================
  A3_no_legend_landscape :
  #=========================================================================
    mainPage:
      rotation: true
      pageSize: 1190 842
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 814
          width: 1105
          items:
            - !image
              maxWidth: 1105
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 1102
          height: 594
          absoluteX: 42
          absoluteY: 700
        - !columns
          absoluteX: 1060
          absoluteY: 198
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 85
          width: 1105
          widths: [339, 424, 339]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 60
          width: 1102
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A3 portrait two pages legend======================================
  A3_2_pages_legend :
  #=========================================================================
    mainPage:
      rotation: true
      pageSize: 842 1190
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1150
          width: 780
          items:
            - !image
              maxWidth: 780
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 760
          height: 850
          absoluteX: 42
          absoluteY: 950
        - !columns
          absoluteX: 730
          absoluteY: 180
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 1060
          width: 424
          widths: [424]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 42
          absoluteY: 1010
          width: 424
          widths: [424]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 42
          absoluteY: 65
          width: 760
          widths: [340, 424]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 40
          width: 760
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
    lastPage:
      pageSize: 842 1190
      landscape: false
      items:
        #legend panel
        - !columns
          config:
            borderWidth: 0
            cells:
              - borderWidth: 0
                borderWidthLeft: 0
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [440]
          absoluteX: 30
          absoluteY: 1150
          width: 440
          items:
            - !legends
              failOnBrokenUrl: false
              horizontalAlignment: left
              iconMaxWidth: 0
              iconMaxHeight: 1050
              maxHeight: 1050
              maxColumns: 2
              maxWidth: 800
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              reorderColumns: true
              dontBreakItems: true
              overflow: true
  #===========================================================================
  A3_2_pages_legend_landscape :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 1190 842
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 814
          width: 1105
          items:
            - !image
              maxWidth: 1105
              url: 'file://${configDir}/print_header.png'
        - !map
          width: 1102
          height: 594
          absoluteX: 42
          absoluteY: 700
        - !columns
          absoluteX: 1070
          absoluteY: 198
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file://${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 85
          width: 1105
          widths: [339, 424, 339]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 9
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 60
          width: 1102
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
    lastPage:
      pageSize: 1190 842
      landscape: false
      items:
        #legend panel
        - !columns
          config:
            borderWidth: 0
            cells:
              - borderWidth: 0
                borderWidthLeft: 0
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          absoluteX: 30
          absoluteY: 800
          width: 780
          widths: [780]
          items:
            - !legends
              failOnBrokenUrl: false
              horizontalAlignment: left
              iconMaxWidth: 0
              iconMaxHeight: 700
              maxHeight: 700
              maxColumns: 3
              maxWidth: 1000
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              reorderColumns: true
              dontBreakItems: true
              overflow: true
  #============================ A2 ===========================================
  #=======A2 portrait with legend=============================================
  A2 :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 1191 1684
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1650
          width: 1105
          items:
            - !image
              maxWidth: 1105
              url: '/${configDir}/print_header.png'
        - !map
          width: 837
          height: 1340
          absoluteX: 42
          absoluteY: 1400
        #legend panel
        - !columns
          config:
            borderWidth: 1
            cells:
              - borderWidth: 2
                borderWidthLeft: 1
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [170]
          absoluteX: 907
          absoluteY: 1520
          width: 240
          items:
            - !legends
              horizontalAlignment: left
              #iconMaxWidth: 150
              iconMaxHeight: 0
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 10
              classSpace: 4
              backgroundColor: #ffffff
              failOnBrokenUrl: false
        - !columns
          absoluteX: 834
          absoluteY: 198
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file:/${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 1525
          width: 1105
          widths: [424]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 42
          absoluteY: 1485
          width: 1105
          widths: [1105]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 42
          absoluteY: 55
          width: 837
          widths: [340, 424]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 35
          width: 837
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A2 landscape with legend============================================
  A2_landscape :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 1684 1191
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1151
          width: 1600
          items:
            - !image
              maxWidth: 1563
              url: '/${configDir}/print_header.png'
        - !map
          width: 1184
          height: 840
          absoluteX: 42
          absoluteY: 990
        #legend panel
        - !columns
          config:
            borderWidth: 1
            cells:
              - borderWidth: 2
                borderWidthLeft: 1
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [170]
          absoluteX: 1283
          absoluteY: 990
          width: 340
          items:
            - !legends
              horizontalAlignment: left
              #iconMaxWidth: 150
              iconMaxHeight: 0
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 10
              classSpace: 4
              backgroundColor: #ffffff
              failOnBrokenUrl: false
        - !columns
          absoluteX: 834
          absoluteY: 198
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file:/${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 85
          width: 1105
          widths: [339, 423, 339]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 65
          width: 1184
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A2 portrait no legend============================================
  A2_no_legend :
  #========================================================================
    mainPage:
      rotation: true
      pageSize: 1191 1684
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1650
          width: 1105
          items:
            - !image
              maxWidth: 1105
              url: '/${configDir}/print_header.png'
        - !map
          width: 1111
          height: 1340
          absoluteX: 42
          absoluteY: 1400
        - !columns
          absoluteX: 834
          absoluteY: 198
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file:/${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 1525
          width: 1105
          widths: [424]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 42
          absoluteY: 1485
          width: 1105
          widths: [1105]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 42
          absoluteY: 55
          width: 1111
          widths: [340, 424]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 35
          width: 1111
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A2 landscape no legend============================================
  A2_no_legend_landscape :
  #=========================================================================
    mainPage:
      rotation: true
      pageSize: 1684 1191
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1151
          width: 1600
          items:
            - !image
              maxWidth: 1563
              url: '/${configDir}/print_header.png'
        - !map
          width: 1600
          height: 840
          absoluteX: 42
          absoluteY: 990
        - !columns
          absoluteX: 834
          absoluteY: 198
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file:/${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 95
          width: 1600
          widths: [339, 423, 339]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 75
          width: 1600
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
  #=======A2 portrait two pages legend======================================
  A2_2_pages_legend :
  #=========================================================================
    mainPage:
      rotation: true
      pageSize: 1191 1684
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1650
          width: 1105
          items:
            - !image
              maxWidth: 1105
              url: '/${configDir}/print_header.png'
        - !map
          width: 1111
          height: 1340
          absoluteX: 42
          absoluteY: 1400
        - !columns
          absoluteX: 834
          absoluteY: 198
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file:/${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 1525
          width: 1105
          widths: [424]
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
        - !columns
          absoluteX: 42
          absoluteY: 1485
          width: 1105
          widths: [1105]
          items:
            - !text
              text: '${comment}'
              fontEncoding: Cp1252
              fontSize: 9
              align: left
              vertAlign: middle
        - !columns
          absoluteX: 42
          absoluteY: 55
          width: 1111
          widths: [340, 424]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 35
          width: 1111
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
    lastPage:
      pageSize: 1191 1684
      landscape: false
      items:
        #legend panel
        - !columns
          config:
            borderWidth: 0
            cells:
              - borderWidth: 0
                borderWidthLeft: 0
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          widths: [440]
          absoluteX: 30
          absoluteY: 1627
          width: 440
          items:
            - !legends
              failOnBrokenUrl: false
              horizontalAlignment: left
              iconMaxWidth: 0
              iconMaxHeight: 1486
              maxHeight: 1486
              maxColumns: 4
              maxWidth: 800
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              reorderColumns: true
              dontBreakItems: true
              overflow: true
  #===========================================================================
  A2_2_pages_legend_landscape :
  #===========================================================================
    mainPage:
      rotation: true
      pageSize: 1684 1191
      landscape: false
      items:
        - !columns
          absoluteX: 42
          absoluteY: 1151
          width: 1600
          items:
            - !image
              maxWidth: 1563
              url: '/${configDir}/print_header.png'
        - !map
          width: 1600
          height: 840
          absoluteX: 42
          absoluteY: 990
        - !columns
          absoluteX: 834
          absoluteY: 198
          width: 40
          items:
            - !image
              maxWidth: 40
              maxHeight: 40
              url: 'file:/${configDir}/Arrow_North_CFCF.svg'
              rotation: '${rotation}'
        - !columns
          absoluteX: 42
          absoluteY: 95
          width: 1600
          widths: [339, 423, 339]
          items:
            - !columns
              nbColumns: 1
              items:
                - !text
                  text: '${comment}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
                - !text
                  text: '${now MM.dd.yyyy}'
                  fontEncoding: Cp1252
                  fontSize: 8
                  align: left
                  vertAlign: middle
            - !text
              align: center
              vertAlign: middle
              fontSize: 14
              text: '${mapTitle}'
            - !scalebar
              align: right
              vertAlign: middle
              maxSize: 200
              type: 'bar sub'
              intervals: 5
        - !columns
          absoluteX: 42
          absoluteY: 75
          width: 1600
          items:
            - !text
              align: left
              vertAlign: middle
              fontSize: 6
              text: '${credits}'
    lastPage:
      pageSize: 1684 1191
      landscape: false
      items:
        #legend panel
        - !columns
          config:
            borderWidth: 0
            cells:
              - borderWidth: 0
                borderWidthLeft: 0
                borderColor: black
                padding: 4
                backgroundColor: white
                vertAlign: bottom
          absoluteX: 30
          absoluteY: 1131
          width: 1103
          widths: [1103]
          items:
            - !legends
              failOnBrokenUrl: false
              horizontalAlignment: left
              iconMaxWidth: 0
              iconMaxHeight: 700
              maxHeight: 700
              maxColumns: 3
              maxWidth: 1200
              layerSpace: 5
              layerFontSize: 12
              classIndentation: 5
              classFontSize: 8
              classSpace: 4
              backgroundColor: #ffffff
              reorderColumns: true
              dontBreakItems: true
              overflow: true
