load font manually, for now Type0

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9734 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
edisonn@google.com 2013-06-21 21:03:15 +00:00
parent 45f746f521
commit ff27844d15
176 changed files with 1278 additions and 1175 deletions

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -528,11 +528,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Image", "", NULL));
}
SkPdfStream Image() const {
SkPdfStream ret;
SkPdfStream* Image() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Image", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional) A flag indicating whether this alternate image is the default ver-

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -626,11 +626,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", NULL));
}
SkPdfStream I() const {
SkPdfStream ret;
SkPdfStream* I() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; pushbutton fields only; must be an indirect reference) A form XObject
@ -641,11 +641,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", NULL));
}
SkPdfStream RI() const {
SkPdfStream ret;
SkPdfStream* RI() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; pushbutton fields only; must be an indirect reference) A form XObject
@ -656,11 +656,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "", NULL));
}
SkPdfStream IX() const {
SkPdfStream ret;
SkPdfStream* IX() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; pushbutton fields only) An icon fit dictionary (see Table 8.73 on page

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -534,11 +534,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getNAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getNAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
bool isNADictionary() const {
@ -567,11 +567,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getRAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getRAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
bool isRADictionary() const {
@ -600,11 +600,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getDAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getDAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
bool isDADictionary() const {

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -170,20 +170,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -536,6 +536,9 @@ private:
virtual SkPdfReference* asReference() {return NULL;}
virtual const SkPdfReference* asReference() const {return NULL;}
virtual SkPdfStream* asStream() {return NULL;}
virtual const SkPdfStream* asStream() const {return NULL;}
virtual SkPdfString* asString() {return NULL;}
virtual const SkPdfString* asString() const {return NULL;}
@ -544,8 +547,7 @@ private:
public:
const int size() const {return fPodofoObj->GetArray().GetSize();}
const SkPdfObject operator[](int i) const {return SkPdfObject(fPodofoDoc, &fPodofoObj->GetArray()[i]);}
SkPdfObject operator[](int i) {return SkPdfObject(fPodofoDoc, &fPodofoObj->GetArray()[i]);}
SkPdfObject* operator[](int i) const {return new SkPdfObject(fPodofoDoc, &fPodofoObj->GetArray()[i]);}
private:
public:
SkPdfArray(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -170,20 +170,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -536,6 +536,9 @@ private:
virtual SkPdfReference* asReference() {return NULL;}
virtual const SkPdfReference* asReference() const {return NULL;}
virtual SkPdfStream* asStream() {return NULL;}
virtual const SkPdfStream* asStream() const {return NULL;}
virtual SkPdfString* asString() {return NULL;}
virtual const SkPdfString* asString() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -582,11 +582,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSet", "", NULL));
}
SkPdfStream CIDSet() const {
SkPdfStream ret;
SkPdfStream* CIDSet() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSet", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -15,20 +15,20 @@ public:
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return this;}
private:
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
public:
private:
@ -194,11 +194,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getCIDToGIDMapAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getCIDToGIDMapAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDToGIDMap", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
bool isCIDToGIDMapAName() const {

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -644,11 +644,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getUseCMapAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getUseCMapAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UseCMap", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -817,11 +817,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL));
}
SkPdfStream Metadata() const {
SkPdfStream ret;
SkPdfStream* Metadata() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; PDF 1.3) The document's structure tree root dictionary (see

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -528,11 +528,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL));
}
SkPdfStream Metadata() const {
SkPdfStream ret;
SkPdfStream* Metadata() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -35,6 +35,9 @@ private:
virtual SkPdfReference* asReference() {return NULL;}
virtual const SkPdfReference* asReference() const {return NULL;}
virtual SkPdfStream* asStream() {return NULL;}
virtual const SkPdfStream* asStream() const {return NULL;}
virtual SkPdfString* asString() {return NULL;}
virtual const SkPdfString* asString() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -591,11 +591,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL));
}
SkPdfStream Metadata() const {
SkPdfStream ret;
SkPdfStream* Metadata() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -56,12 +56,13 @@ enum SkPdfObjectType {
kFontDescriptorDictionary_SkPdfObjectType,
kFontDictionary_SkPdfObjectType,
kCIDFontDictionary_SkPdfObjectType,
kTrueTypeFontDictionary_SkPdfObjectType,
kType0FontDictionary_SkPdfObjectType,
kType3FontDictionary_SkPdfObjectType,
kType0FontDictionary__End_SkPdfObjectType,
kType1FontDictionary_SkPdfObjectType,
kMultiMasterFontDictionary_SkPdfObjectType,
kTrueTypeFontDictionary_SkPdfObjectType,
kType1FontDictionary__End_SkPdfObjectType,
kType3FontDictionary_SkPdfObjectType,
kFontDictionary__End_SkPdfObjectType,
kFormFieldActionsDictionary_SkPdfObjectType,
kFreeTextAnnotationDictionary_SkPdfObjectType,
@ -184,6 +185,7 @@ enum SkPdfObjectType {
kName_SkPdfObjectType,
kNull_SkPdfObjectType,
kReference_SkPdfObjectType,
kStream_SkPdfObjectType,
kString_SkPdfObjectType,
kHexString_SkPdfObjectType,
kString__End_SkPdfObjectType,
@ -201,6 +203,7 @@ class SkPdfArray;
class SkPdfString;
class SkPdfHexString;
class SkPdfDictionary;
class SkPdfStream;
class SkPdfXObjectDictionary;
class SkPdfFontDictionary;
class SkPdfTrueTypeFontDictionary;

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -657,11 +657,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differences", "", NULL));
}
SkPdfStream Differences() const {
SkPdfStream ret;
SkPdfStream* Differences() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differences", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; PDF 1.4) The name of a browser frame in which the un-

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -162,20 +162,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -745,11 +745,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile", "", NULL));
}
SkPdfStream FontFile() const {
SkPdfStream ret;
SkPdfStream* FontFile() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; PDF 1.1) A stream containing a TrueType font program (see Sec-
@ -759,11 +759,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile2", "", NULL));
}
SkPdfStream FontFile2() const {
SkPdfStream ret;
SkPdfStream* FontFile2() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile2", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; PDF 1.2) A stream containing a font program other than Type 1 or
@ -777,11 +777,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile3", "", NULL));
}
SkPdfStream FontFile3() const {
SkPdfStream ret;
SkPdfStream* FontFile3() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile3", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; meaningful only in Type 1 fonts; PDF 1.1) A string listing the char-

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;}
virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -906,11 +906,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getHTAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getHTAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
bool isHTAName() const {

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -78,6 +78,7 @@
#include "SkPdfFDFCatalogDictionary_autogen.h"
#include "SkPdfALinkAnnotationDictionary_autogen.h"
#include "SkPdfAppearanceCharacteristicsDictionary_autogen.h"
#include "SkPdfStream_autogen.h"
#include "SkPdfTransitionDictionary_autogen.h"
#include "SkPdfApplicationDataDictionary_autogen.h"
#include "SkPdfFileAttachmentAnnotationDictionary_autogen.h"

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -602,11 +602,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL));
}
SkPdfStream Metadata() const {
SkPdfStream ret;
SkPdfStream* Metadata() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -187,11 +187,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getMaskAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getMaskAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
bool isMaskAArray() const {
@ -222,11 +222,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", NULL));
}
SkPdfStream SMask() const {
SkPdfStream ret;
SkPdfStream* SMask() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional) An array of numbers describing how to map image samples
@ -346,11 +346,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL));
}
SkPdfStream Metadata() const {
SkPdfStream ret;
SkPdfStream* Metadata() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -173,20 +173,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -533,6 +533,9 @@ private:
virtual SkPdfReference* asReference() {return NULL;}
virtual const SkPdfReference* asReference() const {return NULL;}
virtual SkPdfStream* asStream() {return NULL;}
virtual const SkPdfStream* asStream() const {return NULL;}
virtual SkPdfString* asString() {return NULL;}
virtual const SkPdfString* asString() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -564,11 +564,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getJSAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getJSAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JS", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -548,11 +548,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getBeforeAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getBeforeAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Before", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional) A string or stream containing a JavaScript script to be executed
@ -581,11 +581,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getAfterAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getAfterAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "After", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional) An array defining additional JavaScript scripts to be added to

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -530,11 +530,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2Globals", "", NULL));
}
SkPdfStream JBIG2Globals() const {
SkPdfStream ret;
SkPdfStream* JBIG2Globals() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2Globals", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -554,11 +554,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFork", "", NULL));
}
SkPdfStream ResFork() const {
SkPdfStream ret;
SkPdfStream* ResFork() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFork", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -563,11 +563,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Stm", "", NULL));
}
SkPdfStream Stm() const {
SkPdfStream ret;
SkPdfStream* Stm() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Stm", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
/** (Optional; must be an indirect reference) The PDF object owning the stream

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -595,11 +595,11 @@ public:
return ret->podofo()->HasStream();
}
SkPdfStream getPosterAsStream() const {
SkPdfStream ret = SkPdfStream();
SkPdfStream* getPosterAsStream() const {
SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Poster", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -14,6 +14,9 @@ public:
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return this;}
private:
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
public:
private:
public:

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -173,20 +173,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -536,6 +536,9 @@ private:
virtual SkPdfReference* asReference() {return NULL;}
virtual const SkPdfReference* asReference() const {return NULL;}
virtual SkPdfStream* asStream() {return NULL;}
virtual const SkPdfStream* asStream() const {return NULL;}
virtual SkPdfString* asString() {return NULL;}
virtual const SkPdfString* asString() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -173,20 +173,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -536,6 +536,9 @@ private:
virtual SkPdfReference* asReference() {return NULL;}
virtual const SkPdfReference* asReference() const {return NULL;}
virtual SkPdfStream* asStream() {return NULL;}
virtual const SkPdfStream* asStream() const {return NULL;}
virtual SkPdfString* asString() {return NULL;}
virtual const SkPdfString* asString() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -171,20 +171,20 @@ public:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -537,6 +537,9 @@ public:
virtual SkPdfReference* asReference() {return NULL;}
virtual const SkPdfReference* asReference() const {return NULL;}
virtual SkPdfStream* asStream() {return NULL;}
virtual const SkPdfStream* asStream() const {return NULL;}
virtual SkPdfString* asString() {return NULL;}
virtual const SkPdfString* asString() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -640,11 +640,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DestOutputProfile", "", NULL));
}
SkPdfStream DestOutputProfile() const {
SkPdfStream ret;
SkPdfStream* DestOutputProfile() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DestOutputProfile", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

View File

@ -165,20 +165,20 @@ private:
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
@ -558,11 +558,11 @@ public:
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Level1", "", NULL));
}
SkPdfStream Level1() const {
SkPdfStream ret;
SkPdfStream* Level1() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Level1", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfStream();
return NULL;
}
};

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