系统相关
首页 > 系统相关> > pdf in Ubuntu

pdf in Ubuntu

作者:互联网

 

pdf

<style></style>

pdf-Ubuntu

Table of Contents

1 PDF

 

1.1 PDF viewer

Okular

1.2 combine pdf

keywords: merge

To merge two pdf files, file1.pdf and file2.pdf:

pdftk file1.pdf file2.pdf cat output mergedfile.pdf

1.3 extract a page from a pdf file

method1:

method 2:

use pdftk package

pdftk full-pages.pdf cat 1 output outfile_1.pdf

full-pages.pdf input file
cat 1 page 1

1.4 pdf2png – pdftoppm

pdftoppm input.pdf outputname -png

This will output each page in the PDF using the format outputname-01.png, with 01 being the index of the page. Converting a single page of the PDF

pdftoppm input.pdf outputname -png -f {page} -singlefile

Change {page} to the page number. It's indexed at 1, so -f 1 would be the first page.

Specifying the converted image's resolution

The default resolution for this command is 150 DPI. Increasing it will result in both a larger file size and more detail.

To increase the resolution of the converted PDF, add the options -rx {resolution} and -ry {resolution}. For example:

pdftoppm input.pdf outputname -png -rx 300 -ry 300

https://askubuntu.com/questions/50170/how-to-convert-pdf-to-image/50180#50180

Author: ka

Created: 2020-04-25 六 21:43

Emacs 24.5.1 (Org mode 8.2.10)

Validate

标签:outputname,Ubuntu,PDF,pdf,resolution,page,pdftoppm
来源: https://www.cnblogs.com/code-saturne/p/12775489.html