Table of contents
Namespace: Com\Tecnick\Pdf\Page
Extends: Region
File: Page.php line 46
Tags
- since: 2011-05-23
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-page
- phpstan-import-type: PageBci from \Com\Tecnick\Pdf\Page\Box
- phpstan-import-type: PageBox from \Com\Tecnick\Pdf\Page\Box
- phpstan-import-type: MarginData from \Com\Tecnick\Pdf\Page\Box
- phpstan-import-type: RegionData from \Com\Tecnick\Pdf\Page\Box
- phpstan-import-type: TransitionData from \Com\Tecnick\Pdf\Page\Box
- phpstan-import-type: PageData from \Com\Tecnick\Pdf\Page\Box
- SuppressWarnings: (“PHPMD.TooManyPublicMethods”)
Constants
BOX
File: Box.php line 251
public array<string|int, string> BOX = ['MediaBox', 'CropBox', 'BleedBox', 'TrimBox', 'ArtBox']
EPS
File: Settings.php line 52
public mixed EPS = 0.0001
FORMAT
File: Format.php line 61
public array<string, array{0: float, 1: float}> FORMAT = [ // ISO 216 A Series + 2 SIS 014711 extensions 'A0' => [2383.937, 3370.394], // = ( 841 x 1189 ) mm = ( 33.11 x 46.81 ) in 'A1' => [1683.78, 2383.937], // = ( 594 x 841 ) mm = ( 23.39 x 33.11 ) in 'A2' => [1190.551, 1683.78], // = ( 420 x 594 ) mm = ( 16.54 x 23.39 ) in 'A3' => [841.89, 1190.551], // = ( 297 x 420 ) mm = ( 11.69 x 16.54 ) in 'A4' => [595.276, 841.89], // = ( 210 x 297 ) mm = ( 8.27 x 11.69 ) in 'A5' => [419.528, 595.276], // = ( 148 x 210 ) mm = ( 5.83 x 8.27 ) in 'A6' => [297.638, 419.528], // = ( 105 x 148 ) mm = ( 4.13 x 5.83 ) in 'A7' => [209.764, 297.638], // = ( 74 x 105 ) mm = ( 2.91 x 4.13 ) in 'A8' => [147.402, 209.764], // = ( 52 x 74 ) mm = ( 2.05 x 2.91 ) in 'A9' => [104.882, 147.402], // = ( 37 x 52 ) mm = ( 1.46 x 2.05 ) in 'A10' => [73.70099999999999, 104.882], // = ( 26 x 37 ) mm = ( 1.02 x 1.46 ) in 'A11' => [51.024, 73.70099999999999], // = ( 18 x 26 ) mm = ( 0.71 x 1.02 ) in 'A12' => [36.85, 51.024], // = ( 13 x 18 ) mm = ( 0.51 x 0.71 ) in // ISO 216 B Series + 2 SIS 014711 extensions 'B0' => [2834.646, 4008.189], // = ( 1000 x 1414 ) mm = ( 39.37 x 55.67 ) in 'B1' => [2004.094, 2834.646], // = ( 707 x 1000 ) mm = ( 27.83 x 39.37 ) in 'B2' => [1417.323, 2004.094], // = ( 500 x 707 ) mm = ( 19.69 x 27.83 ) in 'B3' => [1000.63, 1417.323], // = ( 353 x 500 ) mm = ( 13.90 x 19.69 ) in 'B4' => [708.6609999999999, 1000.63], // = ( 250 x 353 ) mm = ( 9.84 x 13.90 ) in 'B5' => [498.898, 708.6609999999999], // = ( 176 x 250 ) mm = ( 6.93 x 9.84 ) in 'B6' => [354.331, 498.898], // = ( 125 x 176 ) mm = ( 4.92 x 6.93 ) in 'B7' => [249.449, 354.331], // = ( 88 x 125 ) mm = ( 3.46 x 4.92 ) in 'B8' => [175.748, 249.449], // = ( 62 x 88 ) mm = ( 2.44 x 3.46 ) in 'B9' => [124.724, 175.748], // = ( 44 x 62 ) mm = ( 1.73 x 2.44 ) in 'B10' => [87.874, 124.724], // = ( 31 x 44 ) mm = ( 1.22 x 1.73 ) in 'B11' => [62.362, 87.874], // = ( 22 x 31 ) mm = ( 0.87 x 1.22 ) in 'B12' => [42.52, 62.362], // = ( 15 x 22 ) mm = ( 0.59 x 0.87 ) in // ISO 216 C Series + 2 SIS 014711 extensions + 5 EXTENSION 'C0' => [2599.37, 3676.535], // = ( 917 x 1297 ) mm = ( 36.10 x 51.06 ) in 'C1' => [1836.85, 2599.37], // = ( 648 x 917 ) mm = ( 25.51 x 36.10 ) in 'C2' => [1298.268, 1836.85], // = ( 458 x 648 ) mm = ( 18.03 x 25.51 ) in 'C3' => [918.425, 1298.268], // = ( 324 x 458 ) mm = ( 12.76 x 18.03 ) in 'C4' => [649.134, 918.425], // = ( 229 x 324 ) mm = ( 9.02 x 12.76 ) in 'C5' => [459.213, 649.134], // = ( 162 x 229 ) mm = ( 6.38 x 9.02 ) in 'C6' => [323.15, 459.213], // = ( 114 x 162 ) mm = ( 4.49 x 6.38 ) in 'C7' => [229.606, 323.15], // = ( 81 x 114 ) mm = ( 3.19 x 4.49 ) in 'C8' => [161.575, 229.606], // = ( 57 x 81 ) mm = ( 2.24 x 3.19 ) in 'C9' => [113.386, 161.575], // = ( 40 x 57 ) mm = ( 1.57 x 2.24 ) in 'C10' => [79.37, 113.386], // = ( 28 x 40 ) mm = ( 1.10 x 1.57 ) in 'C11' => [56.693, 79.37], // = ( 20 x 28 ) mm = ( 0.79 x 1.10 ) in 'C12' => [39.685, 56.693], // = ( 14 x 20 ) mm = ( 0.55 x 0.79 ) in 'C76' => [229.606, 459.213], // = ( 81 x 162 ) mm = ( 3.19 x 6.38 ) in 'DL' => [311.811, 623.622], // = ( 110 x 220 ) mm = ( 4.33 x 8.66 ) in 'DLE' => [323.15, 637.795], // = ( 114 x 225 ) mm = ( 4.49 x 8.86 ) in 'DLX' => [340.158, 666.1420000000001], // = ( 120 x 235 ) mm = ( 4.72 x 9.25 ) in 'DLP' => [280.63, 595.276], // = ( 99 x 210 ) mm = ( 3.90 x 8.27 ) in (A4/3) // SIS 014711 E Series 'E0' => [2491.654, 3517.795], // = ( 879 x 1241 ) mm = ( 34.61 x 48.86 ) in 'E1' => [1757.48, 2491.654], // = ( 620 x 879 ) mm = ( 24.41 x 34.61 ) in 'E2' => [1247.244, 1757.48], // = ( 440 x 620 ) mm = ( 17.32 x 24.41 ) in 'E3' => [878.74, 1247.244], // = ( 310 x 440 ) mm = ( 12.20 x 17.32 ) in 'E4' => [623.622, 878.74], // = ( 220 x 310 ) mm = ( 8.66 x 12.20 ) in 'E5' => [439.37, 623.622], // = ( 155 x 220 ) mm = ( 6.10 x 8.66 ) in 'E6' => [311.811, 439.37], // = ( 110 x 155 ) mm = ( 4.33 x 6.10 ) in 'E7' => [221.102, 311.811], // = ( 78 x 110 ) mm = ( 3.07 x 4.33 ) in 'E8' => [155.906, 221.102], // = ( 55 x 78 ) mm = ( 2.17 x 3.07 ) in 'E9' => [110.551, 155.906], // = ( 39 x 55 ) mm = ( 1.54 x 2.17 ) in 'E10' => [76.535, 110.551], // = ( 27 x 39 ) mm = ( 1.06 x 1.54 ) in 'E11' => [53.858, 76.535], // = ( 19 x 27 ) mm = ( 0.75 x 1.06 ) in 'E12' => [36.85, 53.858], // = ( 13 x 19 ) mm = ( 0.51 x 0.75 ) in // SIS 014711 G Series 'G0' => [2715.591, 3838.11], // = ( 958 x 1354 ) mm = ( 37.72 x 53.31 ) in 'G1' => [1919.055, 2715.591], // = ( 677 x 958 ) mm = ( 26.65 x 37.72 ) in 'G2' => [1357.795, 1919.055], // = ( 479 x 677 ) mm = ( 18.86 x 26.65 ) in 'G3' => [958.11, 1357.795], // = ( 338 x 479 ) mm = ( 13.31 x 18.86 ) in 'G4' => [677.48, 958.11], // = ( 239 x 338 ) mm = ( 9.41 x 13.31 ) in 'G5' => [479.055, 677.48], // = ( 169 x 239 ) mm = ( 6.65 x 9.41 ) in 'G6' => [337.323, 479.055], // = ( 119 x 169 ) mm = ( 4.69 x 6.65 ) in 'G7' => [238.11, 337.323], // = ( 84 x 119 ) mm = ( 3.31 x 4.69 ) in 'G8' => [167.244, 238.11], // = ( 59 x 84 ) mm = ( 2.32 x 3.31 ) in 'G9' => [119.055, 167.244], // = ( 42 x 59 ) mm = ( 1.65 x 2.32 ) in 'G10' => [82.205, 119.055], // = ( 29 x 42 ) mm = ( 1.14 x 1.65 ) in 'G11' => [59.528, 82.205], // = ( 21 x 29 ) mm = ( 0.83 x 1.14 ) in 'G12' => [39.685, 59.528], // = ( 14 x 21 ) mm = ( 0.55 x 0.83 ) in // ISO Press 'RA0' => [2437.795, 3458.268], // = ( 860 x 1220 ) mm = ( 33.86 x 48.03 ) in 'RA1' => [1729.134, 2437.795], // = ( 610 x 860 ) mm = ( 24.02 x 33.86 ) in 'RA2' => [1218.898, 1729.134], // = ( 430 x 610 ) mm = ( 16.93 x 24.02 ) in 'RA3' => [864.567, 1218.898], // = ( 305 x 430 ) mm = ( 12.01 x 16.93 ) in 'RA4' => [609.449, 864.567], // = ( 215 x 305 ) mm = ( 8.46 x 12.01 ) in 'SRA0' => [2551.181, 3628.346], // = ( 900 x 1280 ) mm = ( 35.43 x 50.39 ) in 'SRA1' => [1814.173, 2551.181], // = ( 640 x 900 ) mm = ( 25.20 x 35.43 ) in 'SRA2' => [1275.591, 1814.173], // = ( 450 x 640 ) mm = ( 17.72 x 25.20 ) in 'SRA3' => [907.087, 1275.591], // = ( 320 x 450 ) mm = ( 12.60 x 17.72 ) in 'SRA4' => [637.795, 907.087], // = ( 225 x 320 ) mm = ( 8.86 x 12.60 ) in // German DIN 476 '4A0' => [4767.874, 6740.787], // = ( 1682 x 2378 ) mm = ( 66.22 x 93.62 ) in '2A0' => [3370.394, 4767.874], // = ( 1189 x 1682 ) mm = ( 46.81 x 66.22 ) in // Variations on the ISO Standard 'A2_EXTRA' => [1261.417, 1754.646], // = ( 445 x 619 ) mm = ( 17.52 x 24.37 ) in 'A3+' => [932.598, 1369.134], // = ( 329 x 483 ) mm = ( 12.95 x 19.02 ) in 'A3_EXTRA' => [912.756, 1261.417], // = ( 322 x 445 ) mm = ( 12.68 x 17.52 ) in 'A3_SUPER' => [864.567, 1440.0], // = ( 305 x 508 ) mm = ( 12.01 x 20.00 ) in 'SUPER_A3' => [864.567, 1380.472], // = ( 305 x 487 ) mm = ( 12.01 x 19.17 ) in 'A4_EXTRA' => [666.1420000000001, 912.756], // = ( 235 x 322 ) mm = ( 9.25 x 12.68 ) in 'A4_SUPER' => [649.134, 912.756], // = ( 229 x 322 ) mm = ( 9.02 x 12.68 ) in 'SUPER_A4' => [643.465, 1009.134], // = ( 227 x 356 ) mm = ( 8.94 x 14.02 ) in 'A4_LONG' => [595.276, 986.457], // = ( 210 x 348 ) mm = ( 8.27 x 13.70 ) in 'F4' => [595.276, 935.433], // = ( 210 x 330 ) mm = ( 8.27 x 12.99 ) in 'SO_B5_EXTRA' => [572.598, 782.362], // = ( 202 x 276 ) mm = ( 7.95 x 10.87 ) in 'A5_EXTRA' => [490.394, 666.1420000000001], // = ( 173 x 235 ) mm = ( 6.81 x 9.25 ) in // ANSI Series 'ANSI_E' => [2448.0, 3168.0], // = ( 864 x 1118 ) mm = ( 34.00 x 44.00 ) in 'ANSI_D' => [1584.0, 2448.0], // = ( 559 x 864 ) mm = ( 22.00 x 34.00 ) in 'ANSI_C' => [1224.0, 1584.0], // = ( 432 x 559 ) mm = ( 17.00 x 22.00 ) in 'ANSI_B' => [792.0, 1224.0], // = ( 279 x 432 ) mm = ( 11.00 x 17.00 ) in 'ANSI_A' => [612.0, 792.0], // = ( 216 x 279 ) mm = ( 8.50 x 11.00 ) in // Traditional 'Loose' North American Paper Sizes 'USLEDGER' => [1224.0, 792.0], // = ( 432 x 279 ) mm = ( 17.00 x 11.00 ) in 'LEDGER' => [1224.0, 792.0], // = ( 432 x 279 ) mm = ( 17.00 x 11.00 ) in 'ORGANIZERK' => [792.0, 1224.0], // = ( 279 x 432 ) mm = ( 11.00 x 17.00 ) in 'BIBLE' => [792.0, 1224.0], // = ( 279 x 432 ) mm = ( 11.00 x 17.00 ) in 'USTABLOID' => [792.0, 1224.0], // = ( 279 x 432 ) mm = ( 11.00 x 17.00 ) in 'TABLOID' => [792.0, 1224.0], // = ( 279 x 432 ) mm = ( 11.00 x 17.00 ) in 'ORGANIZERM' => [612.0, 792.0], // = ( 216 x 279 ) mm = ( 8.50 x 11.00 ) in 'USLETTER' => [612.0, 792.0], // = ( 216 x 279 ) mm = ( 8.50 x 11.00 ) in 'LETTER' => [612.0, 792.0], // = ( 216 x 279 ) mm = ( 8.50 x 11.00 ) in 'USLEGAL' => [612.0, 1008.0], // = ( 216 x 356 ) mm = ( 8.50 x 14.00 ) in 'LEGAL' => [612.0, 1008.0], // = ( 216 x 356 ) mm = ( 8.50 x 14.00 ) in 'GOVERNMENTLETTER' => [576.0, 756.0], // = ( 203 x 267 ) mm = ( 8.00 x 10.50 ) in 'GLETTER' => [576.0, 756.0], // = ( 203 x 267 ) mm = ( 8.00 x 10.50 ) in 'JUNIORLEGAL' => [576.0, 360.0], // = ( 203 x 127 ) mm = ( 8.00 x 5.00 ) in 'JLEGAL' => [576.0, 360.0], // = ( 203 x 127 ) mm = ( 8.00 x 5.00 ) in // Other North American Paper Sizes 'QUADDEMY' => [2520.0, 3240.0], // = ( 889 x 1143 ) mm = ( 35.00 x 45.00 ) in 'SUPER_B' => [936.0, 1368.0], // = ( 330 x 483 ) mm = ( 13.00 x 19.00 ) in 'QUARTO' => [648.0, 792.0], // = ( 229 x 279 ) mm = ( 9.00 x 11.00 ) in 'GOVERNMENTLEGAL' => [612.0, 936.0], // = ( 216 x 330 ) mm = ( 8.50 x 13.00 ) in 'FOLIO' => [612.0, 936.0], // = ( 216 x 330 ) mm = ( 8.50 x 13.00 ) in 'MONARCH' => [522.0, 756.0], // = ( 184 x 267 ) mm = ( 7.25 x 10.50 ) in 'EXECUTIVE' => [522.0, 756.0], // = ( 184 x 267 ) mm = ( 7.25 x 10.50 ) in 'ORGANIZERL' => [396.0, 612.0], // = ( 140 x 216 ) mm = ( 5.50 x 8.50 ) in 'STATEMENT' => [396.0, 612.0], // = ( 140 x 216 ) mm = ( 5.50 x 8.50 ) in 'MEMO' => [396.0, 612.0], // = ( 140 x 216 ) mm = ( 5.50 x 8.50 ) in 'FOOLSCAP' => [595.4400000000001, 936.0], // = ( 210 x 330 ) mm = ( 8.27 x 13.00 ) in 'COMPACT' => [306.0, 486.0], // = ( 108 x 171 ) mm = ( 4.25 x 6.75 ) in 'ORGANIZERJ' => [198.0, 360.0], // = ( 70 x 127 ) mm = ( 2.75 x 5.00 ) in // Canadian standard CAN 2-9.60M 'P1' => [1587.402, 2437.795], // = ( 560 x 860 ) mm = ( 22.05 x 33.86 ) in 'P2' => [1218.898, 1587.402], // = ( 430 x 560 ) mm = ( 16.93 x 22.05 ) in 'P3' => [793.701, 1218.898], // = ( 280 x 430 ) mm = ( 11.02 x 16.93 ) in 'P4' => [609.449, 793.701], // = ( 215 x 280 ) mm = ( 8.46 x 11.02 ) in 'P5' => [396.85, 609.449], // = ( 140 x 215 ) mm = ( 5.51 x 8.46 ) in 'P6' => [303.307, 396.85], // = ( 107 x 140 ) mm = ( 4.21 x 5.51 ) in // North American Architectural Sizes 'ARCH_E' => [2592.0, 3456.0], // = ( 914 x 1219 ) mm = ( 36.00 x 48.00 ) in 'ARCH_E1' => [2160.0, 3024.0], // = ( 762 x 1067 ) mm = ( 30.00 x 42.00 ) in 'ARCH_D' => [1728.0, 2592.0], // = ( 610 x 914 ) mm = ( 24.00 x 36.00 ) in 'BROADSHEET' => [1296.0, 1728.0], // = ( 457 x 610 ) mm = ( 18.00 x 24.00 ) in 'ARCH_C' => [1296.0, 1728.0], // = ( 457 x 610 ) mm = ( 18.00 x 24.00 ) in 'ARCH_B' => [864.0, 1296.0], // = ( 305 x 457 ) mm = ( 12.00 x 18.00 ) in 'ARCH_A' => [648.0, 864.0], // = ( 229 x 305 ) mm = ( 9.00 x 12.00 ) in // -- North American Envelope Sizes // - Announcement Envelopes 'ANNENV_A2' => [314.64, 414.0], // = ( 111 x 146 ) mm = ( 4.37 x 5.75 ) in 'ANNENV_A6' => [342.0, 468.0], // = ( 121 x 165 ) mm = ( 4.75 x 6.50 ) in 'ANNENV_A7' => [378.0, 522.0], // = ( 133 x 184 ) mm = ( 5.25 x 7.25 ) in 'ANNENV_A8' => [396.0, 584.64], // = ( 140 x 206 ) mm = ( 5.50 x 8.12 ) in 'ANNENV_A10' => [450.0, 692.64], // = ( 159 x 244 ) mm = ( 6.25 x 9.62 ) in 'ANNENV_SLIM' => [278.64, 638.64], // = ( 98 x 225 ) mm = ( 3.87 x 8.87 ) in // - Commercial Envelopes 'COMMENV_N6_1/4' => [252.0, 432.0], // = ( 89 x 152 ) mm = ( 3.50 x 6.00 ) in 'COMMENV_N6_3/4' => [260.64, 468.0], // = ( 92 x 165 ) mm = ( 3.62 x 6.50 ) in 'COMMENV_N8' => [278.64, 540.0], // = ( 98 x 191 ) mm = ( 3.87 x 7.50 ) in 'COMMENV_N9' => [278.64, 638.64], // = ( 98 x 225 ) mm = ( 3.87 x 8.87 ) in 'COMMENV_N10' => [296.64, 684.0], // = ( 105 x 241 ) mm = ( 4.12 x 9.50 ) in 'COMMENV_N11' => [324.0, 746.64], // = ( 114 x 263 ) mm = ( 4.50 x 10.37 ) in 'COMMENV_N12' => [342.0, 792.0], // = ( 121 x 279 ) mm = ( 4.75 x 11.00 ) in 'COMMENV_N14' => [360.0, 828.0], // = ( 127 x 292 ) mm = ( 5.00 x 11.50 ) in // - Catalogue Envelopes 'CATENV_N1' => [432.0, 648.0], // = ( 152 x 229 ) mm = ( 6.00 x 9.00 ) in 'CATENV_N1_3/4' => [468.0, 684.0], // = ( 165 x 241 ) mm = ( 6.50 x 9.50 ) in 'CATENV_N2' => [468.0, 720.0], // = ( 165 x 254 ) mm = ( 6.50 x 10.00 ) in 'CATENV_N3' => [504.0, 720.0], // = ( 178 x 254 ) mm = ( 7.00 x 10.00 ) in 'CATENV_N6' => [540.0, 756.0], // = ( 191 x 267 ) mm = ( 7.50 x 10.50 ) in 'CATENV_N7' => [576.0, 792.0], // = ( 203 x 279 ) mm = ( 8.00 x 11.00 ) in 'CATENV_N8' => [594.0, 810.0], // = ( 210 x 286 ) mm = ( 8.25 x 11.25 ) in 'CATENV_N9_1/2' => [612.0, 756.0], // = ( 216 x 267 ) mm = ( 8.50 x 10.50 ) in 'CATENV_N9_3/4' => [630.0, 810.0], // = ( 222 x 286 ) mm = ( 8.75 x 11.25 ) in 'CATENV_N10_1/2' => [648.0, 864.0], // = ( 229 x 305 ) mm = ( 9.00 x 12.00 ) in 'CATENV_N12_1/2' => [684.0, 900.0], // = ( 241 x 318 ) mm = ( 9.50 x 12.50 ) in 'CATENV_N13_1/2' => [720.0, 936.0], // = ( 254 x 330 ) mm = ( 10.00 x 13.00 ) in 'CATENV_N14_1/4' => [810.0, 882.0], // = ( 286 x 311 ) mm = ( 11.25 x 12.25 ) in 'CATENV_N14_1/2' => [828.0, 1044.0], // = ( 292 x 368 ) mm = ( 11.50 x 14.50 ) in // Japanese (JIS P 0138-61) Standard B-Series 'JIS_B0' => [2919.685, 4127.244], // = ( 1030 x 1456 ) mm = ( 40.55 x 57.32 ) in 'JIS_B1' => [2063.622, 2919.685], // = ( 728 x 1030 ) mm = ( 28.66 x 40.55 ) in 'JIS_B2' => [1459.843, 2063.622], // = ( 515 x 728 ) mm = ( 20.28 x 28.66 ) in 'JIS_B3' => [1031.811, 1459.843], // = ( 364 x 515 ) mm = ( 14.33 x 20.28 ) in 'JIS_B4' => [728.504, 1031.811], // = ( 257 x 364 ) mm = ( 10.12 x 14.33 ) in 'JIS_B5' => [515.9059999999999, 728.504], // = ( 182 x 257 ) mm = ( 7.17 x 10.12 ) in 'JIS_B6' => [362.835, 515.9059999999999], // = ( 128 x 182 ) mm = ( 5.04 x 7.17 ) in 'JIS_B7' => [257.953, 362.835], // = ( 91 x 128 ) mm = ( 3.58 x 5.04 ) in 'JIS_B8' => [181.417, 257.953], // = ( 64 x 91 ) mm = ( 2.52 x 3.58 ) in 'JIS_B9' => [127.559, 181.417], // = ( 45 x 64 ) mm = ( 1.77 x 2.52 ) in 'JIS_B10' => [90.709, 127.559], // = ( 32 x 45 ) mm = ( 1.26 x 1.77 ) in 'JIS_B11' => [62.362, 90.709], // = ( 22 x 32 ) mm = ( 0.87 x 1.26 ) in 'JIS_B12' => [45.354, 62.362], // = ( 16 x 22 ) mm = ( 0.63 x 0.87 ) in // PA Series 'PA0' => [2381.102, 3174.803], // = ( 840 x 1120 ) mm = ( 33.07 x 44.09 ) in 'PA1' => [1587.402, 2381.102], // = ( 560 x 840 ) mm = ( 22.05 x 33.07 ) in 'PA2' => [1190.551, 1587.402], // = ( 420 x 560 ) mm = ( 16.54 x 22.05 ) in 'PA3' => [793.701, 1190.551], // = ( 280 x 420 ) mm = ( 11.02 x 16.54 ) in 'PA4' => [595.276, 793.701], // = ( 210 x 280 ) mm = ( 8.27 x 11.02 ) in 'PA5' => [396.85, 595.276], // = ( 140 x 210 ) mm = ( 5.51 x 8.27 ) in 'PA6' => [297.638, 396.85], // = ( 105 x 140 ) mm = ( 4.13 x 5.51 ) in 'PA7' => [198.425, 297.638], // = ( 70 x 105 ) mm = ( 2.76 x 4.13 ) in 'PA8' => [147.402, 198.425], // = ( 52 x 70 ) mm = ( 2.05 x 2.76 ) in 'PA9' => [99.21299999999999, 147.402], // = ( 35 x 52 ) mm = ( 1.38 x 2.05 ) in 'PA10' => [73.70099999999999, 99.21299999999999], // = ( 26 x 35 ) mm = ( 1.02 x 1.38 ) in // Standard Photographic Print Sizes 'PASSPORT_PHOTO' => [99.21299999999999, 127.559], // = ( 35 x 45 ) mm = ( 1.38 x 1.77 ) in 'E' => [233.858, 340.157], // = ( 82 x 120 ) mm = ( 3.25 x 4.72 ) in 'L' => [252.283, 360.0], // = ( 89 x 127 ) mm = ( 3.50 x 5.00 ) in '3R' => [252.283, 360.0], // = ( 89 x 127 ) mm = ( 3.50 x 5.00 ) in 'KG' => [289.134, 430.866], // = ( 102 x 152 ) mm = ( 4.02 x 5.98 ) in '4R' => [289.134, 430.866], // = ( 102 x 152 ) mm = ( 4.02 x 5.98 ) in '4D' => [340.157, 430.866], // = ( 120 x 152 ) mm = ( 4.72 x 5.98 ) in '2L' => [360.0, 504.567], // = ( 127 x 178 ) mm = ( 5.00 x 7.01 ) in '5R' => [360.0, 504.567], // = ( 127 x 178 ) mm = ( 5.00 x 7.01 ) in '8P' => [430.866, 575.433], // = ( 152 x 203 ) mm = ( 5.98 x 7.99 ) in '6R' => [430.866, 575.433], // = ( 152 x 203 ) mm = ( 5.98 x 7.99 ) in '6P' => [575.433, 720.0], // = ( 203 x 254 ) mm = ( 7.99 x 10.00 ) in '8R' => [575.433, 720.0], // = ( 203 x 254 ) mm = ( 7.99 x 10.00 ) in '6PW' => [575.433, 864.567], // = ( 203 x 305 ) mm = ( 7.99 x 12.01 ) in 'S8R' => [575.433, 864.567], // = ( 203 x 305 ) mm = ( 7.99 x 12.01 ) in '4P' => [720.0, 864.567], // = ( 254 x 305 ) mm = ( 10.00 x 12.01 ) in '10R' => [720.0, 864.567], // = ( 254 x 305 ) mm = ( 10.00 x 12.01 ) in '4PW' => [720.0, 1080.0], // = ( 254 x 381 ) mm = ( 10.00 x 15.00 ) in 'S10R' => [720.0, 1080.0], // = ( 254 x 381 ) mm = ( 10.00 x 15.00 ) in '11R' => [790.866, 1009.134], // = ( 279 x 356 ) mm = ( 10.98 x 14.02 ) in 'S11R' => [790.866, 1224.567], // = ( 279 x 432 ) mm = ( 10.98 x 17.01 ) in '12R' => [864.567, 1080.0], // = ( 305 x 381 ) mm = ( 12.01 x 15.00 ) in 'S12R' => [864.567, 1292.598], // = ( 305 x 456 ) mm = ( 12.01 x 17.95 ) in // Common Newspaper Sizes 'NEWSPAPER_BROADSHEET' => [2125.984, 1700.787], // = ( 750 x 600 ) mm = ( 29.53 x 23.62 ) in 'NEWSPAPER_BERLINER' => [1332.283, 892.913], // = ( 470 x 315 ) mm = ( 18.50 x 12.40 ) in 'NEWSPAPER_TABLOID' => [1218.898, 793.701], // = ( 430 x 280 ) mm = ( 16.93 x 11.02 ) in 'NEWSPAPER_COMPACT' => [1218.898, 793.701], // = ( 430 x 280 ) mm = ( 16.93 x 11.02 ) in // Business Cards 'CREDIT_CARD' => [153.014, 242.646], // = ( 54 x 86 ) mm = ( 2.13 x 3.37 ) in 'BUSINESS_CARD' => [153.014, 242.646], // = ( 54 x 86 ) mm = ( 2.13 x 3.37 ) in 'BUSINESS_CARD_ISO7810' => [153.014, 242.646], // = ( 54 x 86 ) mm = ( 2.13 x 3.37 ) in 'BUSINESS_CARD_ISO216' => [147.402, 209.764], // = ( 52 x 74 ) mm = ( 2.05 x 2.91 ) in 'BUSINESS_CARD_IT' => [155.906, 240.945], // = ( 55 x 85 ) mm = ( 2.17 x 3.35 ) in 'BUSINESS_CARD_UK' => [155.906, 240.945], // = ( 55 x 85 ) mm = ( 2.17 x 3.35 ) in 'BUSINESS_CARD_FR' => [155.906, 240.945], // = ( 55 x 85 ) mm = ( 2.17 x 3.35 ) in 'BUSINESS_CARD_DE' => [155.906, 240.945], // = ( 55 x 85 ) mm = ( 2.17 x 3.35 ) in 'BUSINESS_CARD_ES' => [155.906, 240.945], // = ( 55 x 85 ) mm = ( 2.17 x 3.35 ) in 'BUSINESS_CARD_CA' => [144.567, 252.283], // = ( 51 x 89 ) mm = ( 2.01 x 3.50 ) in 'BUSINESS_CARD_US' => [144.567, 252.283], // = ( 51 x 89 ) mm = ( 2.01 x 3.50 ) in 'BUSINESS_CARD_JP' => [155.906, 257.953], // = ( 55 x 91 ) mm = ( 2.17 x 3.58 ) in 'BUSINESS_CARD_HK' => [153.071, 255.118], // = ( 54 x 90 ) mm = ( 2.13 x 3.54 ) in 'BUSINESS_CARD_AU' => [155.906, 255.118], // = ( 55 x 90 ) mm = ( 2.17 x 3.54 ) in 'BUSINESS_CARD_DK' => [155.906, 255.118], // = ( 55 x 90 ) mm = ( 2.17 x 3.54 ) in 'BUSINESS_CARD_SE' => [155.906, 255.118], // = ( 55 x 90 ) mm = ( 2.17 x 3.54 ) in 'BUSINESS_CARD_RU' => [141.732, 255.118], // = ( 50 x 90 ) mm = ( 1.97 x 3.54 ) in 'BUSINESS_CARD_CZ' => [141.732, 255.118], // = ( 50 x 90 ) mm = ( 1.97 x 3.54 ) in 'BUSINESS_CARD_FI' => [141.732, 255.118], // = ( 50 x 90 ) mm = ( 1.97 x 3.54 ) in 'BUSINESS_CARD_HU' => [141.732, 255.118], // = ( 50 x 90 ) mm = ( 1.97 x 3.54 ) in 'BUSINESS_CARD_IL' => [141.732, 255.118], // = ( 50 x 90 ) mm = ( 1.97 x 3.54 ) in // Billboards '4SHEET' => [2880.0, 4320.0], // = ( 1016 x 1524 ) mm = ( 40.00 x 60.00 ) in '6SHEET' => [3401.575, 5102.362], // = ( 1200 x 1800 ) mm = ( 47.24 x 70.87 ) in '12SHEET' => [8640.0, 4320.0], // = ( 3048 x 1524 ) mm = (120.00 x 60.00 ) in '16SHEET' => [5760.0, 8640.0], // = ( 2032 x 3048 ) mm = ( 80.00 x 120.00) in '32SHEET' => [11520.0, 8640.0], // = ( 4064 x 3048 ) mm = (160.00 x 120.00) in '48SHEET' => [17280.0, 8640.0], // = ( 6096 x 3048 ) mm = (240.00 x 120.00) in '64SHEET' => [23040.0, 8640.0], // = ( 8128 x 3048 ) mm = (320.00 x 120.00) in '96SHEET' => [34560.0, 8640.0], // = (12192 x 3048 ) mm = (480.00 x 120.00) in // -- Old European Sizes // - Old Imperial English Sizes 'EN_EMPEROR' => [3456.0, 5184.0], // = ( 1219 x 1829 ) mm = ( 48.00 x 72.00 ) in 'EN_ANTIQUARIAN' => [2232.0, 3816.0], // = ( 787 x 1346 ) mm = ( 31.00 x 53.00 ) in 'EN_GRAND_EAGLE' => [2070.0, 3024.0], // = ( 730 x 1067 ) mm = ( 28.75 x 42.00 ) in 'EN_DOUBLE_ELEPHANT' => [1926.0, 2880.0], // = ( 679 x 1016 ) mm = ( 26.75 x 40.00 ) in 'EN_ATLAS' => [1872.0, 2448.0], // = ( 660 x 864 ) mm = ( 26.00 x 34.00 ) in 'EN_COLOMBIER' => [1692.0, 2484.0], // = ( 597 x 876 ) mm = ( 23.50 x 34.50 ) in 'EN_ELEPHANT' => [1656.0, 2016.0], // = ( 584 x 711 ) mm = ( 23.00 x 28.00 ) in 'EN_DOUBLE_DEMY' => [1620.0, 2556.0], // = ( 572 x 902 ) mm = ( 22.50 x 35.50 ) in 'EN_IMPERIAL' => [1584.0, 2160.0], // = ( 559 x 762 ) mm = ( 22.00 x 30.00 ) in 'EN_PRINCESS' => [1548.0, 2016.0], // = ( 546 x 711 ) mm = ( 21.50 x 28.00 ) in 'EN_CARTRIDGE' => [1512.0, 1872.0], // = ( 533 x 660 ) mm = ( 21.00 x 26.00 ) in 'EN_DOUBLE_LARGE_POST' => [1512.0, 2376.0], // = ( 533 x 838 ) mm = ( 21.00 x 33.00 ) in 'EN_ROYAL' => [1440.0, 1800.0], // = ( 508 x 635 ) mm = ( 20.00 x 25.00 ) in 'EN_SHEET' => [1404.0, 1692.0], // = ( 495 x 597 ) mm = ( 19.50 x 23.50 ) in 'EN_HALF_POST' => [1404.0, 1692.0], // = ( 495 x 597 ) mm = ( 19.50 x 23.50 ) in 'EN_SUPER_ROYAL' => [1368.0, 1944.0], // = ( 483 x 686 ) mm = ( 19.00 x 27.00 ) in 'EN_DOUBLE_POST' => [1368.0, 2196.0], // = ( 483 x 775 ) mm = ( 19.00 x 30.50 ) in 'EN_MEDIUM' => [1260.0, 1656.0], // = ( 445 x 584 ) mm = ( 17.50 x 23.00 ) in 'EN_DEMY' => [1260.0, 1620.0], // = ( 445 x 572 ) mm = ( 17.50 x 22.50 ) in 'EN_LARGE_POST' => [1188.0, 1512.0], // = ( 419 x 533 ) mm = ( 16.50 x 21.00 ) in 'EN_COPY_DRAUGHT' => [1152.0, 1440.0], // = ( 406 x 508 ) mm = ( 16.00 x 20.00 ) in 'EN_POST' => [1116.0, 1386.0], // = ( 394 x 489 ) mm = ( 15.50 x 19.25 ) in 'EN_CROWN' => [1080.0, 1440.0], // = ( 381 x 508 ) mm = ( 15.00 x 20.00 ) in 'EN_PINCHED_POST' => [1062.0, 1332.0], // = ( 375 x 470 ) mm = ( 14.75 x 18.50 ) in 'EN_BRIEF' => [972.0, 1152.0], // = ( 343 x 406 ) mm = ( 13.50 x 16.00 ) in 'EN_FOOLSCAP' => [972.0, 1224.0], // = ( 343 x 432 ) mm = ( 13.50 x 17.00 ) in 'EN_SMALL_FOOLSCAP' => [954.0, 1188.0], // = ( 337 x 419 ) mm = ( 13.25 x 16.50 ) in 'EN_POTT' => [900.0, 1080.0], // = ( 318 x 381 ) mm = ( 12.50 x 15.00 ) in // - Old Imperial Belgian Sizes 'BE_GRAND_AIGLE' => [1984.252, 2948.031], // = ( 700 x 1040 ) mm = ( 27.56 x 40.94 ) in 'BE_COLOMBIER' => [1757.48, 2409.449], // = ( 620 x 850 ) mm = ( 24.41 x 33.46 ) in 'BE_DOUBLE_CARRE' => [1757.48, 2607.874], // = ( 620 x 920 ) mm = ( 24.41 x 36.22 ) in 'BE_ELEPHANT' => [1746.142, 2182.677], // = ( 616 x 770 ) mm = ( 24.25 x 30.31 ) in 'BE_PETIT_AIGLE' => [1700.787, 2381.102], // = ( 600 x 840 ) mm = ( 23.62 x 33.07 ) in 'BE_GRAND_JESUS' => [1559.055, 2069.291], // = ( 550 x 730 ) mm = ( 21.65 x 28.74 ) in 'BE_JESUS' => [1530.709, 2069.291], // = ( 540 x 730 ) mm = ( 21.26 x 28.74 ) in 'BE_RAISIN' => [1417.323, 1842.52], // = ( 500 x 650 ) mm = ( 19.69 x 25.59 ) in 'BE_GRAND_MEDIAN' => [1303.937, 1714.961], // = ( 460 x 605 ) mm = ( 18.11 x 23.82 ) in 'BE_DOUBLE_POSTE' => [1233.071, 1601.575], // = ( 435 x 565 ) mm = ( 17.13 x 22.24 ) in 'BE_COQUILLE' => [1218.898, 1587.402], // = ( 430 x 560 ) mm = ( 16.93 x 22.05 ) in 'BE_PETIT_MEDIAN' => [1176.378, 1502.362], // = ( 415 x 530 ) mm = ( 16.34 x 20.87 ) in 'BE_RUCHE' => [1020.472, 1303.937], // = ( 360 x 460 ) mm = ( 14.17 x 18.11 ) in 'BE_PROPATRIA' => [977.953, 1218.898], // = ( 345 x 430 ) mm = ( 13.58 x 16.93 ) in 'BE_LYS' => [898.583, 1125.354], // = ( 317 x 397 ) mm = ( 12.48 x 15.63 ) in 'BE_POT' => [870.236, 1088.504], // = ( 307 x 384 ) mm = ( 12.09 x 15.12 ) in 'BE_ROSETTE' => [765.354, 983.622], // = ( 270 x 347 ) mm = ( 10.63 x 13.66 ) in // - Old Imperial French Sizes 'FR_UNIVERS' => [2834.646, 3685.039], // = ( 1000 x 1300 ) mm = ( 39.37 x 51.18 ) in 'FR_DOUBLE_COLOMBIER' => [2551.181, 3571.654], // = ( 900 x 1260 ) mm = ( 35.43 x 49.61 ) in 'FR_GRANDE_MONDE' => [2551.181, 3571.654], // = ( 900 x 1260 ) mm = ( 35.43 x 49.61 ) in 'FR_DOUBLE_SOLEIL' => [2267.717, 3401.575], // = ( 800 x 1200 ) mm = ( 31.50 x 47.24 ) in 'FR_DOUBLE_JESUS' => [2154.331, 3174.803], // = ( 760 x 1120 ) mm = ( 29.92 x 44.09 ) in 'FR_GRAND_AIGLE' => [2125.984, 3004.724], // = ( 750 x 1060 ) mm = ( 29.53 x 41.73 ) in 'FR_PETIT_AIGLE' => [1984.252, 2664.567], // = ( 700 x 940 ) mm = ( 27.56 x 37.01 ) in 'FR_DOUBLE_RAISIN' => [1842.52, 2834.646], // = ( 650 x 1000 ) mm = ( 25.59 x 39.37 ) in 'FR_JOURNAL' => [1842.52, 2664.567], // = ( 650 x 940 ) mm = ( 25.59 x 37.01 ) in 'FR_COLOMBIER_AFFICHE' => [1785.827, 2551.181], // = ( 630 x 900 ) mm = ( 24.80 x 35.43 ) in 'FR_DOUBLE_CAVALIER' => [1757.48, 2607.874], // = ( 620 x 920 ) mm = ( 24.41 x 36.22 ) in 'FR_CLOCHE' => [1700.787, 2267.717], // = ( 600 x 800 ) mm = ( 23.62 x 31.50 ) in 'FR_SOLEIL' => [1700.787, 2267.717], // = ( 600 x 800 ) mm = ( 23.62 x 31.50 ) in 'FR_DOUBLE_CARRE' => [1587.402, 2551.181], // = ( 560 x 900 ) mm = ( 22.05 x 35.43 ) in 'FR_DOUBLE_COQUILLE' => [1587.402, 2494.488], // = ( 560 x 880 ) mm = ( 22.05 x 34.65 ) in 'FR_JESUS' => [1587.402, 2154.331], // = ( 560 x 760 ) mm = ( 22.05 x 29.92 ) in 'FR_RAISIN' => [1417.323, 1842.52], // = ( 500 x 650 ) mm = ( 19.69 x 25.59 ) in 'FR_CAVALIER' => [1303.937, 1757.48], // = ( 460 x 620 ) mm = ( 18.11 x 24.41 ) in 'FR_DOUBLE_COURONNE' => [1303.937, 2040.945], // = ( 460 x 720 ) mm = ( 18.11 x 28.35 ) in 'FR_CARRE' => [1275.591, 1587.402], // = ( 450 x 560 ) mm = ( 17.72 x 22.05 ) in 'FR_COQUILLE' => [1247.244, 1587.402], // = ( 440 x 560 ) mm = ( 17.32 x 22.05 ) in 'FR_DOUBLE_TELLIERE' => [1247.244, 1927.559], // = ( 440 x 680 ) mm = ( 17.32 x 26.77 ) in 'FR_DOUBLE_CLOCHE' => [1133.858, 1700.787], // = ( 400 x 600 ) mm = ( 15.75 x 23.62 ) in 'FR_DOUBLE_POT' => [1133.858, 1757.48], // = ( 400 x 620 ) mm = ( 15.75 x 24.41 ) in 'FR_ECU' => [1133.858, 1474.016], // = ( 400 x 520 ) mm = ( 15.75 x 20.47 ) in 'FR_COURONNE' => [1020.472, 1303.937], // = ( 360 x 460 ) mm = ( 14.17 x 18.11 ) in 'FR_TELLIERE' => [963.78, 1247.244], // = ( 340 x 440 ) mm = ( 13.39 x 17.32 ) in 'FR_POT' => [878.74, 1133.858], // = ( 310 x 400 ) mm = ( 12.20 x 15.75 ) in // Colombian Sizes 'CO_CARTA' => [612.283, 790.866], // = ( 216 x 279 ) mm = ( 8.50 x 10.98 ) in 'CO_EXTRA_TABLOIDE' => [864.0, 1296.0], // = ( 304 x 457 ) mm = ( 12.00 x 18.00 ) in 'CO_OFICIO' => [612.283, 935.433], // = ( 216 x 330 ) mm = ( 8.50 x 12.99 ) in 'CO_PLIEGO' => [1984.252, 2834.646], // = ( 700 x 1000 ) mm = ( 27.56 x 39.37 ) in 'CO_PLIEGO2' => [1417.323, 1984.252], // = ( 500 x 700 ) mm = ( 19.69 x 27.56 ) in 'CO_PLIEGO4' => [992.126, 1417.323], // = ( 350 x 500 ) mm = ( 13.78 x 19.69 ) in 'CO_PLIEGO8' => [708.6609999999999, 992.126], // = ( 250 x 350 ) mm = ( 9.84 x 13.78 ) in // Japanese Sizes 'JP_AB_BAN' => [2494.488, 3075.591], // = ( 880 x 1085 ) mm = ( 34.65 x 42.72 ) in 'JP_AIBAN' => [637.795, 977.953], // = ( 225 x 345 ) mm = ( 8.86 x 13.58 ) in 'JP_A_KO_BAN' => [1723.465, 2454.803], // = ( 608 x 866 ) mm = ( 23.94 x 34.09 ) in 'JP_B_KO_BAN' => [2137.323, 2967.874], // = ( 754 x 1047 ) mm = ( 29.69 x 41.22 ) in 'JP_CHOUBO_BAN' => [2318.74, 3092.598], // = ( 818 x 1091 ) mm = ( 32.20 x 42.95 ) in 'JP_CHUBAN' => [538.583, 722.835], // = ( 190 x 255 ) mm = ( 7.48 x 10.04 ) in 'JP_CHU_TANZAKU' => [368.504, 1077.165], // = ( 130 x 380 ) mm = ( 5.12 x 14.96 ) in 'JP_DAI OBAN' => [977.953, 1289.764], // = ( 345 x 455 ) mm = ( 13.58 x 17.91 ) in 'JP_EBANKIRI' => [538.583, 1459.843], // = ( 190 x 515 ) mm = ( 7.48 x 20.28 ) in 'JP_FUURUSU_KO_BAN' => [943.937, 1201.89], // = ( 333 x 424 ) mm = ( 13.11 x 16.69 ) in 'JP_GAYOUSHI' => [1649.764, 2148.661], // = ( 582 x 758 ) mm = ( 22.91 x 29.84 ) in 'JP_HASHIRE_E' => [368.504, 2069.291], // = ( 130 x 730 ) mm = ( 5.12 x 28.74 ) in 'JP_HATORON_BAN' => [2551.181, 3401.575], // = ( 900 x 1200 ) mm = ( 35.43 x 47.24 ) in 'JP_HOM_BAN' => [1842.52, 2211.024], // = ( 650 x 780 ) mm = ( 25.59 x 30.71 ) in 'JP_HOSOBAN' => [411.024, 935.433], // = ( 145 x 330 ) mm = ( 5.71 x 12.99 ) in 'JP_JIS_A_BAN' => [1771.654, 2494.488], // = ( 625 x 880 ) mm = ( 24.61 x 34.65 ) in 'JP_JIS_B_BAN' => [2168.504, 3075.591], // = ( 765 x 1085 ) mm = ( 30.12 x 42.72 ) in 'JP_KAKEMONO_E' => [651.9690000000001, 2154.331], // = ( 230 x 760 ) mm = ( 9.06 x 29.92 ) in 'JP_KAKUBAN' => [504.567, 575.433], // = ( 178 x 203 ) mm = ( 7.01 x 7.99 ) in 'JP_KAKU_SURIMONO' => [510.236, 609.449], // = ( 180 x 215 ) mm = ( 7.09 x 8.46 ) in 'JP_KENTO_BAN' => [1374.803, 1768.819], // = ( 485 x 624 ) mm = ( 19.09 x 24.57 ) in 'JP_KIKU_BAN' => [1802.835, 2661.732], // = ( 636 x 939 ) mm = ( 25.04 x 36.97 ) in 'JP_KIKU_BAN4' => [643.465, 867.402], // = ( 227 x 306 ) mm = ( 8.94 x 12.05 ) in 'JP_KIKU_BAN5' => [428.031, 643.465], // = ( 151 x 227 ) mm = ( 5.94 x 8.94 ) in 'JP_KIKU_BAN5_OLD' => [430.866, 617.953], // = ( 152 x 218 ) mm = ( 5.98 x 8.58 ) in 'JP_KIKU_BAN_A20_DORI' => [419.528, 473.386], // = ( 148 x 167 ) mm = ( 5.83 x 6.57 ) in 'JP_KOBAN' => [481.89, 651.9690000000001], // = ( 170 x 230 ) mm = ( 6.69 x 9.06 ) in 'JP_KO_BAN_B6' => [317.48, 493.228], // = ( 112 x 174 ) mm = ( 4.41 x 6.85 ) in 'JP_KO_TANZAKU' => [215.433, 977.953], // = ( 76 x 345 ) mm = ( 2.99 x 13.58 ) in 'JP_MOKUTANSHI' => [1332.283, 1760.315], // = ( 470 x 621 ) mm = ( 18.50 x 24.45 ) in 'JP_NAGA_BAN' => [651.9690000000001, 1459.843], // = ( 230 x 515 ) mm = ( 9.06 x 20.28 ) in 'JP_OBAN' => [720.0, 1077.165], // = ( 254 x 380 ) mm = ( 10.00 x 14.96 ) in 'JP_OGATA_CHUBAN' => [615.1180000000001, 830.551], // = ( 217 x 293 ) mm = ( 8.54 x 11.54 ) in 'JP_O_HOSOBAN' => [481.89, 1077.165], // = ( 170 x 380 ) mm = ( 6.69 x 14.96 ) in 'JP_POSTCARD' => [283.465, 419.528], // = ( 100 x 148 ) mm = ( 3.94 x 5.83 ) in 'JP_SANGO_BAN' => [238.11, 419.528], // = ( 84 x 148 ) mm = ( 3.31 x 5.83 ) in 'JP_SANGO_BAN_A48_DORI' => [209.764, 396.85], // = ( 74 x 140 ) mm = ( 2.91 x 5.51 ) in 'JP_SANGO_BAN_B20_DORI' => [515.9059999999999, 583.937], // = ( 182 x 206 ) mm = ( 7.17 x 8.11 ) in 'JP_SANGO_BAN_B36_DORI' => [342.992, 484.724], // = ( 121 x 171 ) mm = ( 4.76 x 6.73 ) in 'JP_SANGO_BAN_B40_DORI' => [238.11, 419.528], // = ( 84 x 148 ) mm = ( 3.31 x 5.83 ) in 'JP_SANROKU_BAN_B48_DORI' => [257.953, 484.724], // = ( 91 x 171 ) mm = ( 3.58 x 6.73 ) in 'JP_SANSAN_BAN' => [1975.748, 2834.646], // = ( 697 x 1000 ) mm = ( 27.44 x 39.37 ) in 'JP_SANSHI_BAN' => [2060.787, 2834.646], // = ( 727 x 1000 ) mm = ( 28.62 x 39.37 ) in 'JP_SHIKISHIBAN' => [581.102, 651.9690000000001], // = ( 205 x 230 ) mm = ( 8.07 x 9.06 ) in 'JP_SHIMBUNYOUSHI' => [2304.567, 1547.717], // = ( 813 x 546 ) mm = ( 32.01 x 21.50 ) in 'JP_SHINSHO_BAN_B40_A' => [300.472, 490.394], // = ( 106 x 173 ) mm = ( 4.17 x 6.81 ) in 'JP_SHINSHO_BAN_B40_B' => [291.969, 515.9059999999999], // = ( 103 x 182 ) mm = ( 4.06 x 7.17 ) in 'JP_SHIROKU_BAN' => [2233.701, 3092.598], // = ( 788 x 1091 ) mm = ( 31.02 x 42.95 ) in 'JP_SHIROKU_BAN4' => [748.346, 1074.331], // = ( 264 x 379 ) mm = ( 10.39 x 14.92 ) in 'JP_SHIROKU_BAN5' => [535.748, 742.677], // = ( 189 x 262 ) mm = ( 7.44 x 10.31 ) in 'JP_SHIROKU_BAN5_OLD' => [541.417, 734.173], // = ( 191 x 259 ) mm = ( 7.52 x 10.20 ) in 'JP_SHIROKU_BAN6' => [360.0, 532.913], // = ( 127 x 188 ) mm = ( 5.00 x 7.40 ) in 'JP_SHO_TANZAKU' => [269.291, 722.835], // = ( 95 x 255 ) mm = ( 3.74 x 10.04 ) in 'JP_SUITORISHI' => [1252.913, 1615.748], // = ( 442 x 570 ) mm = ( 17.40 x 22.44 ) in 'JP_TANZAKU' => [360.0, 1218.898], // = ( 127 x 430 ) mm = ( 5.00 x 16.93 ) in 'JP_TSUYA_GAMI' => [1440.0, 2160.0], // = ( 508 x 762 ) mm = ( 20.00 x 30.00 ) in 'JP_UCHIWA' => [649.134, 720.0], // = ( 229 x 254 ) mm = ( 9.02 x 10.00 ) in 'JP_WAIDO_BAN' => [595.276, 728.504], // = ( 210 x 257 ) mm = ( 8.27 x 10.12 ) in 'JP_YATSUGIRI_BAN' => [269.291, 360.0], ]
Measures are calculated in this way: (inches * 72) or (millimeters * 72 / 25.4)
MAX_BANDS
File: Region.php line 47
public mixed MAX_BANDS = 1000
MAX_COLUMNS
File: Settings.php line 57
public mixed MAX_COLUMNS = 1000
PAGE_NUM
File: Settings.php line 71
public string PAGE_NUM = '~#PN'
PAGE_TOT
File: Settings.php line 64
public string PAGE_TOT = '~#PT'
UNITRATIO
File: Format.php line 42
public array<string, float> UNITRATIO = [ '' => 1.0, // default to points 'px' => 1.0, 'pt' => 1.0, 'points' => 1.0, 'millimeters' => 2.83464566929134, // (72 / 25.4) 'mm' => 2.83464566929134, // (72 / 25.4) 'centimeters' => 28.3464566929134, // (72 / 2.54) 'cm' => 28.3464566929134, // (72 / 2.54) 'inches' => 72.0, 'in' => 72.0, ]
72 is the default DPI (Dot Per Inch) document resolution.
Methods
__construct()
File: Page.php line 62
public __construct(string|Unit $unit, Pdf $color, Encrypt $encrypt[, bool $notransparency = false ][, bool $compress = true ][, bool $sigapp = false ]) : mixed
Parameters
- $unit : string|Unit: Unit of measure (‘pt’, ‘mm’, ‘cm’, ‘in’) or a Unit enum case.
- $color : Pdf: Color object.
- $encrypt : Encrypt: Encrypt object.
- $notransparency : bool = false: True when the conformance mode forbids transparency (PDF/A-1, PDF/X-1a, PDF/X-3): the page transparency group is suppressed.
- $compress : bool = true: Set to false to disable stream compression.
- $sigapp : bool = false: True if the signature approval is enabled (for incremental updates).
Tags
- throws: Exception
add()
File: Region.php line 99
public add([PageInputData $data = [] ]) : PageData
Parameters
- $data : PageInputData = []: Page data: annotrefs : array containing the annotation object references. autobreak : true to automatically add a page when the content reaches the breaking point. box : array containing page box boundaries and settings (@see setBox). columns : number of equal vertical columns, if set it will automatically populate the region array. content : string containing the raw page content. format : page format name, or alternatively you can set width and height as below. group : page group number. height : page height. margin : page margins: - booklet : true to enable booklet mode - PL : page left margin measured from the left page edge - PR : page right margin measured from the right page edge - PT : page top or header top measured distance from the top page edge - HB : header bottom measured from the top page edge - CT : content top measured from the top page edge - CB : content bottom (page breaking point) measured from the bottom page edge - FT : footer top measured from the bottom page edge - PB : page bottom (footer bottom) measured from the bottom page edge num : if set overwrites the page number. orientation : page orientation (‘P’ or ‘L’). region : array containing the ordered list of rectangular areas where it is allowed to write, each region is defined by: - RX : horizontal coordinate of top-left corner - RY : vertical coordinate of top-left corner - RW : region width - RH : region height rotation : the number of degrees by which the page shall be rotated clockwise when displayed or printed. time : UTC page modification time in seconds. transition : array containing page transition data (@see getPageTransition). width : page width. zoom : preferred zoom (magnification) factor: 1.0 = 100%. NOTE: if $data is empty and the stack is not, the last page is cloned.
Tags
- throws: Exception
Return values
PageData —
Page data with additional Page ID property ‘pid’.
addAnnotRef()
File: Page.php line 379
public addAnnotRef(int $oid[, int $pid = -1 ]) : void
Object IDs lower than 1 are ignored.
Parameters
- $oid : int: Annotation object IDs.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
addContent()
File: Page.php line 404
public addContent(string $content[, int $pid = -1 ]) : void
Parameters
- $content : string: Page content.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
addContentMark()
File: Page.php line 446
public addContentMark([int $pid = -1 ]) : void
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
addNoWriteRegion()
File: Region.php line 818
public addNoWriteRegion(NoWriteArea $noWriteArea[, int $pid = -1 ]) : PageData
setNoWriteRegions() must have been called first to set the band height.
Parameters
- $noWriteArea : NoWriteArea: No-write area (page coordinates, user units).
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Page data.
buildWritableRegions()
File: Region.php line 753
public buildWritableRegions(array<int, NoWriteArea> $noWriteAreas, float $bandHeight[, int $pid = -1 ]) : array<int, array{RX: float, RY: float, RW: float, RH: float}>
The content area is sliced into horizontal bands of height $bandHeight, and for each band the widest rectangle that does not overlap any no-write area is kept. Vertically-contiguous bands with the same horizontal extent are merged, so the area above and below an obstacle collapses to a single tall region and only the obstacle span is finely banded. The result is a stack of axis-aligned rectangles ordered top-to-bottom, suitable as the ‘region’ value of add() or as the input of setNoWriteRegions().
Each no-write area can be defined in one of two ways (page coordinates, user units):
- side-anchored segment, where the obstacle spans from a page side to a vertical, possibly slanted, segment: ‘xt’,‘yt’ : segment top point, ‘xb’,‘yb’ : segment bottom point, ‘side’ : ‘L’ to block from the left page edge to the segment, ‘R’ for the right.
- free rectangle (floating obstacle, e.g. an image): ‘x’,‘y’ : top-left corner, ‘w’ : width, ‘h’ : height.
NOTE: only the widest of the writable columns a floating area splits a band into is kept, so text does not wrap on both sides of a floating obstacle.
Parameters
- $noWriteAreas : array<int, NoWriteArea>: No-write areas (page coordinates, user units).
- $bandHeight : float: Height of each horizontal slice (must be > 0 and yield at most MAX_BANDS slices).
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
array<int, array{RX: float, RY: float, RW: float, RH: float}> —
Ordered writable regions.
checkRegionBreak()
File: Region.php line 529
public checkRegionBreak([float $height = 0.0 ][, float|null $ypos = null ][, int $pid = -1 ]) : PageData
Only a vertical overflow past the region bottom triggers the break.
Parameters
- $height : float = 0.0: Height of the block to add.
- $ypos : float|null = null: Starting Y position or NULL for current position.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Page data.
convertPoints()
File: Format.php line 585
public convertPoints(float $points, string|Unit $unit[, int $dec = 6 ]) : float
Parameters
- $points : float: Value to convert.
- $unit : string|Unit: Name of the unit to convert to, or a Unit enum case.
- $dec : int = 6: Number of decimals to return.
Tags
- throws: Exception
Return values
float
delete()
File: Page.php line 221
public delete([int $pid = -1 ]) : PageData
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Removed page.
enableAutoPageBreak()
File: Region.php line 580
public enableAutoPageBreak([bool $isenabled = true ][, int $pid = -1 ]) : void
Parameters
- $isenabled : bool = true: Set this to true to enable automatic page break.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
enableSignatureApproval()
File: Page.php line 93
public enableSignatureApproval(bool $sigapp) : static
Parameters
- $sigapp : bool: True if the signature approval is enabled (for incremental updates).
Return values
static
getDisplay()
File: Mode.php line 55
public getDisplay([string|PageDisplayMode $mode = '' ]) : string
Accepted names and the fallback are defined by PageDisplayMode::fromLoose().
Parameters
- $mode : string|PageDisplayMode = ‘’: Display mode name or PageDisplayMode enum case.
Return values
string —
Canonical page display mode.
getKUnit()
File: Page.php line 83
public getKUnit() : float
Return values
float —
Unit Ratio.
getLayout()
File: Mode.php line 42
public getLayout([string|PageLayout $name = '' ]) : string
Accepted names, aliases and the fallback are defined by PageLayout::fromLoose().
Parameters
- $name : string|PageLayout = ‘’: Page layout name or PageLayout enum case.
Return values
string —
Canonical page layout name.
getNextPage()
File: Region.php line 466
public getNextPage([int $pid = -1 ]) : PageData
Creates a new page if required and page break is enabled.
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Page data.
getNextRegion()
File: Region.php line 492
public getNextRegion([int $pid = -1 ]) : PageData
If there are no more regions available, then the first region on the next page is selected. A new page is added if required.
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Current page data.
getNoWriteRegions()
File: Region.php line 838
public getNoWriteRegions([int $pid = -1 ]) : array<int, NoWriteArea>
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
array<int, NoWriteArea> —
No-write areas.
getPage()
File: Region.php line 275
public getPage([int $pid = -1 ]) : PageData
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Page data.
getPageFormatSize()
File: Format.php line 492
public getPageFormatSize(string $format[, string|Orientation $orientation = '' ][, string|Unit $unit = '' ][, int $dec = 6 ]) : array{0: float, 1: float, 2: string}
Parameters
- $format : string: The page format name.
- $orientation : string|Orientation = ‘’: Page orientation (‘P’ portrait; ‘L’ landscape; ’’ default) or enum case.
- $unit : string|Unit = ‘’: Unit name (default points) or Unit enum case.
- $dec : int = 6: Number of decimals to return.
Tags
- throws: Exception
Return values
array{0: float, 1: float, 2: string} —
Page width, height and orientation in specified unit.
getPageID()
File: Settings.php line 159
public getPageID() : int
Return values
int —
Page ID.
getPageOrientation()
File: Format.php line 545
public getPageOrientation(float $width, float $height) : string
Parameters
- $width : float: Page width.
- $height : float: Page height.
Return values
string —
page orientation ‘P’ or ‘L’.
getPageOrientedSize()
File: Format.php line 519
public getPageOrientedSize(float $width, float $height[, string|Orientation $orientation = '' ]) : array{0: float, 1: float, 2: string}
Parameters
- $width : float: Page width.
- $height : float: Page height.
- $orientation : string|Orientation = ‘’: Page orientation (‘P’ portrait; ‘L’ landscape; ’’ default) or enum case.
Return values
array{0: float, 1: float, 2: string} —
Page width, height in points and orientation.
getPages()
File: Page.php line 365
public getPages() : array<int, PageData>
Return values
array<int, PageData> —
Pages.
getPdfPages()
File: Page.php line 496
public getPdfPages(int &$pon) : string
Parameters
- $pon : int: Current PDF object number.
Tags
- throws: Exception
Return values
string —
PDF command.
getRegion()
File: Region.php line 443
public getRegion([int $pid = -1 ]) : RegionData
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
RegionData —
Region.
getResourceDictObjID()
File: Page.php line 616
public getResourceDictObjID() : int
Return values
int —
Resource dictionary Object ID.
getRootObjID()
File: Page.php line 626
public getRootObjID() : int
Return values
int —
Root Object ID.
getUnitRatio()
File: Format.php line 561
public getUnitRatio(string|Unit $unit) : float
Parameters
- $unit : string|Unit: Name of the unit of measure, or a Unit enum case.
Tags
- throws: Exception
Return values
float
getX()
File: Region.php line 656
public getX([int $pid = -1 ]) : float
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
float
getY()
File: Region.php line 669
public getY([int $pid = -1 ]) : float
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
float
isAutoPageBreakEnabled()
File: Region.php line 562
public isAutoPageBreakEnabled([int $pid = -1 ]) : bool
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
bool —
True if the auto page break is enabled, false otherwise.
isXOutRegion()
File: Region.php line 640
public isXOutRegion([float|null $posx = null ][, float $width = 0.0 ][, int $pid = -1 ]) : bool
Parameters
- $posx : float|null = null: X position or NULL for current position.
- $width : float = 0.0: Additional width to add.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
bool
isYOutRegion()
File: Region.php line 622
public isYOutRegion([float|null $posy = null ][, float $height = 0.0 ][, int $pid = -1 ]) : bool
Parameters
- $posy : float|null = null: Y position or NULL for current position.
- $height : float = 0.0: Additional height to add.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
bool
keepPageBox()
File: Page.php line 148
public keepPageBox(string|PageBoxType $type) : static
Parameters
- $type : string|PageBoxType: Box type: CropBox, BleedBox, TrimBox or ArtBox.
Tags
- throws: Exception
Return values
static
move()
File: Page.php line 293
public move(int $from, int $new) : void
Parameters
- $from : int: Index of the page to move.
- $new : int: Destination index.
Tags
- throws: Exception
omitPageBox()
File: Page.php line 130
public omitPageBox(string|PageBoxType $type) : static
ISO 15930 (PDF/X) requires a page to carry a trim box or an art box, but not both, so a conforming producer has to drop one of them. The box data is still computed and used for layout; only the page dictionary entry is omitted.
The MediaBox is required by ISO 32000-1 and cannot be omitted.
Parameters
- $type : string|PageBoxType: Box type: CropBox, BleedBox, TrimBox or ArtBox.
Tags
- throws: Exception
Return values
static
pop()
File: Page.php line 280
public pop() : PageData
Tags
- throws: Exception
Return values
PageData —
Removed page.
popContent()
File: Page.php line 420
public popContent([int $pid = -1 ]) : string
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
string
popContentToLastMark()
File: Page.php line 466
public popContentToLastMark([int $pid = -1 ]) : void
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
removeNoWriteRegion()
File: Region.php line 854
public removeNoWriteRegion(int $index[, int $pid = -1 ]) : PageData
Parameters
- $index : int: Index of the no-write area to remove.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Page data.
sanitizeAnnotRefs()
File: Settings.php line 221
public sanitizeAnnotRefs(PageInputData &$data) : void
Parameters
- $data : PageInputData: Page data.
sanitizeBoxData()
File: Settings.php line 696
public sanitizeBoxData(PageInputData &$data) : void
Every entry of PageInputData[‘box’] is optional and is completed first.
Parameters
- $data : PageInputData: Page data.
Tags
- SuppressWarnings: (“PHPMD.CyclomaticComplexity”)
- SuppressWarnings: (“PHPMD.NPathComplexity”)
- throws: Exception
sanitizeContent()
File: Settings.php line 201
public sanitizeContent(PageInputData &$data) : void
Parameters
- $data : PageInputData: Page data.
sanitizeGroup()
File: Settings.php line 191
public sanitizeGroup(PageInputData &$data) : void
Parameters
- $data : PageInputData: Page data.
sanitizeMargins()
File: Settings.php line 390
public sanitizeMargins(PageInputData &$data) : void
Parameters
- $data : PageInputData: Page data.
Tags
- param-out: PageInputData $data
- SuppressWarnings: (“PHPMD.CyclomaticComplexity”)
- SuppressWarnings: (“PHPMD.NPathComplexity”)
- throws: Exception
sanitizePageFormat()
File: Settings.php line 830
public sanitizePageFormat(PageInputData &$data) : void
The pseudo-format ‘MediaBox’ means that the page size is taken from the MediaBox: it is left untouched here and resolved by sanitizeBoxData(), which then re-enters this method with the box-derived dimensions and a cleared format.
Parameters
- $data : PageInputData: Page data.
Tags
- throws: Exception
sanitizePageNumber()
File: Settings.php line 169
public sanitizePageNumber(PageInputData &$data) : void
Parameters
- $data : PageInputData: Page data.
sanitizeRegions()
File: Settings.php line 577
public sanitizeRegions(PageInputData &$data) : void
Parameters
- $data : PageInputData: Page data.
sanitizeRotation()
File: Settings.php line 235
public sanitizeRotation(PageInputData &$data) : void
The number of degrees by which the page shall be rotated clockwise when displayed or printed. The value shall be a multiple of 90; it is normalized to the [0, 360) range.
Parameters
- $data : PageInputData: Page data.
sanitizeTime()
File: Settings.php line 181
public sanitizeTime(PageInputData &$data) : void
Parameters
- $data : PageInputData: Page data.
sanitizeTransitions()
File: Settings.php line 268
public sanitizeTransitions(PageInputData &$data) : void
Parameters
- $data : PageInputData: Page data.
Tags
- SuppressWarnings: (“PHPMD.CyclomaticComplexity”)
- SuppressWarnings: (“PHPMD.NPathComplexity”)
sanitizeZoom()
File: Settings.php line 254
public sanitizeZoom(PageInputData &$data) : void
The factor is a magnification, so any non-positive value falls back to 1.0.
Parameters
- $data : PageInputData: Page data.
selectRegion()
File: Region.php line 421
public selectRegion(int $idr[, int $pid = -1 ]) : RegionData
Parameters
- $idr : int: ID of the region.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
RegionData —
Selected region data.
setBox()
File: Box.php line 303
public setBox(array<string, PageBox> $dims, string|PageBoxType $type, float $llx, float $lly, float $urx, float $ury[, PageBciInput|null $bci = null ]) : array<string, PageBox>
Parameters
- $dims : array<string, PageBox>: Array of page dimensions to modify.
- $type : string|PageBoxType: Box type: MediaBox, CropBox, BleedBox, TrimBox, ArtBox, or enum case.
- $llx : float: Lower-left x coordinate in user units.
- $lly : float: Lower-left y coordinate in user units.
- $urx : float: Upper-right x coordinate in user units.
- $ury : float: Upper-right y coordinate in user units.
- $bci : PageBciInput|null = null: BoxColorInfo: guideline style (color, width, style, dash). Missing entries are filled with the default style.
Tags
- throws: Exception
Return values
array<string, PageBox> —
Page dimensions.
setCurrentPage()
File: Region.php line 259
public setCurrentPage([int $pid = -1 ]) : PageData
Parameters
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Page data.
setNoWriteRegions()
File: Region.php line 792
public setNoWriteRegions(array<int, NoWriteArea> $noWriteAreas, float $bandHeight[, int $pid = -1 ]) : PageData
The writable regions are (re)built and assigned to the page.
Parameters
- $noWriteAreas : array<int, NoWriteArea>: No-write areas (page coordinates, user units).
- $bandHeight : float: Height of each horizontal slice (must be > 0 and yield at most MAX_BANDS slices).
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
PageData —
Page data.
setPageBoxes()
File: Box.php line 484
public setPageBoxes(float $width, float $height) : array<string, PageBox>
Parameters
- $width : float: Page width in points.
- $height : float: Page height in points.
Tags
- throws: Exception
Return values
array<string, PageBox> —
Page boxes.
setPagePHeight()
File: Region.php line 302
public setPagePHeight(float $pheight[, int $pid = -1 ]) : float
The MediaBox and the orientation are updated to match. The other boxes keep their declared coordinates and are intersected with the MediaBox on output, so passing the returned value back restores the original geometry. The format name, the margins and the regions are not recomputed: reassign them with setNoWriteRegions() or a new add() if the writable area must follow.
Parameters
- $pheight : float: new page height in internal points (must be positive).
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
float —
original page height in points.
setPagePWidth()
File: Region.php line 337
public setPagePWidth(float $pwidth[, int $pid = -1 ]) : float
The MediaBox and the orientation are updated to match. The other boxes keep their declared coordinates and are intersected with the MediaBox on output, so passing the returned value back restores the original geometry. The format name, the margins and the regions are not recomputed: reassign them with setNoWriteRegions() or a new add() if the writable area must follow.
Parameters
- $pwidth : float: new page width in internal points (must be positive).
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
float —
original page width in points.
setPageTransparency()
File: Page.php line 110
public setPageTransparency([bool $hasTransparency = true ][, int $pid = -1 ]) : static
In ‘auto’ mode a page flagged false omits the per-page transparency /Group; unflagged pages emit it.
Parameters
- $hasTransparency : bool = true: True if the page uses actual transparency.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
static
setPageTransparencyGroupMode()
File: Page.php line 187
public setPageTransparencyGroupMode(string|TransparencyGroupMode $mode) : static
- ‘auto’ : (default) emit the group on every standard page except those flagged as opaque via setPageTransparency(false, $pid).
- ‘always’ : emit the group on every standard page.
- ’never’ : never emit the group.
The mode is matched case-insensitively and unknown values are treated as ‘auto’.
Parameters
- $mode : string|TransparencyGroupMode: One of ‘auto’, ‘always’, ’never’, or a TransparencyGroupMode case.
Return values
static
setX()
File: Region.php line 683
public setX(float $xpos[, int $pid = -1 ]) : static
Parameters
- $xpos : float: X position relative to the page coordinates.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
static
setY()
File: Region.php line 707
public setY(float $ypos[, int $pid = -1 ]) : static
Parameters
- $ypos : float: Y position relative to the page coordinates.
- $pid : int = -1: Page index. Omit or set it to -1 for the current page.
Tags
- throws: Exception
Return values
static
swapCoordinates()
File: Box.php line 266
public swapCoordinates(array<string, PageBox> $dims) : array<string, PageBox>
Parameters
- $dims : array<string, PageBox>: Array of page dimensions.
Return values
array<string, PageBox> —
Page dimensions.