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