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

Unified Diff: experimental/PdfViewer/SkPdfDocumentInformationDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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
Index: experimental/PdfViewer/SkPdfDocumentInformationDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfDocumentInformationDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfDocumentInformationDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entries in the document information dictionary
class SkPdfDocumentInformationDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kDocumentInformationDictionary_SkPdfObjectType;}
@@ -521,6 +522,12 @@
SkPdfDocumentInformationDictionary& operator=(const SkPdfDocumentInformationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional; PDF 1.1) The document's title.
+**/
+ bool has_Title() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Title", "", NULL));
+ }
+
std::string Title() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Title", "", &ret)) return ret;
@@ -528,6 +535,12 @@
return "";
}
+/** (Optional) The name of the person who created the document.
+**/
+ bool has_Author() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Author", "", NULL));
+ }
+
std::string Author() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Author", "", &ret)) return ret;
@@ -535,6 +548,12 @@
return "";
}
+/** (Optional; PDF 1.1) The subject of the document.
+**/
+ bool has_Subject() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subject", "", NULL));
+ }
+
std::string Subject() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subject", "", &ret)) return ret;
@@ -542,6 +561,12 @@
return "";
}
+/** (Optional; PDF 1.1) Keywords associated with the document.
+**/
+ bool has_Keywords() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Keywords", "", NULL));
+ }
+
std::string Keywords() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Keywords", "", &ret)) return ret;
@@ -549,6 +574,14 @@
return "";
}
+/** (Optional) If the document was converted to PDF from another format, the
+ * name of the application (for example, Adobe FrameMaker(R)) that created the
+ * original document from which it was converted.
+**/
+ bool has_Creator() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", NULL));
+ }
+
std::string Creator() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", &ret)) return ret;
@@ -556,6 +589,14 @@
return "";
}
+/** (Optional) If the document was converted to PDF from another format, the
+ * name of the application (for example, Acrobat Distiller) that converted it to
+ * PDF.
+**/
+ bool has_Producer() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Producer", "", NULL));
+ }
+
std::string Producer() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Producer", "", &ret)) return ret;
@@ -563,6 +604,13 @@
return "";
}
+/** (Optional) The date and time the document was created, in human-readable
+ * form (see Section 3.8.2, "Dates").
+**/
+ bool has_CreationDate() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate", "", NULL));
+ }
+
SkPdfDate CreationDate() const {
SkPdfDate ret;
if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate", "", &ret)) return ret;
@@ -570,6 +618,13 @@
return SkPdfDate();
}
+/** (Optional; PDF 1.1) The date and time the document was most recently
+ * modified, in human-readable form (see Section 3.8.2, "Dates").
+**/
+ bool has_ModDate() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "", NULL));
+ }
+
SkPdfDate ModDate() const {
SkPdfDate ret;
if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "", &ret)) return ret;
@@ -577,6 +632,27 @@
return SkPdfDate();
}
+/** (Optional; PDF 1.3) A name object indicating whether the document has
+ * been modified to include trapping information (see Section 9.10.5, "Trap-
+ * ping Support"):
+ * True The document has been fully trapped; no further trapping is
+ * needed. (Note that this is the name True, not the boolean
+ * value true.)
+ * False The document has not yet been trapped; any desired trap-
+ * ping must still be done. (Note that this is the name False, not
+ * the boolean value false.)
+ * Unknown Either it is unknown whether the document has been
+ * trapped or it has been partly but not yet fully trapped; some
+ * additional trapping may still be needed.
+ * Default value: Unknown.
+ * The value of this entry may be set automatically by the software creating the
+ * document's trapping information or may be known only to a human opera-
+ * tor and entered manually.
+**/
+ bool has_Trapped() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Trapped", "", NULL));
+ }
+
std::string Trapped() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Trapped", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698