Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
CRAP
100.00% covered (success)
100.00%
1 / 1
PdfRProfile
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
6
100.00% covered (success)
100.00%
1 / 1
 getFamily
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLevel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPdfVersion
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getXmpNamespace
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getXmpPrefix
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getXmpProperties
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Pdf\Conformance\Profile;
6
7use Phpdftk\Pdf\Core\PdfVersion;
8
9/**
10 * PDF/R conformance profiles (ISO 23504).
11 *
12 * PDF/R is designed for raster image transport — scanned document
13 * exchange with minimal structural requirements.
14 *
15 * PDF/R-1 (ISO 23504-1): based on PDF 2.0
16 */
17enum PdfRProfile: string implements ConformanceProfile
18{
19    case R1 = 'R-1';
20
21    public function getFamily(): string
22    {
23        return 'PDF/R';
24    }
25
26    public function getLevel(): string
27    {
28        return $this->value;
29    }
30
31    public function getPdfVersion(): PdfVersion
32    {
33        return PdfVersion::V2_0;
34    }
35
36    public function getXmpNamespace(): string
37    {
38        return 'http://www.pdfa.org/pdfr/ns/id/';
39    }
40
41    public function getXmpPrefix(): string
42    {
43        return 'pdfrid';
44    }
45
46    public function getXmpProperties(): array
47    {
48        return ['part' => '1'];
49    }
50}