Remove FPDF_SetPrintPostscriptLevel().

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>
diff --git a/fpdfsdk/fpdf_view.cpp b/fpdfsdk/fpdf_view.cpp
index a0877f3..655aed8 100644
--- a/fpdfsdk/fpdf_view.cpp
+++ b/fpdfsdk/fpdf_view.cpp
@@ -209,11 +209,6 @@
 }
 #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 df7ade8..d00f353 100644
--- a/fpdfsdk/fpdf_view_c_api_test.c
+++ b/fpdfsdk/fpdf_view_c_api_test.c
@@ -325,7 +325,6 @@
     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 de7fbe4..0660eb1 100644
--- a/public/fpdfview.h
+++ b/public/fpdfview.h
@@ -268,19 +268,6 @@
 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.