mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-10-08 03:34:51 +02:00
used pdfioContentTextShow instead of snprintf
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user