mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-05-22 21:44:28 +02:00
CamlPDF changes
This commit is contained in:
parent
ba987b9daa
commit
26ebce4989
1
Changes
1
Changes
@ -15,6 +15,7 @@ Fixes:
|
||||
|
||||
o Harden auto-compression against malformed streams
|
||||
o Add backup JPEG dimensions method in Cpdfimage
|
||||
o Correct object stream behaviour when splitting
|
||||
|
||||
* = Supported by a grant from NLnet
|
||||
|
||||
|
@ -1494,7 +1494,7 @@ let check_unicode tu n =
|
||||
let matterhorn_31_028 _ _ pdf =
|
||||
iter
|
||||
(fun i ->
|
||||
let tu = Pdftext.parse_tounicode pdf (Pdf.lookup_obj pdf i) in
|
||||
let tu = (Pdfcmap.parse_tounicode pdf (Pdf.lookup_obj pdf i)).map in
|
||||
if check_unicode tu 0 then merror ())
|
||||
(all_tounicodes pdf)
|
||||
|
||||
@ -1503,7 +1503,7 @@ let matterhorn_31_028 _ _ pdf =
|
||||
let matterhorn_31_029 _ _ pdf =
|
||||
iter
|
||||
(fun i ->
|
||||
let tu = Pdftext.parse_tounicode pdf (Pdf.lookup_obj pdf i) in
|
||||
let tu = (Pdfcmap.parse_tounicode pdf (Pdf.lookup_obj pdf i)).map in
|
||||
if check_unicode tu 0xFEFF || check_unicode tu 0xFFFE then merror ())
|
||||
(all_tounicodes pdf)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user