| Index: pdf/pdfium/pdfium_engine.cc
|
| diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
|
| index f26eb3801a9ed729e01ed6d4cc6b95858e0924b1..118a5ee51a62ded472babb0b2fb6887821147f47 100644
|
| --- a/pdf/pdfium/pdfium_engine.cc
|
| +++ b/pdf/pdfium/pdfium_engine.cc
|
| @@ -53,6 +53,7 @@
|
| #include "third_party/pdfium/public/fpdf_searchex.h"
|
| #include "third_party/pdfium/public/fpdf_sysfontinfo.h"
|
| #include "third_party/pdfium/public/fpdf_transformpage.h"
|
| +#include "third_party/pdfium/public/fpdfview.h"
|
| #include "ui/events/keycodes/keyboard_codes.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| #include "v8/include/v8.h"
|
| @@ -3876,6 +3877,16 @@ bool PDFiumEngineExports::RenderPDFPageToDC(const void* pdf_buffer,
|
| FPDF_CloseDocument(doc);
|
| return true;
|
| }
|
| +
|
| +void PDFiumEngineExports::SetPDFEnsureTypefaceCharactersAccessible(
|
| + PDFEnsureTypefaceCharactersAccessible func) {
|
| + FPDF_SetTypefaceAccessibleFunc(
|
| + reinterpret_cast<PDFiumEnsureTypefaceCharactersAccessible>(func));
|
| +}
|
| +
|
| +void PDFiumEngineExports::SetPDFUseGDIPrinting(bool enable) {
|
| + FPDF_SetPrintTextWithGDI(enable);
|
| +}
|
| #endif // defined(OS_WIN)
|
|
|
| bool PDFiumEngineExports::RenderPDFPageToBitmap(
|
|
|