| 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 | 85 void SetPDFUseTextOnlyPrinting(bool enable); |
| 86 void SetPDFPostscriptPrintingLevel(int postscript_level); | 86 void SetPDFPostscriptPrintingLevel(int postscript_level); |
| 87 #endif // defined(OS_WIN) | 87 #endif // defined(OS_WIN) |
| 88 | 88 |
| 89 // |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. |
| 90 // Returns false if the document is not valid. | 90 // Returns false if the document is not valid. |
| 91 bool GetPDFDocInfo(const void* pdf_buffer, | 91 bool GetPDFDocInfo(const void* pdf_buffer, |
| 92 int buffer_size, | 92 int buffer_size, |
| 93 int* page_count, | 93 int* page_count, |
| 94 double* max_page_width); | 94 double* max_page_width); |
| 95 | 95 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 125 int page_number, | 125 int page_number, |
| 126 void* bitmap_buffer, | 126 void* bitmap_buffer, |
| 127 int bitmap_width, | 127 int bitmap_width, |
| 128 int bitmap_height, | 128 int bitmap_height, |
| 129 int dpi, | 129 int dpi, |
| 130 bool autorotate); | 130 bool autorotate); |
| 131 | 131 |
| 132 } // namespace chrome_pdf | 132 } // namespace chrome_pdf |
| 133 | 133 |
| 134 #endif // PDF_PDF_H_ | 134 #endif // PDF_PDF_H_ |
| OLD | NEW |