# \#pdf

**URL:** https://discuss.ocaml.org/tag/pdf/325.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [How to convert img to pdf from an OCaml program?](https://discuss.ocaml.org/t/how-to-convert-img-to-pdf-from-an-ocaml-program/4387)

<div class="topic-metadata">

**Author:** [@Luc\_ML](https://discuss.ocaml.org/u/Luc_ML)\
**Replies:** 18\
**Last updated:** [September 20, 2019, 6:07pm UTC](https://discuss.ocaml.org/t/how-to-convert-img-to-pdf-from-an-ocaml-program/4387 "2019-09-20T18:07:55Z")

</div>

What is the simplest and straightest way to turn a png | jpg image in a pdf file with OCaml/an Ocaml binding that can be used with OCaml.4.07.1? The imagemagick binding would be nice but it requires an older compiler an…
