11 Rabiulakhir 1432H
Here i am creating a document the size of an A5 in portrait orientation. That's the size when you take an A4 paper, hold it in landscape orientation, then fold it vertically in the middle; only now you've got two pieces of A5 in portrait. Is that twisting your brains?
See here about the A4, and A5 paper:
See here about the portrait, and landscape orientation:
Then here i am again, without success trying to print two portrait-A5 pages on a single landscape-A4 paper. The solution came with a little googling around. Here's how...
First you need to setup a virtual printer. If you've already have this setup then go to Part C.
Part A: Checking for a virtual printer
1. A much shorter + simpler way of checking for a printer is from the panel, System > Administration > Printing. See Pic 1.
A new window similar to Pic 2 will appear. In it are shown the printers connected to your laptop, be it virtual or physical printers.
As you can see in Pic 2, no printer is connected to my laptop yet. You can see what it will look like in Pic 15 when a printer is connected; in this case it will be our virtual printer as will be explained in Part B.
2. Since we're going to use OpenOffice.org Writer, here's how to check from within Writer itself. To run Writer, from the panel, Applications > Office > OpenOffice.org Word Processor. See Pic 3.
3. To check for the printer, from the toolbar click File > Printer Settings.... See Pic 4.
4. In the Printer Setup pop-up window similar to Pic 5, in the Name drop-down list you can see the name(s) of the printer(s). Currently mine's Generic Printer *i don't exactly know what it means :p*.
What Pic 5 will look like with the presence of our virtual printer can be seen in Pic 16.
Close the Printer Setup pop-up window and quit Writer before proceeding to Part B.
Part B: Setting-up a virtual printer
The virtual printer i'm going to use is named CUPS-PDF. The steps explained in Part B of this post is simply the elaborated version of what is explained here, Installing a PDF Printer on Ubuntu. Tohir (the author in the previous link) explains how to use the Terminal as well as Synaptic Package Manager to install CUPS-PDF. i choose to use the Synaptic Package Manager. Another option is to use Ubuntu Software Center.
5. From the panel, System > Administration > Synaptic Package Manager. See Pic 6.
6. Depending on your user privileges, you might need to enter an administrative password similar to Pic 7. Type in the password in the Password field, then click the OK button.
Once that is done, you'll see the Synaptic Package Manager window similar to Pic 8.
7. In the Synaptic Package Manager window, type this:
cups-pdfin the Quick Search field. You'll see the filtered results similar to Pic 9.
8. Referring to Pic 9, in the filtered results, there is a package named cups-pdf. To its leftmost will be a white box in the S column.
Click that white box. A pop-up menu similar to Pic 10 appears. Select the option Mark for Installation.
The previously-white box will now have a tick inside it, as seen in Pic 11.
9. Referring to Pic 11, click the button in the toolbar labeled Apply.
A Summary pop-up window similar to Pic 12 appears. To see the list of item(s) to be installed, click the triangle next to To be installed. Click the Apply button to proceed with the installation.
If for some reasons there are other packages required for installation along with CUPS-PDF, my suggestion is to accept them. However if you're unsure, the safe step is to cancel the installation and look for information about those packages :). Better safe than sorry!
Pic 13 shows the installation progress taking place. Once the installation process is done, the previously empty white box (Pic 9) is now a green-filled box, see Pic 14.
A little note here. From online reads about CUPS-PDF, it is mentioned that you need to create a folder named PDF in your Home Folder before proceeding to create your PDF file. The latest news is: you don't have to do that any more! Because that folder-creating step has been eliminated. The folder will be auto-created along with your PDF file in it! i've created a PDF file without having a folder named PDF in my Home Folder :)
10. Now to check for our virtual printer. Refer to Step 1, Pic 1 and Pic 15.
Repeat Step 2-4 to check for the printer in Writer. See Pic 16.
Part C: Different paper-size printing (exporting)
11. Run OpenOffice Writer as shown in Step 2. Open the document you want to print in a different paper size.
12. Go to File > Page Preview. See Pic 17.
13. In the Page Preview view, click the Print options page view button (in the Page Preview toolbar) similar to Pic 18.
The current document is the document you currently have in Writer.
The resulting document is the document that will be produced using CUPS-PDF.
A Print Option pop-up window similar to Pic 19 appears. Setup how you want your current document to align in the resulting document, then click OK. i use the default values.
14. Then click the Print page view button (in the Page Preview toolbar) similar to Pic 20.
The Print pop-up window similar to Pic 21 appears. Click the button Properties....
The Properties of PDF pop-up window similar to Pic 22 appears. Set the Paper size to be the size of the resulting PDF document. Set the Orientation as well. Then click OK. i want mine to be an A4 in landscape.
When you come back to the Print pop-up window in Pic 21, click OK. Another pop-up similar to Pic 23 will appear, probably a few seconds depending on your document complexity.
15. When the Printing... pop-up (Pic 23) disappears, check for your PDF file. From the panel, go to Places > Home Folder, as shown in Pic 24. Inside your Home Folder will be a PDF folder as shown in Pic 25. Inside the PDF folder will be your PDF file.
You can see my results here:
Initially, the document came out right, only it was rotated to be portrait (all the writings were on their side). Simply using PDF-Shuffler to rotate them to be in landscape (all writings were right-side up).