diff options
-rw-r--r-- | devices/vector/gdevpdfm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devices/vector/gdevpdfm.c b/devices/vector/gdevpdfm.c index b12fe117f..bdd3c1b91 100644 --- a/devices/vector/gdevpdfm.c +++ b/devices/vector/gdevpdfm.c | |||
@@ -1970,9 +1970,6 @@ pdfmark_DOCINFO(gx_device_pdf * pdev, gs_param_string * pairs, uint count, | |||
1970 | int code = 0, i; | 1970 | int code = 0, i; |
1971 | gs_memory_t *mem = pdev->pdf_memory; | 1971 | gs_memory_t *mem = pdev->pdf_memory; |
1972 | 1972 | ||
1973 | if (pdev->CompatibilityLevel >= 2.0) | ||
1974 | return 0; | ||
1975 | |||
1976 | if (count & 1) | 1973 | if (count & 1) |
1977 | return_error(gs_error_rangecheck); | 1974 | return_error(gs_error_rangecheck); |
1978 | for (i = 0; code >= 0 && i < count; i += 2) { | 1975 | for (i = 0; code >= 0 && i < count; i += 2) { |
@@ -1984,6 +1981,11 @@ pdfmark_DOCINFO(gx_device_pdf * pdev, gs_param_string * pairs, uint count, | |||
1984 | 1981 | ||
1985 | vsize = 0x0badf00d; /* Quiet compiler. */ | 1982 | vsize = 0x0badf00d; /* Quiet compiler. */ |
1986 | 1983 | ||
1984 | if (pdev->CompatibilityLevel >= 2.0) { | ||
1985 | if (!pdf_key_eq(pairs + i, "/ModDate") && !pdf_key_eq(pairs + i, "/CreationDate")) | ||
1986 | continue; | ||
1987 | } | ||
1988 | |||
1987 | if (pdev->PDFA !=0) { | 1989 | if (pdev->PDFA !=0) { |
1988 | const gs_param_string *p = pairs + i + 1; | 1990 | const gs_param_string *p = pairs + i + 1; |
1989 | if (p->size > 9 && memcmp(p->data, "(\\376\\377", 9) == 0) { | 1991 | if (p->size > 9 && memcmp(p->data, "(\\376\\377", 9) == 0) { |