1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

do not abort when attempting to flatten a non-CID font

This commit is contained in:
Lu Wang 2015-05-03 19:22:00 +08:00
parent cb825f3691
commit 4da3a78821

View File

@ -284,7 +284,10 @@ void ffw_reencode_raw2(char ** mapping, int mapping_len, int force)
void ffw_cidflatten(void) void ffw_cidflatten(void)
{ {
if(!cur_fv->sf->cidmaster) if(!cur_fv->sf->cidmaster)
err("Cannot flatten a non-CID font"); {
fprintf(stderr, "Cannot flatten a non-CID font\n");
return;
}
SFFlatten(cur_fv->sf->cidmaster); SFFlatten(cur_fv->sf->cidmaster);
} }