Difference between revisions of "Working with PDF Documents"

From Digital Tibetan
Jump to: navigation, search
(Converting pecha image files into PDFs)
(broken link removed)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Transforming PDF Documents for Printing==
+
==Windows==
 +
===Preparation: tools to download===
 +
A very good swiss army knife for working with PDF documents is the free PD-Fill tools collection which can be downloaded here:
 +
* [http://www.pdfill.com/pdf_tools_free.html http://www.pdfill.com/pdf_tools_free.html]
 +
It contains a printer driver that creates good quality PDF-documents and a tool to cut, merge, and n-up PDF pages.
  
===Tools===
+
If you are using Windows XP, make sure that you have installed [http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en Microsoft .Net Framework]. It is already included in ''Windows Vista'' and ''Windows 7''.
  
====Downloads from Digital Tibetan====
+
Then download the FormatPrintString tool from this site:
 +
* [[Media:FormatStringPrint.zip|WindowsFormatPrinter]]
 +
This tool calculates the page order for creation of booklets and pecha-printing.
  
[[Image:FormatPrintString.jpg|thumb|480px|Tool to calculate the page reordering sequences]]
+
===How-to: create print-ready booklets and pecha-print masters===
 +
[[Image:Booklet.jpg|thumb|left|320px]][[Image:Pecha3A4.jpg|thumb|center|320px]]<br>
 +
* [[Booklet creation with Windows]]
 +
* [[Pecha printing with Windows]]
  
Linux: [[Media:FormatPrinter2.zip|LinuxFormatPrinter]] (requires paket Mono)
+
==Linux==
 +
===Preparation: tools to download===
  
Windows: [[Media:FormatStringPrint.zip|WindowsFormatPrinter]] (requires Microsoft .NET Framework 2 or Mono for Windows)
+
Install the following packages
 +
* <code>gscan2pdf</code>, [http://gscan2pdf.sourceforge.net/ http://gscan2pdf.sourceforge.net/]
 +
* <code>pdfjam</code>, [http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam].  
 +
Those applications are part of most Linux distributions and can be installed using the standard procedures to install software.
 +
* Mono (needed for LinuxFormatPrinter)
  
====Other Software====
+
Then download LinuxFormatPrinter from this site:
 +
* [[Media:FormatPrinter2.zip|LinuxFormatPrinter]] (requires package [http://www.go-mono.com Mono]. Mono is already pre-installed in Ubuntu)
  
Linux: get the packages <code>gscan2pdf</code> and <code>pdfjam</code>
+
===How-to===
 +
* [[Booklet creation with Linux]]
 +
* [[Pecha printing with Linux]]
  
Windows: get [http://www.pdfill.com/pdf_tools_free.html PDFill (free)]
+
==Mac OS-X==
 +
===Preparation: tools to download===
  
===Creating A5 booklets===
+
PDFJam is also available for OS-X. The OS-X version supports a graphical interface for the PDFjam scripts, see:
 +
* [http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/ PDFJAM]
  
# Create a PDF document with a page size that is a ''multiple of four''. (Add empty pages if necessary: in Linux use <pdfjoin>, in Windows use PDFill to join empty pages)
+
Then install:
# Use either the Windows (download WindowsFormatPrinter above) or the Linux version (download LinuxFormatPrinter) to calculate the page reordering sequence for booklet creation: Enter the number of pages (multiple of four) of the original PDF document, select 'A5 booklet' and 'Calculate'.
+
* Mono (needed for <code>LinuxFormatPrinter</code>, which will work on Macs too)
# The next step depends on the operating system you are using:
+
====Windows====
+
Use [http://www.pdfill.com/pdf_tools_free.html PDFill (free)], option 'Split or reorder PDF pages'. Paste the page-number string generated above into 'reorder' and save a PDF that has reordered pages. Then use the option 'Reformat multiple pages into one page'. Select landscape A4, set a six margin input fields to zero, select 1 row two columns and switch of the two options (borders, notes fields). The resulting PDF can be printed using the double-sided short-edge binding option.
+
====Linux====
+
Install the <code>pdfjam</code> package. It contains a command-line tool <code>pdfnup</code>. Use a terminal to execute a command similar to (all in one line):
+
  
  pdfnup original.pdf --pages 41,1,2,41,41,3,4,41,40,5,6,39,38,7,8,37,36,9,10,35,34,
+
And download <code>LinuxFormatPrinter</code> from this site:
  11,12,33,32,13,14,31,30,15,16,29,28,17,18,27,26,19,20,25,24,21,22,23 --nup 2x1
+
* [[Media:FormatPrinter2.zip|LinuxFormatPrinter]] (requires [http://www.go-mono.com Mono])
  --orient landscape --outfile booklet.pdf
+
  
(Of course replace the pages string with the page numbers you generated above with the FormatPrinter tool)
+
Once you have installed PDFjam, Mono and LinuxFormatPrinter, you can follow the Linux instructions for Pecha-Printing and Booklet-creation:
  
This creates a <code>booklet.pdf</code> from <code>original.pdf</code>. <code>booklet.pdf</code> can be printed directly. Use short-edge binding double-sided printing.
+
===How-to===
+
* [[Booklet creating with Linux]] (also applies for OS-X)
===Printing A6 booklets===
+
* [[Pecha printing with Linux]] (also applies for OS-X)
* Use the prodedure for A5 booklets with the following changes:
+
* The number of pages of the original document must be a ''multiple of eight''. Again use the FormatPrint tool above to calculate the page sequence of A6 booklets (4 A6 pages on an A4 page.
+
* In Linux when using <code>pdfnup</code> replace <code>--nup 2x1</code> by <code>--nup 2x2</code> and <code>--orient landscape</code> by <code>--orient portrait</code>
+
* In Windows select 'Portrait' and 2 rows and 2 columns when using PDFill's 'Reformat multiple pages into one page'.
+
===Printing Pechas===
+
  
====Converting pecha image files into PDFs====
+
==See also==
* If you have only scanned images of your pechas (e.g. TIFFs or JPGs), you first need to create a PDF document.
+
* [[How to edit Tibetan texts]]
* In Linux use the package <code>gscan2pdf</code> to create a single PDF document from multiple pecha image files.
+
* [[How to create pechas with OpenOffice]]
* In Windows you can use PDFill, however PDFill is not always working if you want to create PDFs with hundreds of pages. The recommended tool is the Linux gscan2pdf.
+
* [[Preparing Computers for Tibetan Editing]]
  
====Printing the Pecha PDFs====
+
[[category:tools]][[category:how-to]]
* You should now have a PDF document that contains a single pecha side per page. The document must have a page count that is a ''multiple of six''. (Append empty pecha pages if necessary).
+
* Now follow the procedure described for A5 booklets with the following changes
+
* Calculate the page reorder string using the pecha option
+
* In Linux when using <code>pdfnup</code> replace <code>--nup 2x1</code> by <code>--nup 1x3</code>
+
* In Windows select 3 rows and 1 columns when using PDFill's 'Reformat multiple pages into one page'.
+
 
+
====Printing small and very small Pecha PDFs====
+
* use the 2x6 (12 pecha pages on an A4) or 1x6 (6 pecha pages on an A4) option when calculating the page-reorder string. The document needs to have a page count that is a multiple of 12 (1x6 option) or 24 (2x6) option.
+
* In Linux when using <code>pdfnup</code> replace <code>--nup 2x1</code> by <code>--nup 1x6</code> and <code>--orient landscape</code> by <code>--orient portrait</code> for 6 pecha pages per A4, or <code>--nup 2x6</code> for 12 pecha pages per A4.
+
* In Windows select 'Portrait' and 6 rows and 1 or 2 columns when using PDFill's 'Reformat multiple pages into one page'.
+

Latest revision as of 10:47, 24 October 2017

Windows

Preparation: tools to download

A very good swiss army knife for working with PDF documents is the free PD-Fill tools collection which can be downloaded here:

It contains a printer driver that creates good quality PDF-documents and a tool to cut, merge, and n-up PDF pages.

If you are using Windows XP, make sure that you have installed Microsoft .Net Framework. It is already included in Windows Vista and Windows 7.

Then download the FormatPrintString tool from this site:

This tool calculates the page order for creation of booklets and pecha-printing.

How-to: create print-ready booklets and pecha-print masters

Booklet.jpg
Pecha3A4.jpg

Linux

Preparation: tools to download

Install the following packages

Those applications are part of most Linux distributions and can be installed using the standard procedures to install software.

  • Mono (needed for LinuxFormatPrinter)

Then download LinuxFormatPrinter from this site:

How-to

Mac OS-X

Preparation: tools to download

PDFJam is also available for OS-X. The OS-X version supports a graphical interface for the PDFjam scripts, see:

Then install:

  • Mono (needed for LinuxFormatPrinter, which will work on Macs too)

And download LinuxFormatPrinter from this site:

Once you have installed PDFjam, Mono and LinuxFormatPrinter, you can follow the Linux instructions for Pecha-Printing and Booklet-creation:

How-to

See also