[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1718-gd45d594

[email protected] (Ken Sharp) Thu, 10 Oct 2019 08:29:56 +0000 (UTC)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, master has been updated
       via  d45d594ea5660976a21106ea864eb879801827b1 (commit)
      from  34774ab185f17186b26949f5fee118dee9114d3a (commit)

----------------------------------------------------------------------
commit d45d594ea5660976a21106ea864eb879801827b1
Author: Ken Sharp <[email protected]>
Date:   Thu Oct 10 09:29:48 2019 +0100

    ps2write - restore missing %%PageTrailer comment
    
    Bug #701659 "Missing %%PageTrailer commen"
    
    An oversight in commit 96c381cce28c27eac182549441a6c5025b0dcdd6
    caused the comment to be omitted.

diff --git a/devices/vector/gdevpdf.c b/devices/vector/gdevpdf.c
index 1071ffa..d918d60 100644
--- a/devices/vector/gdevpdf.c
+++ b/devices/vector/gdevpdf.c
@@ -2930,6 +2930,7 @@ pdf_close(gx_device * dev)
                     code = cos_write(pres->object, pdev, pres->object->id);
                     stream_puts(pdev->strm, "endobj\n");
                     pres->object->written = true;
+                    stream_puts(pdev->strm, "%%PageTrailer\n");
                 }
         }
         code1 = pdf_free_resource_objects(pdev, resourcePage);


Summary of changes:
 devices/vector/gdevpdf.c | 1 +
 1 file changed, 1 insertion(+)