From ba57f3868fd9539d008032976da44b152332627d Mon Sep 17 00:00:00 2001 From: Ken Sharp Date: Wed, 3 May 2023 15:59:23 +0100 Subject: GhostPDF - fix reported embedding status of fonts When using -dPDFINFO to get information about PDF files one of the pieces of information is the embedding status of any fonts used on each page. Unfortunately I messed up when coding and any non-error status for a font reported it as being embedded. Fix that here. --- pdf/pdf_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf/pdf_check.c b/pdf/pdf_check.c index 71e59819c..3aff2a09a 100644 --- a/pdf/pdf_check.c +++ b/pdf/pdf_check.c @@ -903,7 +903,7 @@ static int pdfi_check_Font(pdf_context *ctx, pdf_dict *font, pdf_dict *page_dict } } - if (known >= 0) + if (known > 0) code = pdfi_dict_put(ctx, font_info_dict, "Embedded", PDF_TRUE_OBJ); else code = pdfi_dict_put(ctx, font_info_dict, "Embedded", PDF_FALSE_OBJ); -- cgit v1.2.1