A
A
Alexey Akulovich2011-06-08 15:06:39
FreeBSD
Alexey Akulovich, 2011-06-08 15:06:39

Pdf-> jpg on FreeBSD?

Actually, I'm interested in the possibility of converting an existing PDF file to JPG (as a set of page images, or at least only the first page) on FreeBSD 8.1.
It is possible to put any ports, compile from source, in general, full scope.
Has anyone encountered something similar?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
usatikov, 2011-06-08
@AterCattus

I did not know that everything is so simple in ImageMagick convert. At one time, I converted pdf using GhostScript:
$pdf_filename Имя исходного файла .pdf
$jpg_filename Имя файла для создания изображения
$page Номер страницы
$res Разрешение получаемой картинки
gs -q -sDEVICE=jpeg -dBATCH -dNOPAUSE -dFirstPage=$page -dLastPage=$page -r$res -sOutputFile=$jpg_filename $pdf_filename

A
Alexey Akulovich, 2011-06-09
@AterCattus

Thanks for the advice, I will dig in both directions, which is more suitable for the task - I will use that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question