Fix output of special characters in name values (Issue #106)

Fix output of special characters in string values (Issue #107)
Fi output of large integers in dictionaries (Issue #108)

Bump version to 1.5.1.
This commit is contained in:
Michael R Sweet
2025-03-24 18:33:24 -04:00
parent 458f366d78
commit cfe91b4ea2
13 changed files with 229 additions and 96 deletions

View File

@@ -476,7 +476,7 @@ pdfioContentDrawImage(
double width, // I - Width of image
double height) // I - Height of image
{
return (pdfioStreamPrintf(st, "q %.6f 0 0 %.6f %.6f %.6f cm/%s Do Q\n", width, height, x, y, name));
return (pdfioStreamPrintf(st, "q %.6f 0 0 %.6f %.6f %.6f cm%N Do Q\n", width, height, x, y, name));
}
@@ -811,7 +811,7 @@ pdfioContentSetFillColorSpace(
pdfio_stream_t *st, // I - Stream
const char *name) // I - Color space name
{
return (pdfioStreamPrintf(st, "/%s cs\n", name));
return (pdfioStreamPrintf(st, "%N cs\n", name));
}
@@ -961,7 +961,7 @@ pdfioContentSetStrokeColorSpace(
pdfio_stream_t *st, // I - Stream
const char *name) // I - Color space name
{
return (pdfioStreamPrintf(st, "/%s CS\n", name));
return (pdfioStreamPrintf(st, "%N CS\n", name));
}
@@ -988,7 +988,7 @@ pdfioContentSetTextFont(
const char *name, // I - Font name
double size) // I - Font size
{
return (pdfioStreamPrintf(st, "/%s %.6f Tf\n", name, size));
return (pdfioStreamPrintf(st, "%N %.6f Tf\n", name, size));
}