| Index: experimental/PdfViewer/SkPdfEmbeddedFontStreamDictionary_autogen.h
|
| ===================================================================
|
| --- experimental/PdfViewer/SkPdfEmbeddedFontStreamDictionary_autogen.h (revision 9684)
|
| +++ experimental/PdfViewer/SkPdfEmbeddedFontStreamDictionary_autogen.h (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "SkPdfArray_autogen.h"
|
| #include "SkPdfDictionary_autogen.h"
|
|
|
| +// Additional entries in an embedded font stream dictionary
|
| class SkPdfEmbeddedFontStreamDictionary : public SkPdfDictionary {
|
| public:
|
| virtual SkPdfObjectType getType() const { return kEmbeddedFontStreamDictionary_SkPdfObjectType;}
|
| @@ -521,6 +522,14 @@
|
|
|
| SkPdfEmbeddedFontStreamDictionary& operator=(const SkPdfEmbeddedFontStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
|
|
|
| +/** (Required for Type 1 and TrueType fonts) The length in bytes of the clear-text portion
|
| + * of the Type 1 font program (see below), or the entire TrueType font program, after it
|
| + * has been decoded using the filters specified by the stream's Filter entry, if any.
|
| +**/
|
| + bool has_Length1() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length1", "", NULL));
|
| + }
|
| +
|
| long Length1() const {
|
| long ret;
|
| if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length1", "", &ret)) return ret;
|
| @@ -528,6 +537,14 @@
|
| return 0;
|
| }
|
|
|
| +/** (Required for Type 1 fonts) The length in bytes of the encrypted portion of the Type 1
|
| + * font program (see below) after it has been decoded using the filters specified by the
|
| + * stream's Filter entry.
|
| +**/
|
| + bool has_Length2() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length2", "", NULL));
|
| + }
|
| +
|
| long Length2() const {
|
| long ret;
|
| if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length2", "", &ret)) return ret;
|
| @@ -535,6 +552,15 @@
|
| return 0;
|
| }
|
|
|
| +/** (Required for Type 1 fonts) The length in bytes of the fixed-content portion of the
|
| + * Type 1 font program (see below), after it has been decoded using the filters specified
|
| + * by the stream's Filter entry. If Length3 is 0, it indicates that the 512 zeros and clearto-
|
| + * mark have not been included in the FontFile font program and must be added.
|
| +**/
|
| + bool has_Length3() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length3", "", NULL));
|
| + }
|
| +
|
| long Length3() const {
|
| long ret;
|
| if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length3", "", &ret)) return ret;
|
| @@ -542,6 +568,15 @@
|
| return 0;
|
| }
|
|
|
| +/** (Required if referenced from FontFile3; PDF 1.2) A name specifying the format of the
|
| + * embedded font program. The name must be Type1C for Type 1 compact fonts or CID-
|
| + * FontType0C for Type 0 compact CIDFonts. When additional font formats are added
|
| + * to PDF, more values will be defined for Subtype.
|
| +**/
|
| + bool has_Subtype() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL));
|
| + }
|
| +
|
| std::string Subtype() const {
|
| std::string ret;
|
| if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
|
| @@ -549,6 +584,13 @@
|
| return "";
|
| }
|
|
|
| +/** (Optional; PDF 1.4) A metadata stream containing metadata for the embedded font
|
| + * program (see Section 9.2.2, "Metadata Streams").
|
| +**/
|
| + bool has_Metadata() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL));
|
| + }
|
| +
|
| SkPdfStream Metadata() const {
|
| SkPdfStream ret;
|
| if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
|
|
|