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