Pages

Showing posts with label merging. Show all posts
Showing posts with label merging. Show all posts

Friday, March 13, 2015

LVM Snapshot example

If your Linux is using LVM (Logical Volume Management) testing out or setting up can be much safer if you take a snapshot of your root partition. Here's a small but helpful example to help you do this quickly.

Wednesday, January 29, 2014

Personal emails - Mail Merge add-on

 About a year ago I added some info about this little add-on for thunderbird calle Merge Email. I then described how-to use the address-book to make merged emails. Since I am a bit of a fan of this add-on I'll describe using it with a csv-file.

Saturday, August 11, 2012

Making an A5 book from a pdf-file

Here's how to create an A5 book from a pdf file. This procedure can be done by creating a script that runs through the needed steps automatically. I'll see if I will do that later. But here is the necessary steps to do this manually.

The mission is to print a folder on A4 paper, and fold it into a book.

  1. Calculate:  (number of pages \ 4) + 1 = Sheets  (This is needed as the -s parameter in the psbook-command. If the original document has 9 pages then we need to use the following calculation: (9 \ 4)+1 = 2 + 1 = 3)  2 sheets will hold 8 pages which is one page less than the document. 3 sheets will hold 12 pages and is more than the document.
  2. Convert the original file to a .ps-file:  pdftops original.pdf new_original.ps
  3. Create the pages in the book: psbook -s3 new_original.ps new_original_book.ps   (Refer to step 1 for info about -s3 parameter)
  4. Reorder the pages using psnup: psnup -l -n2 new_original_book.ps new_original_folder.ps  (Parameter -l is to print in landscape, and -n2 is to place 2 pages on each page.)
  5. Convert back to pdf-format: ps2pdf new_original_folder.ps folder.pdf
  6. Remove temporary files: rm new_original_*

After we have printed the book; the pages should come sequentially as in all books. Fold, staple and deliever you brochure/folder. If the original document is more than 4-5 pages we might want to cut a little in front of the book after we have folded it.

Monday, June 18, 2012

Merging pdf-files

Merging and splitting pdf-files is very easy if you have pdftk installed. Using it is as simple as you could ever want it. But I usually end up having to check the man-page if I want to do more complex stuff. I use it everytime I need to do something with a pdf-file. Although there are GUI options my preferred program for working with pdf-files are pdftk.