Mirror EOF fix (Issue #136)

This commit is contained in:
Michael R Sweet
2025-09-13 11:34:41 -04:00
parent 2b6f04a5a1
commit 0dd2e6fd37
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ Changes in PDFio
v1.5.5 - YYYY-MM-DD
-------------------
- Fixed EOF comment written to the PDF (Issue #136)
- Fixed TTF cmap underflow error.
- Fixed some Clang warnings.

View File

@@ -2767,7 +2767,7 @@ write_trailer(pdfio_file_t *pdf) // I - PDF file
}
}
if (!_pdfioFilePrintf(pdf, "\nstartxref\n%lu\n%%EOF\n", (unsigned long)xref_offset))
if (!_pdfioFilePrintf(pdf, "\nstartxref\n%lu\n%%%%EOF\n", (unsigned long)xref_offset))
{
_pdfioFileError(pdf, "Unable to write xref offset.");
ret = false;