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

Unified Diff: include/core/SkDocument.h

Issue 2074583003: SkPDF: allow overriding Producer metadata (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-06-30 (Thursday) 10:42:59 EDT Created 4 years, 6 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
« no previous file with comments | « no previous file | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDocument.h
diff --git a/include/core/SkDocument.h b/include/core/SkDocument.h
index 9eed304a4030d45201de4b52b1ab02762c6550a1..eede42003d2c93948a303898ac4e8d5d021c1e32 100644
--- a/include/core/SkDocument.h
+++ b/include/core/SkDocument.h
@@ -47,12 +47,42 @@ public:
* Optional metadata to be passed into the PDF factory function.
*/
struct PDFMetadata {
+ /**
+ * The document’s title.
+ */
SkString fTitle;
+ /**
+ * The name of the person who created the document.
+ */
SkString fAuthor;
+ /**
+ * The subject of the document.
+ */
SkString fSubject;
+ /**
+ * Keywords associated with the document. Commas may be used
+ * to delineate keywords within the string.
+ */
SkString fKeywords;
+ /**
+ * If the document was converted to PDF from another format,
+ * the name of the conforming product that created the
+ * original document from which it was converted.
+ */
SkString fCreator;
+ /**
+ * The product that is converting this document to PDF.
+ *
+ * Leave fProducer empty to get the default, correct value.
+ */
+ SkString fProducer;
+ /**
+ * The date and time the document was created.
+ */
OptionalTimestamp fCreation;
+ /**
+ * The date and time the document was most recently modified.
+ */
OptionalTimestamp fModified;
};
« no previous file with comments | « no previous file | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698