mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-10-08 11:45:00 +02:00
moved the comment outside of nested if for standard header
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user