# \#image

**URL:** https://discuss.ocaml.org/tag/image/326.md

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

---

## [Problem with cairo, vg and myself](https://discuss.ocaml.org/t/problem-with-cairo-vg-and-myself/8481)

<div class="topic-metadata">

**Author:** [@davesnx](https://discuss.ocaml.org/u/davesnx)\
**Replies:** 1\
**Last updated:** [September 13, 2021, 9:02am UTC](https://discuss.ocaml.org/t/problem-with-cairo-vg-and-myself/8481 "2021-09-13T09:02:38Z")

</div>

Hello, I’m working on a small server where I want to render an image as PNG and serve it as a mime png. I used cairo and vg and got pretty far drawing dots, squares and positioning them, even fonts, but now I wanted to…

---

## [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…
