OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkPDFMetadata_DEFINED | 8 #ifndef SkPDFMetadata_DEFINED |
9 #define SkPDFMetadata_DEFINED | 9 #define SkPDFMetadata_DEFINED |
10 | 10 |
11 #include "SkDocument.h" | 11 #include "SkDocument.h" |
12 #include "SkTime.h" | 12 #include "SkTime.h" |
13 | 13 |
14 class SkPDFObject; | 14 class SkPDFObject; |
15 | 15 |
16 struct SkPDFMetadata { | 16 struct SkPDFMetadata { |
17 SkTArray<SkDocument::Attribute> fInfo; | 17 SkTArray<SkDocument::Attribute> fInfo; |
18 std::unique_ptr<const SkTime::DateTime> fCreation; | 18 std::unique_ptr<const SkTime::DateTime> fCreation; |
19 std::unique_ptr<const SkTime::DateTime> fModified; | 19 std::unique_ptr<const SkTime::DateTime> fModified; |
20 | 20 |
21 SkPDFObject* createDocumentInformationDict() const; | 21 SkPDFObject* createDocumentInformationDict() const; |
22 | 22 |
23 #ifdef SK_PDF_GENERATE_PDFA | |
24 struct UUID { | 23 struct UUID { |
25 uint8_t fData[16]; | 24 uint8_t fData[16]; |
26 }; | 25 }; |
27 UUID uuid() const; | 26 UUID uuid() const; |
28 static SkPDFObject* CreatePdfId(const UUID& doc, const UUID& instance); | 27 static SkPDFObject* CreatePdfId(const UUID& doc, const UUID& instance); |
29 SkPDFObject* createXMPObject(const UUID& doc, const UUID& instance) const; | 28 SkPDFObject* createXMPObject(const UUID& doc, const UUID& instance) const; |
30 #endif // SK_PDF_GENERATE_PDFA | |
31 }; | 29 }; |
32 | 30 |
33 #endif // SkPDFMetadata_DEFINED | 31 #endif // SkPDFMetadata_DEFINED |
OLD | NEW |