diff options
author | rbpotter <rbpotter@chromium.org> | 2017-07-11 10:04:29 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-11 17:22:12 +0000 |
commit | e8468c43cb3b14f4440456d19cb047150509949d (patch) | |
tree | c11fc22bfe770abf5321fceb32644dca5c34faa1 /public/fpdfview.h | |
parent | 00c3cfdbae074a379cab4edad0e4fa75d6127797 (diff) | |
download | pdfium-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 'public/fpdfview.h')
-rw-r--r-- | public/fpdfview.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/public/fpdfview.h b/public/fpdfview.h index 1ff0aeb267..df46e9700b 100644 --- a/public/fpdfview.h +++ b/public/fpdfview.h @@ -245,17 +245,18 @@ FPDF_SetTypefaceAccessibleFunc(PDFiumEnsureTypefaceCharactersAccessible func); DLLEXPORT void STDCALL FPDF_SetPrintTextWithGDI(FPDF_BOOL use_gdi); #endif // PDFIUM_PRINT_TEXT_WITH_GDI -// Function: FPDF_SetPrintPostscriptLevel -// Set postscript printing level when printing on Windows. +// Function: FPDF_SetPrintMode +// Set printing mode 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. +// mode - FPDF_PRINTMODE_EMF to output EMF (default) +// FPDF_PRINTMODE_TEXTONLY to output text only (for charstream +// devices) +// FPDF_PRINTMODE_POSTSCRIPT2 to output level 2 postscript +// FPDF_PRINTMODE_POSTSCRIPT3 to output level 3 postscript // Return value: -// True if successful, false if unsucessful (typically invalid input). -DLLEXPORT FPDF_BOOL STDCALL FPDF_SetPrintPostscriptLevel(int postscript_level); +// True if successful, false if unsuccessful (typically invalid input). +DLLEXPORT FPDF_BOOL STDCALL FPDF_SetPrintMode(int mode); #endif // defined(_WIN32) // Function: FPDF_LoadDocument |