more
This commit is contained in:
parent
65aec369c2
commit
e383cd7a03
|
@ -433,9 +433,7 @@ let of_input i =
|
||||||
try
|
try
|
||||||
match i.Pdfio.caml_channel with
|
match i.Pdfio.caml_channel with
|
||||||
| Some ch ->
|
| Some ch ->
|
||||||
let r = pdf_of_json (J.from_channel ch) in
|
pdf_of_json (J.from_channel ch)
|
||||||
Pdfwrite.pdf_to_file r "debug.pdf";
|
|
||||||
r
|
|
||||||
| None ->
|
| None ->
|
||||||
let content = Pdfio.string_of_bytes (Pdfio.bytes_of_input i 0 i.Pdfio.in_channel_length) in
|
let content = Pdfio.string_of_bytes (Pdfio.bytes_of_input i 0 i.Pdfio.in_channel_length) in
|
||||||
pdf_of_json (J.from_string content)
|
pdf_of_json (J.from_string content)
|
||||||
|
|
Loading…
Reference in New Issue