📜 ⬆️ ⬇️

We print book brochures in * nix

Surely many of those who read this post, there was a desire to print a certain book on paper and make it so that the book was on convenience close to typographic. Of course, in the role of the book can act as any pdf-document, and some tex'ovaya scientific work.

Well, what is a brochure? In fact, it is such a notebook, each sheet of which is half of a large sheet, and the total number of pages can be easily calculated using the formula <number of "large" sheets> * 2 <how many "small" sheets on "large"> * 2 <two turns sheet = 2 pages> .

Matan synopsis, avon catalog is a brochure. Most of the books are a few brochures, for sure you’ve come across a situation where several old pages folded “in a notebook” fall out of the old shabby books; Also, such notebooks are often specially pulled out of textbooks to be used as cheat sheets, but this is not the topic of our conversation.
')
In this article I will try to explain how to quickly and easily print out any document in the form of a brochure.


Get PostScript Document


So, we have a document. First of all, open it in some viewer (eg in evince ) and " print to file ". At the output, we must obtain a PostScript file, with which we will continue to work.
Let's name this file, for example, book.ps.

We process PostScript file


So, let's decide on the goal: at the exit we have to get the file, printing which, we will receive a brochure.

1) psbook book.ps 1.ps
This command will add a document with blank pages in the right places so that the number of pages becomes a multiple of 4m.

2) Now we need to “glue” every 2 A4 pages into one A4 page, in other words, we need to get a document, on each page of which there will be 2 A5 pages.
psnup -la4 -2 1.ps > result.ps

3) Now delete the rudimentary file 1.ps
rm 1.ps
and proceed to print the resulting brochure

Alternatively, all three steps can be combined into one using pipelines: psbook book.ps | psnup -la4 -2> result.ps

We print a brochure


The most interesting moment with which I had to tinker because of my natural laziness.

1) Open the resulting result.ps file in the viewer and print odd pages.
2) Now re-sort the sheets so that the first page is the last, and the last - guess the first. Insert the sorted sheets into the printer so that printing is carried out from the back of the printed page.
On my HP Photosmart, the last step is done by simply inserting the pages “as is”, that is, after sorting, without turning the pages, we insert sheets into the tray so that the top of the pages printed before is in front and visible.
3) And now print the even pages.
4) After printing it’s enough to fold the printed pages from left to right

Hints

1) Do not use the “reverse print order” in combination with the parity / oddness of the pages, in order to skip the step with the page re-sorting. This will not allow incorrect print order and invalid print pages.
2) If the paper is thin, then it is necessary to “flick over” the sheets before the first print. Re-sorting before the second seal (see paragraph above) will also help prevent pages from sticking together.

Page binding


We will need a needle / awl, staples from the stapler, a pen / pencil, 2 staples.
1) Lay the printed sheets in a flat stack, fasten the upper left and right lower corners with clips, now fold the sheets from left to right.
2) In the center we mark 2 points: one centimeter below the top and one centimeter above the bottom. We take the bracket and attach it at the first point, mark the point where the bracket ends. Similarly, we apply to the bottom point with the bottom of the bracket and put a point in the place where the bracket begins.
Let us omit that the brackets have no end either :)
3) At the designated points, we make holes with the awl / needle and insert brackets into them, covering them from the inside with a finger / something hard.
4) Remove the clips, rejoice :)

I'm not an artist, but I tried


My artistic abilities are below the baseboard, but I tried to sketch on paper how to lay down the paper and painted the main steps: img148.imageshack.us/img148/4875/brove.jpg

Related Links


*) Using psutils - package for working with PostScript files
*) Making booklets with psbook and psnup (google cache)

PS I understand perfectly that the article describes a rather trivial task, but I’m sure those who want to print an article with a brochure, without making 3-4 “clumsy” prints, it will help.
PSS rushed between the blog "printers" and "Linux for all", transferred to the last, I think, so it is more correct.

Source: https://habr.com/ru/post/79921/


All Articles