--- a/src/eric7/QScintilla/Exporters/ExporterPDF.py Tue Dec 06 16:57:54 2022 +0100 +++ b/src/eric7/QScintilla/Exporters/ExporterPDF.py Tue Dec 06 17:35:41 2022 +0100 @@ -284,7 +284,7 @@ # end the file with the trailer (PDF1.4Ref(p67)) buffer = ( - "trailer\n<< /Size {0:d} /Root {1:d} 0 R\n>>\nstartxref\n{2:d}\n" "%%EOF\n" + "trailer\n<< /Size {0:d} /Root {1:d} 0 R\n>>\nstartxref\n{2:d}\n%%EOF\n" ).format(self.oT.index, catalogRef, xref) self.oT.write(buffer)