mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-07-15 21:40:11 +02:00
Save work on resolving PDF loading issues with random PDFs using different encryption methods and line endings.
This commit is contained in:
@ -245,6 +245,11 @@ pdfioDictGetBinary(pdfio_dict_t *dict, // I - Dictionary
|
||||
*length = value->value.binary.datalen;
|
||||
return (value->value.binary.data);
|
||||
}
|
||||
else if (value && value->type == PDFIO_VALTYPE_STRING)
|
||||
{
|
||||
*length = strlen(value->value.string);
|
||||
return ((unsigned char *)value->value.string);
|
||||
}
|
||||
else
|
||||
{
|
||||
*length = 0;
|
||||
|
Reference in New Issue
Block a user