Home » Questions » Computers [ Ask a new question ]

Print double sided and multiple pages on Ubuntu

Print double sided and multiple pages on Ubuntu

I would like to print two pages per page, and both side of the paper (4 pages into a single sheet of paper). I am using a cheap laser printer (Xerox DocuPrint 203A). In Windows, the printer software will control everything, and prompt me to flip the papers, after finishing printing one side of the papers.

Asked by: Guest | Views: 240
Total answers/comments: 2
Guest [Entry]

"From UbuntuForums Printing Tips Multiple Pages per sheet

Create a dummy pdf-document that has two pages (of the original document) in every page.
for CUPS:

general tab: select the PDF printer from the main window / the reverse option should be - - UNchecked
page setup tab:
pages per side : 2
two sided : one sided
only print : all sheets
hit print

Maybe, this will help.
Making PDF documents in Ubuntu 9.04 with CUPS-PDF (and gutenprint)"
Guest [Entry]

"I wanted to do that too , in a easy way so I wrote this little java prog.

import java.util.ArrayList;
import java.util.Scanner;

public class booklet {

public static int max=0;

public static int min=1;
public static int maxSP=max;
public static int minSP=min;

public static ArrayList<Integer> arr1 = new ArrayList<Integer>();
public static ArrayList<Integer> arr2 = new ArrayList<Integer>();

public static void bookletMaker(int totalfolhas){

for (int i = 0; i < (max/4); i++) {

System.out.print((max-1)+"", ""+min+"", "");
arr1.add(max-1);
arr1.add(min);
min++;
max--;
System.out.print((max+1)+"", ""+min+"", "");
arr1.add(max+1);
arr1.add(min);
min++;
max--;

System.out.print("" "");

System.out.print(min+"", ""+(max-1)+"", "");
arr2.add(min);
arr2.add(max-1);
min++;
max--;
System.out.print(min + "", "" + (max+1) + "","");

arr2.add(min);
arr2.add(max+1);
min++;
max--;

System.out.println();

}
System.out.println((max/4)+"" folhas"");

//retorna os valores max e min aos valores originais
max=maxSP;
min=minSP;

// Impressão em liha para copy+paste
System.out.println(""Impressão em linha para copy + paste"");

}

public static void main(String[] args ) {
Scanner inputNumber= new Scanner(System.in);
System.out.println(""Digite o numero de páginas do documento: "");
max=inputNumber.nextInt();
System.out.println(""Páginas de frente Páginas de Verso"");
bookletMaker(max);

System.out.println();
System.out.println(""Paginas Frente"");
System.out.println(arr1);
System.out.println(""Paginas Verso"");
System.out.println(arr2);
}

}

it will show you the sequence of pages you should print to have a booklet at the end.
So copy and paste the sequence on he field ""Print only these pages"" in you print options. And there you go.

By the way, I wrote it to print booklets with 2 pages per page.
I hope it can help."