Publish several PDF gadgets _pdf

Source: Internet
Author: User
Tags diff

Linux multithreaded Server Programming-using the Muduo C + + network library This book is my own latex typesetting, in the typesetting process also accumulated a number of gadgets, today put some of them released. These tools are directly based on the open source IText library and can be downloaded from http://itextpdf.com/. Download

Groovy version is located in Https://github.com/chenshuo/typeset/tree/master/tools

The Java version is located in Https://github.com/chenshuo/recipes/tree/master/java/pdf

Sample output for each tool is in Http://vdisk.weibo.com/s/kT4fL trim (crop)

To make the most of the screen space and to read the proofreading book on the E-reader (IPad, Kindle), I usually cut the PDF to version size. For example, the left image below is the original PDF, the paper size, and the right image is the version after the cut.

The cutting tool is Crop.groovy and can be run directly at the command line after setting the classpath. The core is based on version and paper size to calculate the left and right corner of the left, and then cut each page. This tool, regardless of the content of the PDF, can use the Pdfcrop tool Heiko Oberdiek If you need to tailor the PDF to the page content.

Http://www.ctan.org/tex-archive/support/pdfcrop

http://code.google.com/p/pdfcrop2/imposition (two-up)

Sometimes I want to read both pages of the book in the widescreen, in addition to the PDF reader's own multi-page display function, I often do the two in one (two-up). The resulting PDF can also be printed to look at both saving paper, and with the original is 1:1 size. The resulting PDF effect is shown below.

The two-in-one tool is Twoup.groovy, its core is to calculate the left and right two pages in the hinge in the starting coordinates. Brochure (booklet)

Sometimes I print the contents of a chapter and bind it into a booklet that reads like a book. In order to save paper, before printing to the imposition, such a piece of paper can print 4 pages. For example, 8 pages of content can be printed on two A4 sheets:

Bookbinding this booklet to use straddle, can be used to rotate the stapler (http://www.amazon.cn/dp/B0080AF0FM,http://product.dangdang.com/product.aspx?product_id=1141537002). A booklet should generally be controlled in about 10 pages, that is, 40 page numbers, and then the thickness of the book can not be thoroughly. Compare PDF Content (diff)

After the book is published, each printing may revise some page number, then can use the diffpdf.sh gadget to find out which page content has changed. The idea of this tool is that it renders the PDF as multiple PNG files and then compares the files to the same file by diff.

In addition, Sumatrapdf is a very good PDF reader, it can automatically refresh content after the PDF file update, do not have to reload.

from:http://blog.csdn.net/solstice/article/details/8306916

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.