more work on pdf fonts, more to come

Review URL: https://codereview.chromium.org/18117005

git-svn-id: http://skia.googlecode.com/svn/trunk@9796 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
edisonn@google.com 2013-06-27 20:03:43 +00:00
parent f48e475528
commit 6e49c345b1
351 changed files with 1273 additions and 644 deletions

View File

@ -148,49 +148,51 @@ SkTypeface* SkTypefaceFromPdfStandardFont(const char* fontName, bool bold, bool
return typeface;
}
static SkPdfFont* fontFromFontDescriptor(SkPdfFontDescriptorDictionary* fd) {
SkPdfFont* SkPdfFont::fontFromFontDescriptor(SkPdfFontDescriptorDictionary* fd, bool loadFromName) {
// TODO(edisonn): partial implementation
// Only one, at most be available
SkPdfStream* pdfStream = NULL;
if (fd->has_FontFile()) {
pdfStream = fd->FontFile();
} else if (fd->has_FontFile2()) {
SkPdfStream* pdfStream = fd->FontFile2();
if (!pdfStream->podofo()->GetStream()) {
// TODO(edisonn): report warning to be used in testing.
return NULL;
}
char* uncompressedStream = NULL;
pdf_long uncompressedStreamLength = 0;
// TODO(edisonn): get rid of try/catch exceptions! We should not throw on user data!
try {
pdfStream->podofo()->GetStream()->GetFilteredCopy(&uncompressedStream, &uncompressedStreamLength);
} catch (PdfError& e) {
// TODO(edisonn): report warning to be used in testing.
return NULL;
}
SkMemoryStream* skStream = new SkMemoryStream(uncompressedStream, uncompressedStreamLength);
SkTypeface* face = SkTypeface::CreateFromStream(skStream);
if (face == NULL) {
// TODO(edisonn): report warning to be used in testing.
return NULL;
}
face->ref();
return new SkPdfStandardFont(face);
pdfStream = fd->FontFile2();
} if (fd->has_FontFile3()) {
pdfStream = fd->FontFile3();
} else {
if (loadFromName) {
return fontFromName(fd, fd->FontName().c_str());
}
}
return NULL;
if (!pdfStream || !pdfStream->podofo()->GetStream()) {
// TODO(edisonn): report warning to be used in testing.
return NULL;
}
char* uncompressedStream = NULL;
pdf_long uncompressedStreamLength = 0;
// TODO(edisonn): get rid of try/catch exceptions! We should not throw on user data!
try {
pdfStream->podofo()->GetStream()->GetFilteredCopy(&uncompressedStream, &uncompressedStreamLength);
} catch (PdfError& e) {
// TODO(edisonn): report warning to be used in testing.
return NULL;
}
SkMemoryStream* skStream = new SkMemoryStream(uncompressedStream, uncompressedStreamLength);
SkTypeface* face = SkTypeface::CreateFromStream(skStream);
if (face == NULL) {
// TODO(edisonn): report warning to be used in testing.
return NULL;
}
face->ref();
return new SkPdfStandardFont(face);
}
SkPdfFont* SkPdfFontFromName(SkPdfObject* obj, const char* fontName) {
SkPdfFont* fontFromName(SkPdfObject* obj, const char* fontName) {
SkTypeface* typeface = SkTypefaceFromPdfStandardFont(fontName, false, false);
if (typeface != NULL) {
return new SkPdfStandardFont(typeface);
@ -203,7 +205,7 @@ SkPdfFont* SkPdfFontFromName(SkPdfObject* obj, const char* fontName) {
SkPdfFontDescriptorDictionary* fd = NULL;
if (mapFontDescriptorDictionary(*obj->doc(), *podofoFont, &fd)) {
if (fd->has_FontName() && fd->FontName() == fontName) {
SkPdfFont* font = fontFromFontDescriptor(fd);
SkPdfFont* font = SkPdfFont::fontFromFontDescriptor(fd, false);
if (font) {
return font;
} else {
@ -233,9 +235,6 @@ SkPdfFont* SkPdfFont::fontFromPdfDictionary(SkPdfFontDictionary* dict) {
case kType1FontDictionary_SkPdfObjectType:
return fontFromType1FontDictionary(dict->asType1FontDictionary());
case kCIDFontDictionary_SkPdfObjectType:
return fontFromCIDFontDictionary(dict->asCIDFontDictionary());
case kMultiMasterFontDictionary_SkPdfObjectType:
return fontFromMultiMasterFontDictionary(dict->asMultiMasterFontDictionary());
@ -279,14 +278,6 @@ SkPdfTrueTypeFont* SkPdfFont::fontFromTrueTypeFontDictionary(SkPdfTrueTypeFontDi
return new SkPdfTrueTypeFont(dict);
}
SkPdfCIDFont* SkPdfFont::fontFromCIDFontDictionary(SkPdfCIDFontDictionary* dict) {
if (dict == NULL) {
return NULL; // default one?
}
return new SkPdfCIDFont(dict);
}
SkPdfMultiMasterFont* SkPdfFont::fontFromMultiMasterFontDictionary(SkPdfMultiMasterFontDictionary* dict) {
if (dict == NULL) {
return NULL; // default one?
@ -396,7 +387,7 @@ SkPdfToUnicode::SkPdfToUnicode(const SkPdfStream* stream) {
SkPdfType0Font::SkPdfType0Font(SkPdfType0FontDictionary* dict) {
fBaseFont = SkPdfFontFromName(dict, dict->BaseFont().c_str());
fBaseFont = fontFromName(dict, dict->BaseFont().c_str());
fEncoding = NULL;
if (dict->has_Encoding()) {

View File

@ -17,7 +17,6 @@ class SkPdfType0Font;
class SkPdfType1Font;
class SkPdfType3Font;
class SkPdfTrueTypeFont;
class SkPdfCIDFont;
class SkPdfMultiMasterFont;
class SkPdfFont;
@ -30,7 +29,7 @@ struct SkPdfStandardFontEntry {
std::map<std::string, SkPdfStandardFontEntry>& getStandardFonts();
SkTypeface* SkTypefaceFromPdfStandardFont(const char* fontName, bool bold, bool italic);
SkPdfFont* SkPdfFontFromName(SkPdfObject* obj, const char* fontName);
SkPdfFont* fontFromName(SkPdfObject* obj, const char* fontName);
struct SkUnencodedText {
void* text;
@ -100,6 +99,28 @@ public:
}
};
// TODO(edisonn): using this one when no encoding is specified
class SkPdfDefaultEncoding : public SkPdfEncoding {
public:
virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const {
// TODO(edisonn): SkASSERT(textIn.len % 2 == 0); or report error?
unsigned char* text = (unsigned char*)textIn.text;
textOut->text = new uint16_t[textIn.len];
textOut->len = textIn.len;
for (int i = 0; i < textOut->len; i++) {
textOut->text[i] = text[i];
}
return true;
}
static SkPdfDefaultEncoding* instance() {
static SkPdfDefaultEncoding* inst = new SkPdfDefaultEncoding();
return inst;
}
};
class SkPdfCIDToGIDMapIdentityEncoding : public SkPdfEncoding {
public:
@ -131,13 +152,15 @@ public:
public:
SkPdfFont() : fBaseFont(NULL), fEncoding(NULL), fToUnicode(NULL) {}
SkPdfFont() : fBaseFont(NULL), fEncoding(SkPdfDefaultEncoding::instance()), fToUnicode(NULL) {}
const SkPdfEncoding* encoding() const {return fEncoding;}
void drawText(const SkDecodedText& text, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) {
void drawText(const SkDecodedText& text, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas) {
for (int i = 0 ; i < text.size(); i++) {
drawOneChar(text[i], paint, pdfContext, canvas, matrix);
double width = drawOneChar(text[i], paint, pdfContext, canvas);
pdfContext->fGraphicsState.fMatrixTm.preTranslate(SkDoubleToScalar(width), SkDoubleToScalar(0.0));
canvas->translate(SkDoubleToScalar(width), SkDoubleToScalar(0.0));
}
}
@ -163,18 +186,18 @@ public:
};
static SkPdfFont* fontFromPdfDictionary(SkPdfFontDictionary* dict);
static SkPdfFont* Default() {return SkPdfFontFromName(NULL, "TimesNewRoman");}
static SkPdfFont* Default() {return fontFromName(NULL, "TimesNewRoman");}
static SkPdfType0Font* fontFromType0FontDictionary(SkPdfType0FontDictionary* dict);
static SkPdfType1Font* fontFromType1FontDictionary(SkPdfType1FontDictionary* dict);
static SkPdfType3Font* fontFromType3FontDictionary(SkPdfType3FontDictionary* dict);
static SkPdfTrueTypeFont* fontFromTrueTypeFontDictionary(SkPdfTrueTypeFontDictionary* dict);
static SkPdfCIDFont* fontFromCIDFontDictionary(SkPdfCIDFontDictionary* dict);
static SkPdfMultiMasterFont* fontFromMultiMasterFontDictionary(SkPdfMultiMasterFontDictionary* dict);
static SkPdfFont* fontFromFontDescriptor(SkPdfFontDescriptorDictionary* fd, bool loadFromName = true);
public:
virtual void drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) = 0;
virtual void afterChar(SkPaint* paint, SkMatrix* matrix) = 0;
virtual double drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas) = 0;
virtual void afterWord(SkPaint* paint, SkMatrix* matrix) = 0;
};
@ -185,7 +208,7 @@ public:
SkPdfStandardFont(SkTypeface* typeface) : fTypeface(typeface) {}
public:
virtual void drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) {
virtual double drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas) {
paint->setTypeface(fTypeface);
paint->setTextEncoding(SkPaint::kUTF8_TextEncoding);
@ -196,10 +219,9 @@ public:
canvas->drawText(utf8, len, SkDoubleToScalar(0), SkDoubleToScalar(0), *paint);
SkScalar textWidth = paint->measureText(utf8, len);
matrix->preTranslate(textWidth, SkDoubleToScalar(0.0));
return SkScalarToDouble(textWidth);
}
virtual void afterChar(SkPaint* paint, SkMatrix* matrix) {}
virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {}
};
@ -209,98 +231,43 @@ public:
public:
virtual void drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) {
fBaseFont->drawOneChar(ToUnicode(ch), paint, pdfContext, canvas, matrix);
}
virtual void afterChar(SkPaint* paint, SkMatrix* matrix) {
virtual double drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas) {
return fBaseFont->drawOneChar(ToUnicode(ch), paint, pdfContext, canvas);
}
virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {
}
};
class SkPdfTrueTypeFont : public SkPdfFont {
public:
SkPdfTrueTypeFont(SkPdfTrueTypeFontDictionary* dict) {
fBaseFont = SkPdfFontFromName(dict, dict->BaseFont().c_str());
}
public:
virtual void drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) {
}
virtual void afterChar(SkPaint* paint, SkMatrix* matrix) {
}
virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {
}
};
class SkPdfType1Font : public SkPdfFont {
public:
SkPdfType1Font(SkPdfType1FontDictionary* dict) {
fBaseFont = SkPdfFontFromName(dict, dict->BaseFont().c_str());
if (dict->has_FontDescriptor()) {
fBaseFont = SkPdfFont::fontFromFontDescriptor(dict->FontDescriptor());
} else {
fBaseFont = fontFromName(dict, dict->BaseFont().c_str());
}
}
public:
virtual void drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) {
}
virtual void afterChar(SkPaint* paint, SkMatrix* matrix) {
virtual double drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas) {
return fBaseFont->drawOneChar(ToUnicode(ch), paint, pdfContext, canvas);
}
virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {
}
};
};
class SkPdfCIDFont : public SkPdfFont {
class SkPdfTrueTypeFont : public SkPdfType1Font {
public:
SkPdfCIDFont(SkPdfCIDFontDictionary* dict) {
fBaseFont = SkPdfFontFromName(dict, dict->BaseFont().c_str());
}
public:
virtual void drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) {
}
virtual void afterChar(SkPaint* paint, SkMatrix* matrix) {
}
virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {
SkPdfTrueTypeFont(SkPdfTrueTypeFontDictionary* dict) : SkPdfType1Font(dict) {
}
};
class SkPdfMultiMasterFont : public SkPdfFont {
class SkPdfMultiMasterFont : public SkPdfType1Font {
public:
SkPdfMultiMasterFont(SkPdfMultiMasterFontDictionary* dict) {
fBaseFont = SkPdfFontFromName(dict, dict->BaseFont().c_str());
}
public:
virtual void drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) {
}
virtual void afterChar(SkPaint* paint, SkMatrix* matrix) {
}
virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {
SkPdfMultiMasterFont(SkPdfMultiMasterFontDictionary* dict) : SkPdfType1Font(dict) {
}
};
/*
@ -351,7 +318,7 @@ class SkPdfType3Font : public SkPdfFont {
public:
SkPdfType3Font(SkPdfType3FontDictionary* dict) {
fBaseFont = SkPdfFontFromName(dict, dict->BaseFont().c_str());
fBaseFont = fontFromName(dict, dict->BaseFont().c_str());
if (dict->has_Encoding()) {
if (dict->isEncodingAName()) {
@ -410,10 +377,9 @@ public:
}
public:
virtual void drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas, SkMatrix* matrix) {
virtual double drawOneChar(unsigned int ch, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas) {
if (ch < fFirstChar || ch > fLastChar || !fChars[ch - fFirstChar].fObj) {
fBaseFont->drawOneChar(ToUnicode(ch), paint, pdfContext, canvas, matrix);
return;
return fBaseFont->drawOneChar(ToUnicode(ch), paint, pdfContext, canvas);
}
#ifdef PDF_TRACE
@ -424,9 +390,10 @@ public:
#endif
doType3Char(pdfContext, canvas, fChars[ch - fFirstChar].fObj, fFontBBox, fFonMatrix, pdfContext->fGraphicsState.fCurFontSize);
}
virtual void afterChar(SkPaint* paint, SkMatrix* matrix) {
// TODO(edisonn): verify/test translate code, not tested yet
pdfContext->fGraphicsState.fMatrixTm.preTranslate(SkDoubleToScalar(pdfContext->fGraphicsState.fCurFontSize * fChars[ch - fFirstChar].fWidth),
SkDoubleToScalar(0.0));
}
virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {

View File

@ -34,6 +34,8 @@ __SK_FORCE_IMAGE_DECODER_LINKING;
// TODO(edisonn): security - validate all the user input, all pdf!
// TODO(edisonn): put drawtext in #ifdefs, so comparations will ignore minor changes in text positioning and font
// this way, we look more at other features and layout in diffs
#include "SkPdfHeaders_autogen.h"
#include "SkPdfPodofoMapper_autogen.h"
@ -386,7 +388,7 @@ PdfResult DrawText(PdfContext* pdfContext,
SkTraceMatrix(matrix, "mirrored");
#endif
skfont->drawText(decoded, &paint, pdfContext, canvas, &pdfContext->fGraphicsState.fMatrixTm);
skfont->drawText(decoded, &paint, pdfContext, canvas);
canvas->restore();
return kPartial_PdfResult;
@ -2334,7 +2336,14 @@ bool SkPdfViewer::load(const SkString inputFileName, SkPicture* out) {
doc.drawPage(pn, &canvas);
SkString out;
out.appendf("%s-%i.png", inputFileName.c_str(), pn);
if (doc.pages() > 1) {
out.appendf("%s-%i.png", inputFileName.c_str(), pn);
} else {
out = inputFileName;
// .pdf -> .png
out[out.size() - 2] = 'n';
out[out.size() - 1] = 'g';
}
SkImageEncoder::EncodeFile(out.c_str(), bitmap, SkImageEncoder::kPNG_Type, 100);
}
return true;

View File

@ -48,3 +48,4 @@ SkPdfDictionary* SkPdfALinkAnnotationDictionary::PA() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -27,3 +27,4 @@ SkPdfArray* SkPdfActionDictionary::getNextAsArray() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -13,3 +13,4 @@ bool SkPdfAlternateImageDictionary::DefaultForPrinting() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return false;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -41,3 +41,4 @@ SkPdfDictionary* SkPdfAnnotationActionsDictionary::Bl() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -132,3 +132,4 @@ long SkPdfAnnotationDictionary::StructParent() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -76,3 +76,4 @@ long SkPdfAppearanceCharacteristicsDictionary::TP() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -41,3 +41,4 @@ SkPdfDictionary* SkPdfAppearanceDictionary::getDAsDictionary() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -13,3 +13,4 @@ SkPdfObject* SkPdfApplicationDataDictionary::Private() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -1 +1,2 @@
#include "SkPdfArray_autogen.h"

View File

@ -69,6 +69,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -168,9 +171,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -20,3 +20,4 @@ SkPdfArray* SkPdfArtifactsDictionary::Attached() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -6,3 +6,4 @@ std::string SkPdfAttributeObjectDictionary::O() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -41,3 +41,4 @@ SkRect* SkPdfBeadDictionary::R() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -90,3 +90,4 @@ std::string SkPdfBlockLevelStructureElementsDictionary::InlineAlign() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -1 +1,2 @@
#include "SkPdfBoolean_autogen.h"

View File

@ -69,6 +69,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -168,9 +171,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -27,3 +27,4 @@ SkPdfArray* SkPdfBorderStyleDictionary::D() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -27,3 +27,4 @@ SkPdfDictionary* SkPdfBoxColorInformationDictionary::ArtBox() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -27,3 +27,4 @@ SkPdfArray* SkPdfBoxStyleDictionary::D() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -27,3 +27,4 @@ SkPdfStream* SkPdfCIDFontDescriptorDictionary::CIDSet() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -61,6 +61,9 @@ private:
virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;}
virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -28,9 +28,9 @@ SkPdfDictionary* SkPdfCIDFontDictionary::CIDSystemInfo() const {
return NULL;
}
SkPdfDictionary* SkPdfCIDFontDictionary::FontDescriptor() const {
SkPdfDictionary* ret;
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontDescriptor", "", &ret)) return ret;
SkPdfFontDescriptorDictionary* SkPdfCIDFontDictionary::FontDescriptor() const {
SkPdfFontDescriptorDictionary* ret;
if (FontDescriptorDictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontDescriptor", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}
@ -76,3 +76,4 @@ std::string SkPdfCIDFontDictionary::getCIDToGIDMapAsName() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}

View File

@ -4,10 +4,10 @@
#include "SkPdfUtils.h"
#include "SkPdfEnums_autogen.h"
#include "SkPdfArray_autogen.h"
#include "SkPdfFontDictionary_autogen.h"
#include "SkPdfDictionary_autogen.h"
// Entries in a CIDFont dictionary
class SkPdfCIDFontDictionary : public SkPdfFontDictionary {
class SkPdfCIDFontDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kCIDFontDictionary_SkPdfObjectType;}
virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCIDFontDictionary_SkPdfObjectType + 1);}
@ -16,6 +16,153 @@ public:
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return this;}
private:
virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;}
virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;}
virtual SkPdfActionDictionary* asActionDictionary() {return NULL;}
virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;}
virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;}
virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;}
virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;}
virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;}
virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;}
virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;}
virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;}
virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;}
virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;}
virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;}
virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;}
virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;}
virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;}
virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;}
virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;}
virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;}
virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;}
virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;}
virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;}
virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;}
virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;}
virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;}
virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;}
virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;}
virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;}
virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;}
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;}
virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;}
virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;}
virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;}
virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;}
virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;}
virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;}
virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;}
virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;}
virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;}
virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;}
virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;}
virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;}
virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;}
virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;}
virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;}
virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;}
virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;}
virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;}
virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;}
virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;}
virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;}
virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;}
virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;}
virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;}
virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;}
virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;}
virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;}
virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;}
virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;}
virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;}
virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;}
virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;}
virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;}
virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;}
virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;}
virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;}
virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;}
virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;}
virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;}
virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;}
virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;}
virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;}
virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;}
virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;}
virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;}
virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;}
virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;}
virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;}
virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;}
virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;}
virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;}
virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;}
virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;}
virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;}
virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;}
virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;}
virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;}
virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;}
virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;}
virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;}
virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;}
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
@ -31,12 +178,348 @@ private:
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;}
virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;}
virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;}
virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;}
virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;}
virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;}
virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;}
virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;}
virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;}
virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;}
virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;}
virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;}
virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;}
virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;}
virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;}
virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;}
virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;}
virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;}
virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;}
virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;}
virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;}
virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;}
virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;}
virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;}
virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;}
virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;}
virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;}
virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;}
virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;}
virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;}
virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;}
virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;}
virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;}
virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;}
virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;}
virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;}
virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;}
virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;}
virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;}
virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;}
virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;}
virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;}
virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;}
virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;}
virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;}
virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;}
virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;}
virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;}
virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;}
virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;}
virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;}
virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;}
virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;}
virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;}
virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;}
virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;}
virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;}
virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;}
virtual SkPdfNameDictionary* asNameDictionary() {return NULL;}
virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;}
virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;}
virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;}
virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;}
virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;}
virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;}
virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;}
virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;}
virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;}
virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;}
virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;}
virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;}
virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;}
virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;}
virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;}
virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;}
virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;}
virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;}
virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;}
virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;}
virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;}
virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;}
virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;}
virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;}
virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;}
virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;}
virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;}
virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;}
virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;}
virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;}
virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;}
virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;}
virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;}
virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;}
virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;}
virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;}
virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;}
virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;}
virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;}
virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;}
virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;}
virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;}
virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;}
virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;}
virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;}
virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;}
virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;}
virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;}
virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;}
virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;}
virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;}
virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;}
virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;}
virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;}
virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;}
virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;}
virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;}
virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;}
virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;}
virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;}
virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;}
virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;}
virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;}
virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;}
virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;}
virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;}
virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;}
virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;}
virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;}
virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;}
virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;}
virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;}
virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;}
virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;}
virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;}
virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;}
virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;}
virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;}
virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;}
virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;}
virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;}
virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;}
virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;}
virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;}
virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;}
virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;}
virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;}
virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;}
virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;}
virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;}
virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;}
virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;}
virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;}
virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;}
virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;}
virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;}
virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;}
virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;}
virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;}
virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;}
virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;}
virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;}
virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;}
virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;}
virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;}
virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;}
virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;}
virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;}
virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;}
virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;}
virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;}
virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;}
virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;}
virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;}
virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;}
virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;}
virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;}
virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;}
virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;}
virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;}
virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;}
virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;}
virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;}
virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;}
virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;}
virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;}
virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;}
virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;}
virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;}
virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;}
virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;}
virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;}
virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;}
virtual SkPdfURIDictionary* asURIDictionary() {return NULL;}
virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;}
virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;}
virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;}
virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;}
virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;}
virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;}
virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;}
virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;}
virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;}
virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;}
virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;}
virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;}
virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;}
virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;}
virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;}
virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;}
virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;}
virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;}
virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;}
virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;}
virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;}
virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;}
virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;}
virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;}
virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;}
virtual SkPdfImageDictionary* asImageDictionary() {return NULL;}
virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;}
virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;}
virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;}
public:
private:
public:
SkPdfCIDFontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfFontDictionary(podofoDoc, podofoObj) {}
SkPdfCIDFontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
SkPdfCIDFontDictionary(const SkPdfCIDFontDictionary& from) : SkPdfFontDictionary(from.fPodofoDoc, from.fPodofoObj) {}
SkPdfCIDFontDictionary(const SkPdfCIDFontDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {}
virtual bool valid() const {return true;}
@ -84,7 +567,7 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontDescriptor", "", NULL));
}
SkPdfDictionary* FontDescriptor() const;
SkPdfFontDescriptorDictionary* FontDescriptor() const;
/** (Optional) The default width for glyphs in the CIDFont (see "Glyph Met-
* rics in CIDFonts" on page 340). Default value: 1000.
**/

View File

@ -20,3 +20,4 @@ long SkPdfCIDSystemInfoDictionary::Supplement() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;}
virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -48,3 +48,4 @@ SkPdfStream* SkPdfCMapDictionary::getUseCMapAsStream() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -20,3 +20,4 @@ double SkPdfCalgrayColorSpaceDictionary::Gamma() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -27,3 +27,4 @@ SkPdfArray* SkPdfCalrgbColorSpaceDictionary::Matrix() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -160,3 +160,4 @@ SkPdfArray* SkPdfCatalogDictionary::OutputIntents() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -55,3 +55,4 @@ long SkPdfCcittfaxdecodeFilterDictionary::DamagedRowsBeforeError() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -6,3 +6,4 @@ std::string SkPdfCheckboxFieldDictionary::Opt() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -20,3 +20,4 @@ SkPdfArray* SkPdfChoiceFieldDictionary::I() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -6,3 +6,4 @@ SkPdfStream* SkPdfComponentsWithMetadataDictionary::Metadata() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -6,3 +6,4 @@ long SkPdfDctdecodeFilterDictionary::ColorTransform() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -6,3 +6,4 @@ SkPdfDictionary* SkPdfDeviceNColorSpaceDictionary::Colorants() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -1 +1,2 @@
#include "SkPdfDictionary_autogen.h"

View File

@ -34,3 +34,4 @@ SkPdfDictionary* SkPdfDocumentCatalogActionsDictionary::DP() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -62,3 +62,4 @@ std::string SkPdfDocumentInformationDictionary::Trapped() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -34,3 +34,4 @@ std::string SkPdfEmbeddedFileParameterDictionary::CheckSum() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -20,3 +20,4 @@ SkPdfDictionary* SkPdfEmbeddedFileStreamDictionary::Params() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -34,3 +34,4 @@ SkPdfStream* SkPdfEmbeddedFontStreamDictionary::Metadata() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -20,3 +20,4 @@ SkPdfArray* SkPdfEncodingDictionary::Differences() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -6,3 +6,4 @@ long SkPdfEncryptedEmbeddedFileStreamDictionary::EncryptionRevision() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -20,3 +20,4 @@ long SkPdfEncryptionCommonDictionary::Length() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -22,6 +22,7 @@ enum SkPdfObjectType {
kBoxColorInformationDictionary_SkPdfObjectType,
kBoxStyleDictionary_SkPdfObjectType,
kCIDFontDescriptorDictionary_SkPdfObjectType,
kCIDFontDictionary_SkPdfObjectType,
kCIDSystemInfoDictionary_SkPdfObjectType,
kCMapDictionary_SkPdfObjectType,
kCalgrayColorSpaceDictionary_SkPdfObjectType,
@ -55,7 +56,6 @@ enum SkPdfObjectType {
kFileTrailerDictionary_SkPdfObjectType,
kFontDescriptorDictionary_SkPdfObjectType,
kFontDictionary_SkPdfObjectType,
kCIDFontDictionary_SkPdfObjectType,
kType0FontDictionary_SkPdfObjectType,
kType1FontDictionary_SkPdfObjectType,
kMultiMasterFontDictionary_SkPdfObjectType,

View File

@ -13,3 +13,4 @@ SkPdfDictionary* SkPdfFDFCatalogDictionary::FDF() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -76,3 +76,4 @@ SkPdfDictionary* SkPdfFDFDictionary::JavaScript() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -104,3 +104,4 @@ SkPdfDictionary* SkPdfFDFFieldDictionary::AA() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -6,3 +6,4 @@ long SkPdfFDFFileAnnotationDictionary::Page() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -13,3 +13,4 @@ SkPdfFileSpec SkPdfFDFNamedPageReferenceDictionary::F() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfFileSpec();
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -13,3 +13,4 @@ SkPdfDictionary* SkPdfFDFPageDictionary::Info() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -20,3 +20,4 @@ bool SkPdfFDFTemplateDictionary::Rename() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return false;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -6,3 +6,4 @@ SkPdfDictionary* SkPdfFDFTrailerDictionary::Root() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -69,3 +69,4 @@ SkPdfDictionary* SkPdfFieldDictionary::AA() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}

View File

@ -64,6 +64,9 @@ private:
virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
@ -160,9 +163,6 @@ private:
virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}

View File

@ -27,3 +27,4 @@ std::string SkPdfFileAttachmentAnnotationDictionary::Name() const {
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}

Some files were not shown because too many files have changed in this diff Show More