From c1ecf3a1edad1e643729d59c81dccac76568a743 Mon Sep 17 00:00:00 2001 From: vididvidid Date: Thu, 2 Oct 2025 04:42:29 +0000 Subject: [PATCH] used pdfioContentTextShow instead of snprintf --- testpdfio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testpdfio.c b/testpdfio.c index e3bceb3..b04842d 100644 --- a/testpdfio.c +++ b/testpdfio.c @@ -146,7 +146,6 @@ create_pdfa_test_file( char text[256]; // Text to write to page bool error = false; // Error flag - snprintf(text, sizeof(text), "This is a compliance test for %s.", pdfa_version); testBegin("Create %s file '%s'", pdfa_version, filename); @@ -171,7 +170,7 @@ create_pdfa_test_file( pdfioContentSetTextFont(st, "F1", 12.0); pdfioContentTextBegin(st); pdfioContentTextMoveTo(st, 72.0, 720.0); - pdfioContentTextShow(st, false, text); + pdfioContentTextShowf(st, false, "This is a compliance test for %s.", pdfa_version); pdfioContentTextEnd(st); pdfioStreamClose(st);