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

Side by Side Diff: pdf/pdf_engine.h

Issue 2970473002: Add generic text printing (Closed)
Patch Set: Change enum names Created 3 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
« no previous file with comments | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_assert_matching_enums.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 virtual bool RenderPDFPageToDC(const void* pdf_buffer, 340 virtual bool RenderPDFPageToDC(const void* pdf_buffer,
341 int buffer_size, 341 int buffer_size,
342 int page_number, 342 int page_number,
343 const RenderingSettings& settings, 343 const RenderingSettings& settings,
344 HDC dc) = 0; 344 HDC dc) = 0;
345 345
346 virtual void SetPDFEnsureTypefaceCharactersAccessible( 346 virtual void SetPDFEnsureTypefaceCharactersAccessible(
347 PDFEnsureTypefaceCharactersAccessible func) = 0; 347 PDFEnsureTypefaceCharactersAccessible func) = 0;
348 348
349 virtual void SetPDFUseGDIPrinting(bool enable) = 0; 349 virtual void SetPDFUseGDIPrinting(bool enable) = 0;
350 350 virtual void SetPDFUsePrintMode(int mode) = 0;
351 virtual void SetPDFPostscriptPrintingLevel(int postscript_level) = 0;
352 #endif // defined(OS_WIN) 351 #endif // defined(OS_WIN)
353 352
354 // See the definition of RenderPDFPageToBitmap in pdf.cc for details. 353 // See the definition of RenderPDFPageToBitmap in pdf.cc for details.
355 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, 354 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer,
356 int pdf_buffer_size, 355 int pdf_buffer_size,
357 int page_number, 356 int page_number,
358 const RenderingSettings& settings, 357 const RenderingSettings& settings,
359 void* bitmap_buffer) = 0; 358 void* bitmap_buffer) = 0;
360 359
361 virtual bool GetPDFDocInfo(const void* pdf_buffer, 360 virtual bool GetPDFDocInfo(const void* pdf_buffer,
362 int buffer_size, 361 int buffer_size,
363 int* page_count, 362 int* page_count,
364 double* max_page_width) = 0; 363 double* max_page_width) = 0;
365 364
366 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 365 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
367 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 366 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
368 int pdf_buffer_size, 367 int pdf_buffer_size,
369 int page_number, 368 int page_number,
370 double* width, 369 double* width,
371 double* height) = 0; 370 double* height) = 0;
372 }; 371 };
373 372
374 } // namespace chrome_pdf 373 } // namespace chrome_pdf
375 374
376 #endif // PDF_PDF_ENGINE_H_ 375 #endif // PDF_PDF_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_assert_matching_enums.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698