Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: pdf/pdf.h

Issue 2970473002: Add generic text printing (Closed)
Patch Set: Change enum names Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/printing_handler.cc ('k') | pdf/pdf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdf.h
diff --git a/pdf/pdf.h b/pdf/pdf.h
index d18489d10535029903797e1985110ceb4e0b7634..6f69bdb3d66d45d7b6b3a6d9a89307822a7e4e31 100644
--- a/pdf/pdf.h
+++ b/pdf/pdf.h
@@ -36,6 +36,14 @@ void PPP_ShutdownModule();
const void* PPP_GetInterface(const char* interface_name);
#if defined(OS_WIN)
+// Printing modes - type to convert PDF to for printing
+enum PrintingMode {
+ kEmf = 0,
+ kTextOnly = 1,
+ kPostScript2 = 2,
+ kPostScript3 = 3,
+};
+
// |pdf_buffer| is the buffer that contains the entire PDF document to be
// rendered.
// |buffer_size| is the size of |pdf_buffer| in bytes.
@@ -83,7 +91,7 @@ void SetPDFEnsureTypefaceCharactersAccessible(
void SetPDFUseGDIPrinting(bool enable);
-void SetPDFPostscriptPrintingLevel(int postscript_level);
+void SetPDFUsePrintMode(int mode);
#endif // defined(OS_WIN)
// |page_count| and |max_page_width| are optional and can be NULL.
« no previous file with comments | « chrome/utility/printing_handler.cc ('k') | pdf/pdf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698