summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-02 16:16:05 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-02 16:16:05 +0000
commit3998067026e9087d73f56395266426f3ad7aa660 (patch)
tree8eb0358b96e9d0ac45a317d0ccbe762cf5bb3c9f
parent8f4f0ede809a9bae283538f5c6930c5d7ba13585 (diff)
downloadpdfium-3998067026e9087d73f56395266426f3ad7aa660.tar.xz
Remove FPDF_SetPrintPostscriptLevel().chromium/3387
This experimental API has been superceded by FPDF_SetPrintMode(). Change-Id: I41f8efbb2f40edea60df55c36f7ee3743ac20839 Reviewed-on: https://pdfium-review.googlesource.com/29510 Reviewed-by: Rebekah Potter <rbpotter@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
-rw-r--r--fpdfsdk/fpdf_view.cpp5
-rw-r--r--fpdfsdk/fpdf_view_c_api_test.c1
-rw-r--r--public/fpdfview.h13
3 files changed, 0 insertions, 19 deletions
diff --git a/fpdfsdk/fpdf_view.cpp b/fpdfsdk/fpdf_view.cpp
index a0877f38b5..655aed8141 100644
--- a/fpdfsdk/fpdf_view.cpp
+++ b/fpdfsdk/fpdf_view.cpp
@@ -209,11 +209,6 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_SetPrintTextWithGDI(FPDF_BOOL use_gdi) {
}
#endif // PDFIUM_PRINT_TEXT_WITH_GDI
-FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
-FPDF_SetPrintPostscriptLevel(int postscript_level) {
- return postscript_level != 1 && FPDF_SetPrintMode(postscript_level);
-}
-
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_SetPrintMode(int mode) {
if (mode < FPDF_PRINTMODE_EMF || mode > FPDF_PRINTMODE_POSTSCRIPT3)
return FALSE;
diff --git a/fpdfsdk/fpdf_view_c_api_test.c b/fpdfsdk/fpdf_view_c_api_test.c
index df7ade8539..d00f353db5 100644
--- a/fpdfsdk/fpdf_view_c_api_test.c
+++ b/fpdfsdk/fpdf_view_c_api_test.c
@@ -325,7 +325,6 @@ int CheckPDFiumCApi() {
CHK(FPDF_SetTypefaceAccessibleFunc);
CHK(FPDF_SetPrintTextWithGDI);
#endif
- CHK(FPDF_SetPrintPostscriptLevel);
CHK(FPDF_SetPrintMode);
#endif
CHK(FPDF_LoadDocument);
diff --git a/public/fpdfview.h b/public/fpdfview.h
index de7fbe4663..0660eb1a3b 100644
--- a/public/fpdfview.h
+++ b/public/fpdfview.h
@@ -268,19 +268,6 @@ FPDF_SetTypefaceAccessibleFunc(PDFiumEnsureTypefaceCharactersAccessible func);
FPDF_EXPORT void FPDF_CALLCONV FPDF_SetPrintTextWithGDI(FPDF_BOOL use_gdi);
#endif // PDFIUM_PRINT_TEXT_WITH_GDI
-// Function: FPDF_SetPrintPostscriptLevel
-// Set postscript printing level when printing on Windows.
-// Experimental API.
-// Parameters:
-// postscript_level- 0 to disable postscript printing,
-// 2 to print with postscript level 2,
-// 3 to print with postscript level 3.
-// All other values are invalid.
-// Return value:
-// True if successful, false if unsuccessful (typically invalid input).
-FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
-FPDF_SetPrintPostscriptLevel(int postscript_level);
-
// Function: FPDF_SetPrintMode
// Set printing mode when printing on Windows.
// Experimental API.