| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfUtils | 1 #ifndef __DEFINED__SkPdfUtils |
| 2 #define __DEFINED__SkPdfUtils | 2 #define __DEFINED__SkPdfUtils |
| 3 | 3 |
| 4 #include "podofo.h" | 4 #include "podofo.h" |
| 5 using namespace PoDoFo; | 5 using namespace PoDoFo; |
| 6 | 6 |
| 7 #include "SkPdfBasics.h" | 7 #include "SkPdfBasics.h" |
| 8 | 8 |
| 9 const PdfObject* resolveReferenceObject(const PdfMemDocument* pdfDoc, | 9 const PdfObject* resolveReferenceObject(const PdfMemDocument* pdfDoc, |
| 10 const PdfObject* obj, | 10 const PdfObject* obj, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const PdfDictionary& dict, | 32 const PdfDictionary& dict, |
| 33 const char* key, | 33 const char* key, |
| 34 const char* abr, | 34 const char* abr, |
| 35 std::string* data); | 35 std::string* data); |
| 36 | 36 |
| 37 bool StringFromDictionary(const PdfMemDocument* pdfDoc, | 37 bool StringFromDictionary(const PdfMemDocument* pdfDoc, |
| 38 const PdfDictionary& dict, | 38 const PdfDictionary& dict, |
| 39 const char* key, | 39 const char* key, |
| 40 const char* abr, | 40 const char* abr, |
| 41 std::string* data); | 41 std::string* data); |
| 42 | 42 /* |
| 43 class SkPdfDictionary; | 43 class SkPdfDictionary; |
| 44 bool DictionaryFromDictionary(const PdfMemDocument* pdfDoc, | 44 bool DictionaryFromDictionary(const PdfMemDocument* pdfDoc, |
| 45 const PdfDictionary& dict, | 45 const PdfDictionary& dict, |
| 46 const char* key, | 46 const char* key, |
| 47 const char* abr, | 47 const char* abr, |
| 48 SkPdfDictionary** data); | 48 SkPdfDictionary** data); |
| 49 */ |
| 49 | 50 |
| 50 template <typename T> | 51 bool skpdfmap(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdf
Object** out); |
| 51 bool DictionaryFromDictionary2(const PdfMemDocument* pdfDoc, | 52 |
| 52 const PdfDictionary& dict, | |
| 53 const char* key, | |
| 54 const char* abr, | |
| 55 T** data); | |
| 56 | 53 |
| 57 class SkPdfObject; | 54 class SkPdfObject; |
| 58 bool ObjectFromDictionary(const PdfMemDocument* pdfDoc, | 55 bool ObjectFromDictionary(const PdfMemDocument* pdfDoc, |
| 59 const PdfDictionary& dict, | 56 const PdfDictionary& dict, |
| 60 const char* key, | 57 const char* key, |
| 61 const char* abr, | 58 const char* abr, |
| 62 SkPdfObject** data); | 59 SkPdfObject** data); |
| 63 | 60 |
| 64 | 61 |
| 65 struct SkPdfFileSpec {}; | 62 struct SkPdfFileSpec {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 const char* key, | 108 const char* key, |
| 112 const char* abr, | 109 const char* abr, |
| 113 SkRect** data); | 110 SkRect** data); |
| 114 | 111 |
| 115 bool FunctionFromDictionary(const PdfMemDocument* pdfDoc, | 112 bool FunctionFromDictionary(const PdfMemDocument* pdfDoc, |
| 116 const PdfDictionary& dict, | 113 const PdfDictionary& dict, |
| 117 const char* key, | 114 const char* key, |
| 118 const char* abr, | 115 const char* abr, |
| 119 SkPdfFunction* data); | 116 SkPdfFunction* data); |
| 120 | 117 |
| 121 bool skpdfmap(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdf
Object** out); | |
| 122 SkMatrix SkMatrixFromPdfArray(SkPdfArray* pdfArray); | 118 SkMatrix SkMatrixFromPdfArray(SkPdfArray* pdfArray); |
| 123 | 119 |
| 124 PdfResult doType3Char(PdfContext* pdfContext, SkCanvas* canvas, SkPdfObject* sko
bj, SkRect bBox, SkMatrix matrix, double textSize); | 120 PdfResult doType3Char(PdfContext* pdfContext, SkCanvas* canvas, SkPdfObject* sko
bj, SkRect bBox, SkMatrix matrix, double textSize); |
| 125 | 121 |
| 122 #include "SkPdfPodofoMapper_autogen.h" |
| 123 |
| 126 #endif // __DEFINED__SkPdfUtils | 124 #endif // __DEFINED__SkPdfUtils |
| OLD | NEW |