Skip to content

Commit 14884d7

Browse files
author
sjw
committed
Need to improve the resolution speed is thrown directly after an error.
1 parent 4ebe961 commit 14884d7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

source/pdf/pdf-interpret.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,15 @@ pdf_process_stream(hd_context *ctx, pdf_processor *proc, pdf_csi *csi, hd_stream
315315
hd_rethrow(ctx);
316316
else if (caught == HD_ERROR_SYNTAX)
317317
{
318-
if (++syntax_errors >= MAX_SYNTAX_ERRORS)
318+
/*if (++syntax_errors >= MAX_SYNTAX_ERRORS)
319319
{
320320
hd_warn(ctx, "too many syntax errors; ignoring rest of page");
321321
tok = PDF_TOK_EOF;
322-
}
322+
}*/
323+
/*
324+
* Need to improve the resolution speed is thrown directly after an error.
325+
*/
326+
hd_rethrow(ctx);
323327
}
324328
else
325329
{

0 commit comments

Comments
 (0)