diff options
Diffstat (limited to 'pdf/pdf_text.c')
-rw-r--r-- | pdf/pdf_text.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pdf/pdf_text.c b/pdf/pdf_text.c index 208327923..ea27c285a 100644 --- a/pdf/pdf_text.c +++ b/pdf/pdf_text.c @@ -108,7 +108,9 @@ int pdfi_ET(pdf_context *ctx) if (ctx->text.BlockDepth == 0) { pdfi_set_warning(ctx, 0, NULL, W_PDF_ETNOTEXTBLOCK, "pdfi_ET", NULL); - return_error(gs_error_syntaxerror); + if (ctx->args.pdfstoponwarning) + return_error(gs_error_syntaxerror); + return 0; } ctx->text.BlockDepth--; |