diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2023-05-03 15:59:23 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2023-05-03 15:59:23 +0100 |
commit | ba57f3868fd9539d008032976da44b152332627d (patch) | |
tree | a5f7b8d677d2ed49977c57976ae5b9e4b7142ec7 | |
parent | 1e2dc072cd7c71620e5e2810566f3996945b02e5 (diff) | |
download | ghostpdl-ba57f3868fd9539d008032976da44b152332627d.tar.gz |
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.
-rw-r--r-- | pdf/pdf_check.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |