Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: experimental/PdfViewer/SkPdfUtils.h

Issue 17748002: Basic support for Type3 Fonts in Pdf + various refactorings (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #ifndef __DEFINED__SkPdfUtils
2 #define __DEFINED__SkPdfUtils
3
4 #include "podofo.h"
5 using namespace PoDoFo;
6
7 #include "SkPdfBasics.h"
8
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 template <typename T>
51 bool DictionaryFromDictionary2(const PdfMemDocument* pdfDoc,
52 const PdfDictionary& dict,
53 const char* key,
54 const char* abr,
55 T** data);
56
57 class SkPdfObject;
58 bool ObjectFromDictionary(const PdfMemDocument* pdfDoc,
59 const PdfDictionary& dict,
60 const char* key,
61 const char* abr,
62 SkPdfObject** data);
63
64
65 struct SkPdfFileSpec {};
66 class SkPdfArray;
67 class SkPdfStream;
68 struct SkPdfDate {};
69 struct SkPdfTree {};
70 struct SkPdfFunction {};
71
72 bool ArrayFromDictionary(const PdfMemDocument* pdfDoc,
73 const PdfDictionary& dict,
74 const char* key,
75 const char* abr,
76 SkPdfArray** data);
77
78 bool SkMatrixFromDictionary(const PdfMemDocument* pdfDoc,
79 const PdfDictionary& dict,
80 const char* key,
81 const char* abr,
82 SkMatrix** data);
83
84 bool FileSpecFromDictionary(const PdfMemDocument* pdfDoc,
85 const PdfDictionary& dict,
86 const char* key,
87 const char* abr,
88 SkPdfFileSpec* data);
89
90
91 bool StreamFromDictionary(const PdfMemDocument* pdfDoc,
92 const PdfDictionary& dict,
93 const char* key,
94 const char* abr,
95 SkPdfStream** data);
96
97 bool TreeFromDictionary(const PdfMemDocument* pdfDoc,
98 const PdfDictionary& dict,
99 const char* key,
100 const char* abr,
101 SkPdfTree** data);
102
103 bool DateFromDictionary(const PdfMemDocument* pdfDoc,
104 const PdfDictionary& dict,
105 const char* key,
106 const char* abr,
107 SkPdfDate* data);
108
109 bool SkRectFromDictionary(const PdfMemDocument* pdfDoc,
110 const PdfDictionary& dict,
111 const char* key,
112 const char* abr,
113 SkRect** data);
114
115 bool FunctionFromDictionary(const PdfMemDocument* pdfDoc,
116 const PdfDictionary& dict,
117 const char* key,
118 const char* abr,
119 SkPdfFunction* data);
120
121 bool skpdfmap(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdf Object** out);
122 SkMatrix SkMatrixFromPdfArray(SkPdfArray* pdfArray);
123
124 PdfResult doType3Char(PdfContext* pdfContext, SkCanvas* canvas, SkPdfObject* sko bj, SkRect bBox, SkMatrix matrix, double textSize);
125
126 #endif // __DEFINED__SkPdfUtils
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfURLAliasDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698