OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ENGINE_H_ | 5 #ifndef PDF_PDF_ENGINE_H_ |
6 #define PDF_PDF_ENGINE_H_ | 6 #define PDF_PDF_ENGINE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 virtual bool RenderPDFPageToDC(const void* pdf_buffer, | 334 virtual bool RenderPDFPageToDC(const void* pdf_buffer, |
335 int buffer_size, | 335 int buffer_size, |
336 int page_number, | 336 int page_number, |
337 const RenderingSettings& settings, | 337 const RenderingSettings& settings, |
338 HDC dc) = 0; | 338 HDC dc) = 0; |
339 | 339 |
340 virtual void SetPDFEnsureTypefaceCharactersAccessible( | 340 virtual void SetPDFEnsureTypefaceCharactersAccessible( |
341 PDFEnsureTypefaceCharactersAccessible func) = 0; | 341 PDFEnsureTypefaceCharactersAccessible func) = 0; |
342 | 342 |
343 virtual void SetPDFUseGDIPrinting(bool enable) = 0; | 343 virtual void SetPDFUseGDIPrinting(bool enable) = 0; |
| 344 |
| 345 virtual void SetPDFPostscriptPrintingLevel(int postscript_level) = 0; |
344 #endif // defined(OS_WIN) | 346 #endif // defined(OS_WIN) |
345 | 347 |
346 // See the definition of RenderPDFPageToBitmap in pdf.cc for details. | 348 // See the definition of RenderPDFPageToBitmap in pdf.cc for details. |
347 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, | 349 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, |
348 int pdf_buffer_size, | 350 int pdf_buffer_size, |
349 int page_number, | 351 int page_number, |
350 const RenderingSettings& settings, | 352 const RenderingSettings& settings, |
351 void* bitmap_buffer) = 0; | 353 void* bitmap_buffer) = 0; |
352 | 354 |
353 virtual bool GetPDFDocInfo(const void* pdf_buffer, | 355 virtual bool GetPDFDocInfo(const void* pdf_buffer, |
354 int buffer_size, | 356 int buffer_size, |
355 int* page_count, | 357 int* page_count, |
356 double* max_page_width) = 0; | 358 double* max_page_width) = 0; |
357 | 359 |
358 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 360 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
359 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 361 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
360 int pdf_buffer_size, | 362 int pdf_buffer_size, |
361 int page_number, | 363 int page_number, |
362 double* width, | 364 double* width, |
363 double* height) = 0; | 365 double* height) = 0; |
364 }; | 366 }; |
365 | 367 |
366 } // namespace chrome_pdf | 368 } // namespace chrome_pdf |
367 | 369 |
368 #endif // PDF_PDF_ENGINE_H_ | 370 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |