J-F-Liu / lopdf

A Rust library for PDF document manipulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] How to convert pages in a PDF document to individual images?

dtom7 opened this issue · comments

Using this crate, is it possible to convert pages in a PDF document to individual images? Preferably PNG images.

Hi, I have very little experience with this crate so assume what I'm saying is wrong! But I think what you want is out of scope for lopdf, because it requires you to render the pdf. If you want to create an image from a pdf, you probably want something like pdftocairo from https://poppler.freedesktop.org/