mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-12-25 12:58:21 +01:00
Fix image name property - forgot to call pdfioStringCreate* APIs for formatted
string...
This commit is contained in:
parent
72e55b5bd1
commit
63cdb13b1b
@ -334,10 +334,7 @@ new_page(docdata_t *dd) // I - Document data
|
||||
pdfioPageDictAddFont(page_dict, docfont_names[fontface], dd->fonts[fontface]);
|
||||
|
||||
for (i = 0; i < dd->num_images; i ++)
|
||||
{
|
||||
snprintf(temp, sizeof(temp), "I%u", (unsigned)i);
|
||||
pdfioPageDictAddImage(page_dict, temp, dd->images[i].obj);
|
||||
}
|
||||
pdfioPageDictAddImage(page_dict, pdfioStringCreatef(dd->pdf, "I%u", (unsigned)i), dd->images[i].obj);
|
||||
|
||||
dd->st = pdfioFileCreatePage(dd->pdf, page_dict);
|
||||
dd->color = DOCCOLOR_BLACK;
|
||||
|
Loading…
Reference in New Issue
Block a user