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 "include/docs/SkPDFDocument.h" 12 #include "src/pdf/SkPDFTypes.h" 13 #include "src/pdf/SkUUID.h" 14 15 class SkPDFObject; 16 17 namespace SkPDFMetadata { 18 std::unique_ptr<SkPDFObject> MakeDocumentInformationDict(const SkPDF::Metadata&); 19 20 SkUUID CreateUUID(const SkPDF::Metadata&); 21 22 std::unique_ptr<SkPDFObject> MakePdfId(const SkUUID& doc, const SkUUID& instance); 23 24 SkPDFIndirectReference MakeXMPObject(const SkPDF::Metadata& metadata, 25 const SkUUID& doc, 26 const SkUUID& instance, 27 SkPDFDocument*); 28 } // namespace SkPDFMetadata 29 #endif // SkPDFMetadata_DEFINED 30