Converting a PDF to PNG

前端 未结 12 1897
一个人的身影
一个人的身影 2020-11-27 09:58

I\'m trying to convert a PDF to a PNG image (at least the cover of one). I\'m successfully extracting the first page of the PDF with pdftk. I\'m using imagemagick to do the

12条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 10:21

    One can also use the command line utilities included in poppler-utils package:

    sudo apt-get install poppler-utils
    pdftoppm --help
    pdftocairo --help
    

    Example:

    pdftocairo -png mypage.pdf mypage.png
    

提交回复
热议问题