summaryrefslogtreecommitdiff
path: root/samples/pdfium_test.cc
diff options
context:
space:
mode:
authorrbpotter <rbpotter@chromium.org>2017-07-11 10:04:29 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-07-11 17:22:12 +0000
commite8468c43cb3b14f4440456d19cb047150509949d (patch)
treec11fc22bfe770abf5321fceb32644dca5c34faa1 /samples/pdfium_test.cc
parent00c3cfdbae074a379cab4edad0e4fa75d6127797 (diff)
downloadpdfium-e8468c43cb3b14f4440456d19cb047150509949d.tar.xz
Add Windows generic / text only printer driver support.
BUG=chromium:734850 Change-Id: Icc0947e2e99e77a36d8963fcf0b6d3deea161d3e Reviewed-on: https://pdfium-review.googlesource.com/7194 Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r--samples/pdfium_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 5eccf22554..85cc0d3526 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -1137,9 +1137,9 @@ void RenderPdf(const std::string& name,
#if _WIN32
if (options.output_format == OUTPUT_PS2)
- FPDF_SetPrintPostscriptLevel(2);
+ FPDF_SetPrintMode(2);
else if (options.output_format == OUTPUT_PS3)
- FPDF_SetPrintPostscriptLevel(3);
+ FPDF_SetPrintMode(3);
#endif
int page_count = FPDF_GetPageCount(doc.get());