From 566b4ba30453fbd4cdfe173e6cceb743bb9a2ae8 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Sun, 9 Jul 2023 13:14:43 +0100 Subject: [PATCH] Ignore unknown cmap tables --- cpdftruetype.ml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cpdftruetype.ml b/cpdftruetype.ml index 742e474..54cbac5 100644 --- a/cpdftruetype.ml +++ b/cpdftruetype.ml @@ -2,12 +2,13 @@ open Pdfutil open Pdfio -(* FIXME Make sure -add-text and -table-of-contents call subset once only *) +(* FIXME Make sure -add-text calls subset once only *) (* FIXME Make it work with -draw *) +(* FIXME Check proper use of fontpacks and maximal sharing in -toc -typeset -add-text -draw *) (* FIXME Proper widths for .notdef, and warn on .notdef being produced *) (* FIXME Add suport for composite glyphs *) (* FIXME Make sure -embed-std14 works for all commands *) -(* FIXME Base on bytes not bits *) +(* FIXME Base on bytes not bits - all uses of mk_b *) let dbg = ref false let _ = @@ -160,7 +161,9 @@ let read_encoding_table fmt length version b = t | 4 -> read_format_4_encoding_table b; | 6 -> read_format_6_encoding_table b; - | n -> raise (Pdf.PDFError "read_encoding_table: format %i not known\n") + | n -> + Pdfe.log (Printf.sprintf "read_encoding_table: format %i not known\n" n); + null_hash () let read_loca_table indexToLocFormat numGlyphs b = match indexToLocFormat with