OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PDF_PDF_H_ | 5 #ifndef PDF_PDF_H_ |
6 #define PDF_PDF_H_ | 6 #define PDF_PDF_H_ |
7 | 7 |
8 #include "ppapi/c/ppb.h" | 8 #include "ppapi/c/ppb.h" |
9 #include "ppapi/cpp/module.h" | 9 #include "ppapi/cpp/module.h" |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 bool fit_to_bounds, | 75 bool fit_to_bounds, |
76 bool stretch_to_bounds, | 76 bool stretch_to_bounds, |
77 bool keep_aspect_ratio, | 77 bool keep_aspect_ratio, |
78 bool center_in_bounds, | 78 bool center_in_bounds, |
79 bool autorotate); | 79 bool autorotate); |
80 | 80 |
81 void SetPDFEnsureTypefaceCharactersAccessible( | 81 void SetPDFEnsureTypefaceCharactersAccessible( |
82 PDFEnsureTypefaceCharactersAccessible func); | 82 PDFEnsureTypefaceCharactersAccessible func); |
83 | 83 |
84 void SetPDFUseGDIPrinting(bool enable); | 84 void SetPDFUseGDIPrinting(bool enable); |
| 85 |
| 86 void SetPDFPostscriptPrintingLevel(int postscript_level); |
85 #endif // defined(OS_WIN) | 87 #endif // defined(OS_WIN) |
86 | 88 |
87 // |page_count| and |max_page_width| are optional and can be NULL. | 89 // |page_count| and |max_page_width| are optional and can be NULL. |
88 // Returns false if the document is not valid. | 90 // Returns false if the document is not valid. |
89 bool GetPDFDocInfo(const void* pdf_buffer, | 91 bool GetPDFDocInfo(const void* pdf_buffer, |
90 int buffer_size, | 92 int buffer_size, |
91 int* page_count, | 93 int* page_count, |
92 double* max_page_width); | 94 double* max_page_width); |
93 | 95 |
94 // Gets the dimensions of a specific page in a document. | 96 // Gets the dimensions of a specific page in a document. |
(...skipping 28 matching lines...) Expand all Loading... |
123 int page_number, | 125 int page_number, |
124 void* bitmap_buffer, | 126 void* bitmap_buffer, |
125 int bitmap_width, | 127 int bitmap_width, |
126 int bitmap_height, | 128 int bitmap_height, |
127 int dpi, | 129 int dpi, |
128 bool autorotate); | 130 bool autorotate); |
129 | 131 |
130 } // namespace chrome_pdf | 132 } // namespace chrome_pdf |
131 | 133 |
132 #endif // PDF_PDF_H_ | 134 #endif // PDF_PDF_H_ |
OLD | NEW |