mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-04-20 07:26:49 +02:00
Fix location of OutputIntents (catalog, not info dict)
This commit is contained in:
parent
ec64af8b20
commit
ba7371b2e1
@ -1537,7 +1537,7 @@ pdfioFileAddOutputIntent(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the OutputIntents array...
|
// Get the OutputIntents array...
|
||||||
if ((output_intents = pdfioDictGetArray(pdfioObjGetDict(pdf->info_obj), "OutputIntents")) != NULL)
|
if ((output_intents = pdfioDictGetArray(pdfioFileGetCatalog(pdf), "OutputIntents")) != NULL)
|
||||||
{
|
{
|
||||||
// See if we already have an intent for the given subtype...
|
// See if we already have an intent for the given subtype...
|
||||||
size_t i, // Looping var
|
size_t i, // Looping var
|
||||||
@ -1561,7 +1561,7 @@ pdfioFileAddOutputIntent(
|
|||||||
if ((output_intents = pdfioArrayCreate(pdf)) == NULL)
|
if ((output_intents = pdfioArrayCreate(pdf)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pdfioDictSetArray(pdfioObjGetDict(pdf->info_obj), "OutputIntents", output_intents);
|
pdfioDictSetArray(pdfioFileGetCatalog(pdf), "OutputIntents", output_intents);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create an intent dictionary...
|
// Create an intent dictionary...
|
||||||
|
@ -125,7 +125,7 @@ pdfioFileClose(pdfio_file_t *pdf) // I - PDF file
|
|||||||
ret = false;
|
ret = false;
|
||||||
|
|
||||||
// Add default OutputIntent for PDF/A CMYK printing...
|
// Add default OutputIntent for PDF/A CMYK printing...
|
||||||
pdfioFileAddOutputIntent(pdf, /*subtype*/"GTS_PDFA1", /*condition*/"CMYK", /*cond_id*/"CGATS001", /*reg_name*/NULL, /*info*/"CMYK Printing", /*profile*/pdf->cgats001_obj);
|
pdfioFileAddOutputIntent(pdf, /*subtype*/"GTS_PDFA1", /*condition*/"CMYK", /*cond_id*/"CGATS001", /*reg_name*/NULL, /*info*/"CMYK Printing", /*profile*/NULL);
|
||||||
|
|
||||||
// Close and write out the last bits...
|
// Close and write out the last bits...
|
||||||
if (pdfioObjClose(pdf->info_obj) && write_pages(pdf) && pdfioObjClose(pdf->root_obj) && write_trailer(pdf))
|
if (pdfioObjClose(pdf->info_obj) && write_pages(pdf) && pdfioObjClose(pdf->root_obj) && write_trailer(pdf))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user