OLD | NEW |
1 #ifndef __DEFINED__SkPdfUtils | 1 #ifndef __DEFINED__SkPdfUtils |
2 #define __DEFINED__SkPdfUtils | 2 #define __DEFINED__SkPdfUtils |
3 | 3 |
4 #include "podofo.h" | |
5 using namespace PoDoFo; | |
6 | |
7 #include "SkPdfBasics.h" | 4 #include "SkPdfBasics.h" |
8 | 5 |
9 const PdfObject* resolveReferenceObject(const PdfMemDocument* pdfDoc, | |
10 const PdfObject* obj, | |
11 bool resolveOneElementArrays = false); | |
12 | |
13 bool LongFromDictionary(const PdfMemDocument* pdfDoc, | |
14 const PdfDictionary& dict, | |
15 const char* key, | |
16 const char* abr, | |
17 long* data); | |
18 | |
19 bool DoubleFromDictionary(const PdfMemDocument* pdfDoc, | |
20 const PdfDictionary& dict, | |
21 const char* key, | |
22 const char* abr, | |
23 double* data); | |
24 | |
25 bool BoolFromDictionary(const PdfMemDocument* pdfDoc, | |
26 const PdfDictionary& dict, | |
27 const char* key, | |
28 const char* abr, | |
29 bool* data); | |
30 | |
31 bool NameFromDictionary(const PdfMemDocument* pdfDoc, | |
32 const PdfDictionary& dict, | |
33 const char* key, | |
34 const char* abr, | |
35 std::string* data); | |
36 | |
37 bool StringFromDictionary(const PdfMemDocument* pdfDoc, | |
38 const PdfDictionary& dict, | |
39 const char* key, | |
40 const char* abr, | |
41 std::string* data); | |
42 /* | |
43 class SkPdfDictionary; | |
44 bool DictionaryFromDictionary(const PdfMemDocument* pdfDoc, | |
45 const PdfDictionary& dict, | |
46 const char* key, | |
47 const char* abr, | |
48 SkPdfDictionary** data); | |
49 */ | |
50 | |
51 bool skpdfmap(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdf
Object** out); | |
52 | |
53 | |
54 class SkPdfObject; | |
55 bool ObjectFromDictionary(const PdfMemDocument* pdfDoc, | |
56 const PdfDictionary& dict, | |
57 const char* key, | |
58 const char* abr, | |
59 SkPdfObject** data); | |
60 | |
61 | |
62 struct SkPdfFileSpec {}; | |
63 class SkPdfArray; | 6 class SkPdfArray; |
64 class SkPdfStream; | |
65 struct SkPdfDate {}; | |
66 struct SkPdfTree {}; | |
67 struct SkPdfFunction {}; | |
68 | |
69 bool ArrayFromDictionary(const PdfMemDocument* pdfDoc, | |
70 const PdfDictionary& dict, | |
71 const char* key, | |
72 const char* abr, | |
73 SkPdfArray** data); | |
74 | |
75 bool SkMatrixFromDictionary(const PdfMemDocument* pdfDoc, | |
76 const PdfDictionary& dict, | |
77 const char* key, | |
78 const char* abr, | |
79 SkMatrix** data); | |
80 | |
81 bool FileSpecFromDictionary(const PdfMemDocument* pdfDoc, | |
82 const PdfDictionary& dict, | |
83 const char* key, | |
84 const char* abr, | |
85 SkPdfFileSpec* data); | |
86 | |
87 | |
88 bool StreamFromDictionary(const PdfMemDocument* pdfDoc, | |
89 const PdfDictionary& dict, | |
90 const char* key, | |
91 const char* abr, | |
92 SkPdfStream** data); | |
93 | |
94 bool TreeFromDictionary(const PdfMemDocument* pdfDoc, | |
95 const PdfDictionary& dict, | |
96 const char* key, | |
97 const char* abr, | |
98 SkPdfTree** data); | |
99 | |
100 bool DateFromDictionary(const PdfMemDocument* pdfDoc, | |
101 const PdfDictionary& dict, | |
102 const char* key, | |
103 const char* abr, | |
104 SkPdfDate* data); | |
105 | |
106 bool SkRectFromDictionary(const PdfMemDocument* pdfDoc, | |
107 const PdfDictionary& dict, | |
108 const char* key, | |
109 const char* abr, | |
110 SkRect** data); | |
111 | |
112 bool FunctionFromDictionary(const PdfMemDocument* pdfDoc, | |
113 const PdfDictionary& dict, | |
114 const char* key, | |
115 const char* abr, | |
116 SkPdfFunction* data); | |
117 | 7 |
118 SkMatrix SkMatrixFromPdfArray(SkPdfArray* pdfArray); | 8 SkMatrix SkMatrixFromPdfArray(SkPdfArray* pdfArray); |
119 | 9 |
120 PdfResult doType3Char(PdfContext* pdfContext, SkCanvas* canvas, SkPdfObject* sko
bj, SkRect bBox, SkMatrix matrix, double textSize); | 10 PdfResult doType3Char(PdfContext* pdfContext, SkCanvas* canvas, SkPdfObject* sko
bj, SkRect bBox, SkMatrix matrix, double textSize); |
121 | 11 |
122 #include "SkPdfPodofoMapper_autogen.h" | |
123 | |
124 #endif // __DEFINED__SkPdfUtils | 12 #endif // __DEFINED__SkPdfUtils |
OLD | NEW |