From 0194feca6f6cffebde879164a41f531303dd09c0 Mon Sep 17 00:00:00 2001 From: vididvidid Date: Wed, 1 Oct 2025 04:52:16 +0000 Subject: [PATCH] moved the comment outside of nested if for standard header --- pdfio-file.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pdfio-file.c b/pdfio-file.c index 57f34b7..9a4389d 100644 --- a/pdfio-file.c +++ b/pdfio-file.c @@ -1633,17 +1633,14 @@ create_common( pdf->crop_box.y2 = 11.0f * 72.0f; } - // Write a standard PDF header... + // Write the PDF header (special case for PCLm, otherwise standard/PDF-A header) if (!strncmp(version, "PCLm-", 5)) { - // PCLm has a special header format if (!_pdfioFilePrintf(pdf, "%%PDF-1.4\n%%%s\n", version)) goto error; } else { - // For all other PDFs, including all PDF/A versions, write the header - // with the binary comment. if (!_pdfioFilePrintf(pdf, "%%PDF-%s\n%%\342\343\317\323\n", pdf->version)) goto error; }