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_PDFIUM_PDFIUM_ENGINE_H_ | 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_ |
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ | 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, | 607 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, |
608 int pdf_buffer_size, | 608 int pdf_buffer_size, |
609 int page_number, | 609 int page_number, |
610 const RenderingSettings& settings, | 610 const RenderingSettings& settings, |
611 void* bitmap_buffer); | 611 void* bitmap_buffer); |
612 | 612 |
613 virtual bool GetPDFDocInfo(const void* pdf_buffer, | 613 virtual bool GetPDFDocInfo(const void* pdf_buffer, |
614 int buffer_size, | 614 int buffer_size, |
615 int* page_count, | 615 int* page_count, |
616 double* max_page_width); | 616 double* max_page_width); |
| 617 |
| 618 // If false returned, the query failed; if true, it succeeded. |
| 619 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
| 620 int buffer_size, int index, |
| 621 double* width, double* height); |
617 }; | 622 }; |
618 | 623 |
619 } // namespace chrome_pdf | 624 } // namespace chrome_pdf |
620 | 625 |
621 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 626 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |