summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devices/vector/gdevpdfb.h4
-rw-r--r--devices/vector/gdevpdfp.c2
-rw-r--r--devices/vector/gdevpdfx.h4
3 files changed, 8 insertions, 2 deletions
diff --git a/devices/vector/gdevpdfb.h b/devices/vector/gdevpdfb.h
index b6439f538..75ade7707 100644
--- a/devices/vector/gdevpdfb.h
+++ b/devices/vector/gdevpdfb.h
@@ -240,7 +240,9 @@ const gx_device_pdf PDF_DEVICE_IDENT =
0, /* initial_pattern_state */
false, /* OmitInfoDate */
false, /* OmitXMP */
- false /* OmitID */
+ false, /* OmitID */
+ false, /* ModifiesPageSize */
+ false /* ModifiesPageOrder */
};
#else
diff --git a/devices/vector/gdevpdfp.c b/devices/vector/gdevpdfp.c
index 690a9e133..c08f7baef 100644
--- a/devices/vector/gdevpdfp.c
+++ b/devices/vector/gdevpdfp.c
@@ -132,6 +132,8 @@ static const gs_param_item_t pdf_param_items[] = {
pi("OmitInfoDate", gs_param_type_bool, OmitInfoDate),
pi("OmitID", gs_param_type_bool, OmitID),
pi("OmitXMP", gs_param_type_bool, OmitXMP),
+ pi("ModifiesPageSize", gs_param_type_bool, ModifiesPageSize),
+ pi("ModifiesPageOrder", gs_param_type_bool, ModifiesPageOrder),
#undef pi
gs_param_item_end
};
diff --git a/devices/vector/gdevpdfx.h b/devices/vector/gdevpdfx.h
index f494fb8de..b41c9648b 100644
--- a/devices/vector/gdevpdfx.h
+++ b/devices/vector/gdevpdfx.h
@@ -954,9 +954,11 @@ struct gx_device_pdf_s {
gs_glyph OCR_glyph; /* Passes the current glyph code from text processing to the image processing code when rendering glyph bitmaps for OCR */
ocr_glyph_t *ocr_glyphs; /* Records bitmaps and other data from text processing when doing OCR */
gs_gstate **initial_pattern_states;
- bool OmitInfoDate; /* If true, do not emit CreationDate and ModDate in the Infor dictionary and XMP Metadata (must not be true for PDF/X support) */
+ bool OmitInfoDate; /* If true, do not emit CreationDate and ModDate in the Info dictionary and XMP Metadata (must not be true for PDF/X support) */
bool OmitXMP; /* If true, do not emit an XMP /Metadata block and do not reference it from the Catalog (must not be true for PDF/A output) */
bool OmitID; /* If true, do not emit a /ID array in the trailer dicionary (must not be true for encrypted files or PDF 2.0) */
+ bool ModifiesPageSize; /* If true, the new PDF interpreter will not preserve *Box values (the media size has been modified, they will be incorrect) */
+ bool ModifiesPageOrder; /* If true, the new PDF interpreter will not preserve Outlines or Dests, because they will refer to the wrong page number */
};
#define is_in_page(pdev)\