mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-02-16 11:50:54 +01:00
Better errors on failed squeeze
This commit is contained in:
parent
953cf0acc5
commit
678a25191d
7
cpdf.ml
7
cpdf.ml
@ -249,7 +249,12 @@ let squeeze pdf =
|
|||||||
Pdfcodec.flate_level := 9;
|
Pdfcodec.flate_level := 9;
|
||||||
ignore (recompress_pdf pdf)
|
ignore (recompress_pdf pdf)
|
||||||
with
|
with
|
||||||
e -> raise (Pdf.PDFError "Squeeze failed. No output written")
|
e ->
|
||||||
|
raise
|
||||||
|
(Pdf.PDFError
|
||||||
|
(Printf.sprintf
|
||||||
|
"Squeeze failed. No output written.\n Proximate error was:\n %s"
|
||||||
|
(Printexc.to_string e)))
|
||||||
|
|
||||||
type encoding =
|
type encoding =
|
||||||
| Raw
|
| Raw
|
||||||
|
Loading…
x
Reference in New Issue
Block a user