From 38a01b9ceeddbbc73fb1167d30c5aa6994328949 Mon Sep 17 00:00:00 2001 From: rbpotter Date: Thu, 13 Jul 2017 11:58:01 -0700 Subject: Restore FPDF_SetPrintingPostscriptLevel API Need to restore this API so builds without the chromium text driver CL do not fail. BUG=chromium:734850 Change-Id: I320e482a54bf1224817efee8b50113169353f9be Reviewed-on: https://pdfium-review.googlesource.com/7830 Reviewed-by: dsinclair Commit-Queue: Rebekah Potter --- fpdfsdk/fpdfview.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index 905d3683a0..2e52ad6487 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -456,6 +456,10 @@ DLLEXPORT void STDCALL FPDF_SetPrintTextWithGDI(FPDF_BOOL use_gdi) { } #endif // PDFIUM_PRINT_TEXT_WITH_GDI +DLLEXPORT FPDF_BOOL STDCALL FPDF_SetPrintPostscriptLevel(int postscript_level) { + return postscript_level != 1 && FPDF_SetPrintMode(postscript_level); +} + DLLEXPORT FPDF_BOOL STDCALL FPDF_SetPrintMode(int mode) { if (mode < FPDF_PRINTMODE_EMF || mode > FPDF_PRINTMODE_POSTSCRIPT3) return FALSE; -- cgit v1.2.3