From 9ed6bd7150a9333cb28d149c98e3d316c3ededdf Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 25 Apr 2018 21:10:05 +0000 Subject: Add PostScript PASSTHROUGH options to FPDF_SetPrintMode(). The existing PostScript modes write data into EMF comments. This satisfies Chromium's use case, but other embedders want to write data out via ExtEscape() in PASSTHROUGH mode. BUG=pdfium:1068 Change-Id: I998035e99fbb84b16dcd244b750b476cecc3bd22 Reviewed-on: https://pdfium-review.googlesource.com/31299 Commit-Queue: Lei Zhang Reviewed-by: dsinclair Reviewed-by: Rebekah Potter --- public/fpdf_edit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'public/fpdf_edit.h') diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index 023d955d00..74c2700733 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -66,6 +66,8 @@ #define FPDF_PRINTMODE_TEXTONLY 1 #define FPDF_PRINTMODE_POSTSCRIPT2 2 #define FPDF_PRINTMODE_POSTSCRIPT3 3 +#define FPDF_PRINTMODE_POSTSCRIPT2_PASSTHROUGH 4 +#define FPDF_PRINTMODE_POSTSCRIPT3_PASSTHROUGH 5 typedef struct FPDF_IMAGEOBJ_METADATA { // The image width in pixels. -- cgit v1.2.3