Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
6 / 6 |
|
100.00% |
6 / 6 |
CRAP | |
100.00% |
1 / 1 |
| PdfMailProfile | |
100.00% |
6 / 6 |
|
100.00% |
6 / 6 |
6 | |
100.00% |
1 / 1 |
| getFamily | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getLevel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getPdfVersion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getXmpNamespace | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getXmpPrefix | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getXmpProperties | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Pdf\Conformance\Profile; |
| 6 | |
| 7 | use Phpdftk\Pdf\Core\PdfVersion; |
| 8 | |
| 9 | /** |
| 10 | * PDF/mail conformance profile (ISO 23053-2). |
| 11 | * |
| 12 | * Restricted PDF profile for email-safe documents. Prohibits encryption, |
| 13 | * JavaScript, interactive forms, and multimedia content. All fonts must |
| 14 | * be embedded. |
| 15 | */ |
| 16 | enum PdfMailProfile: string implements ConformanceProfile |
| 17 | { |
| 18 | case Mail1 = 'mail-1'; |
| 19 | |
| 20 | public function getFamily(): string |
| 21 | { |
| 22 | return 'PDF/mail'; |
| 23 | } |
| 24 | |
| 25 | public function getLevel(): string |
| 26 | { |
| 27 | return '1'; |
| 28 | } |
| 29 | |
| 30 | public function getPdfVersion(): PdfVersion |
| 31 | { |
| 32 | return PdfVersion::V2_0; |
| 33 | } |
| 34 | |
| 35 | public function getXmpNamespace(): string |
| 36 | { |
| 37 | return 'http://www.pdfa.org/pdfmail/ns/id/'; |
| 38 | } |
| 39 | |
| 40 | public function getXmpPrefix(): string |
| 41 | { |
| 42 | return 'pdfmailid'; |
| 43 | } |
| 44 | |
| 45 | public function getXmpProperties(): array |
| 46 | { |
| 47 | return ['part' => '1']; |
| 48 | } |
| 49 | } |