Ghostscript Command Practice

Source: Internet
Author: User

Convert a single PDF file igs.pdf to a TIFF file.

1. gs-sdevice=tiffg4-soutputfile=igs.tiff-dmaxstripsize=8192 igs.pdf

-dadjustwidth=true|false (Boolean; default = True)

If true, then if the requested page width was close to either A4 (1728 columns) or B4 (2048 columns), set the page width to A4 or B4 respectively.

Command 1. Auto-generated pixel size 1728x2292

2. Gs-q-r204x196-g1728x2156-dnopause-dbatch-dsafer-sdevice=tiffg4-soutputfile=igs1.tiff--Igs.pdf

Command 2. The pixel size is specified manually 1728x2156

Online has the saying:-r204x98 -g1728x1078 size file is the standard file?

Attention!!!

After testing, it is recommended to use the 1728x2292 size setting because 2156 cannot display the full PDF header.

Further check, this size is the standard A4 paper resolution.

The-r204x196-g1728x2292 parameter is equivalent to-SPAPERSIZE=A4.

3. Gs-q-r204x196-g1728x2156-dnopause-dbatch-dsafer-sdevice=tiffg3-soutputfile=igs2.tiff--Igs.pdf

The difference between commands 2 and 3:

The output of the fax compression format is different, the file size is different, here test the file result: Igs1.tiff size is about 5Kb, and Igs2.tiff is 24Kb.

Convert more than one PDF file to multiple TIFF files.

1. Gs-q-r204x196-g1728x2292-dnopause-dbatch-dsafer-sdevice=tiffg4-soutputfile=igs%d.tiff--Igs.pdf

Command 1. Multiple TIFF files generated by Igs1.tiff,igs2.tiff ...

2. Gs-q-r204x196-g1728x2292-dnopause-dbatch-dsafer-sdevice=tiffg4-soutputfile=igs%02d.tiff--Igs.pdf

Command 2. Multiple TIFF files generated by Igs01.tiff,igs02.tiff ...

Ghostscript Command Practice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.