mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
more
This commit is contained in:
@ -573,7 +573,7 @@ let of_input i =
|
||||
| Some ch ->
|
||||
pdf_of_json (J.from_channel ch)
|
||||
| None ->
|
||||
let content = Pdfio.string_of_bytes (Pdfio.bytes_of_input i 0 i.Pdfio.in_channel_length) in
|
||||
let content = Pdfio.string_of_input i in
|
||||
pdf_of_json (J.from_string content)
|
||||
with
|
||||
e -> error (Printexc.to_string e)
|
||||
|
Reference in New Issue
Block a user