summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-12-23 10:14:27 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-12-23 10:14:27 +0000
commitd54e3baa09d525345ccc0bcc59994e27f18dc227 (patch)
tree21f2b312d7adccd2094c0409cb6d68bea36a5ec0
parenta3dd82450c40e0beb84a05e8425b0e551ff9653e (diff)
luaTeX,pdfTeX: Always precede "endstream" by NL for PDF/A-1b compliance
git-svn-id: svn://tug.org/texlive/trunk@32472 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/luatexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/luatexdir/pdf/pdfgen.w3
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/pdftexdir/pdftex.web3
4 files changed, 12 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index f41902ae1eb..d63f8574bb2 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-23 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * pdf/pdfgen.w (pdf_end_stream): Always write "\nendstream" for
+ PDF/A-1b compliance.
+
2013-12-19 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* lua/liolibext.c: Large files in lua.
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
index 21864e158b0..50730d3b56f 100644
--- a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
+++ b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
@@ -712,8 +712,7 @@ void pdf_end_stream(PDF pdf)
assert(pdf->buf == os->buf[os->curbuf]);
pdf->stream_deflate = false;
pdf->stream_writing = false;
- if (pdf->last_byte != '\n')
- pdf_out(pdf, '\n'); /* doesn't really belong to the stream */
+ pdf_out(pdf, '\n'); /* doesn't really belong to the stream */
pdf_puts(pdf, "endstream");
/* write stream /Length */
if (pdf->seek_write_length && pdf->draftmode == 0) {
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index 1fef160b267..ca6c11eba7a 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-23 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * pdftex.web (pdf_end_stream): Always write "\nendstream" for
+ PDF/A-1b compliance.
+
2013-12-17 Peter Breitenlohner <peb@mppmu.mpg.de>
* pdftex.web: Always write "\n" after "obj" and before "endobj".
diff --git a/Build/source/texk/web2c/pdftexdir/pdftex.web b/Build/source/texk/web2c/pdftexdir/pdftex.web
index a95d05664ed..2a08c0781b5 100644
--- a/Build/source/texk/web2c/pdftexdir/pdftex.web
+++ b/Build/source/texk/web2c/pdftexdir/pdftex.web
@@ -15403,8 +15403,7 @@ begin
if pdf_seek_write_length then
write_stream_length(pdf_stream_length, pdf_stream_length_offset);
pdf_seek_write_length := false;
- if pdf_last_byte <> pdf_new_line_char then
- pdf_out(pdf_new_line_char);
+ pdf_out(pdf_new_line_char);
pdf_print_ln("endstream");
pdf_end_obj;
end;