This commit is contained in:
Zdenko Podobný 2018-09-26 09:28:22 +02:00
parent e1245f5c54
commit 5dfce7471c

View File

@ -709,7 +709,7 @@ bool TessPDFRenderer::imageToPDFObj(Pix *pix,
return false;
*pdf_object = nullptr;
*pdf_object_size = 0;
if (!filename)
if (!filename && !pix)
return false;
L_Compressed_Data *cid = nullptr;