Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: src/pdf/SkPDFMetadata.h

Issue 1394263003: SkPDF: Optionally output PDF/A-2b archive format. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: works on windows Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pdf/SkPDFMetadata.h
diff --git a/src/pdf/SkPDFMetadata.h b/src/pdf/SkPDFMetadata.h
new file mode 100644
index 0000000000000000000000000000000000000000..c3c1138fecf0ab65a878a788a0bbd0c31e4edbf2
--- /dev/null
+++ b/src/pdf/SkPDFMetadata.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkPDFMetadata_DEFINED
+#define SkPDFMetadata_DEFINED
+
+#include "SkDocument.h"
+#include "SkTime.h"
+
+class SkPDFObject;
+
+struct SkPDFMetadata {
+ SkTArray<SkDocument::Attribute> fInfo;
+ SkAutoTDelete<const SkTime::DateTime> fCreation;
+ SkAutoTDelete<const SkTime::DateTime> fModified;
+
+ SkPDFObject* createDocumentInformationDict() const;
+
+ struct UUID { uint8_t fData[16]; };
+ UUID uuid() const;
tomhudson 2015/10/09 15:31:37 Would it make sense to name this generateUUID() or
+ static SkPDFObject* CreatePdfId(const UUID& doc, const UUID& instance);
+
+ #ifdef SK_PDF_GENERATE_PDFA
+ SkPDFObject* createXMPObject(const UUID& doc, const UUID& instance) const;
+ #endif // SK_PDF_GENERATE_PDFA
+};
+
+#endif // SkPDFMetadata_DEFINED

Powered by Google App Engine
This is Rietveld 408576698