ghostscript

pdf2email

pdf2email is a CUPS backend that uses GhostScript to print a document to PDF and sends the final file to the user that requested the print via email.

Technology:

pdfcrop

Perl script that can crop a PDF file.Tried numerous other ways to do it and damned if I could get any other methods to work!

Requires pdftex and ghostscript.

cd /usr/local/bin
wget http://mirror.its.dal.ca/ctan/support/pdfcrop/pdfcrop.pl
chmod ugo+x pdfcrop.pl
mv pdfcrop.pl pdfcrop

If pdfcrop complains about not being able to find pdftex, either add it's location to $PATH, or add a command-line switch such as:

--pdftexcmd /usr/local/texlive/2010/bin/i386-linux/pdftex

Example usage, to take 36 points off the left and right and 18 points off the top/bottom:

pdfcrop --margins '-36 -18 -36 -18' input.pdf output.pdf

ttf2pt1

TTF2PT1 is a modification of Andrew Weeks TTF2PFA True Type to Postscript Type 3 converter. Which will convert Most True Type Fonts to an Adobe Type 1 .pfa file. And also the other font formats supported by the FreeType library to an Adobe Type 1 .pfa file. And the BDF fonts to an Adobe Type 1 .pfa file. Yet another use is as a hinting engine: feed it an unhinted or poorly hinted Adobe Type 1 font through the FreeType library and get it back with freshly generated hints. If you want .pfb files, don't despair: they can be produced too. The files produced by default are in human readable form, which further needs to be encoded with the t1utilities, to work with most software requiring type 1 fonts. But for the lazy people ttf2pt1 includes a built-in portion of t1utilities as well.

Installation

cd /extra/src
wget http://prdownloads.sourceforge.net/ttf2pt1/ttf2pt1-3.4.4.tgz
tar zxf ttf2pt1-3.4.4.tgz
cd ttf2pt1-3.4.4

Install it:

make install

Technology:

CTP Workflow

Rudiments of a newspaper CTP workflow to n-up pages for plate production

  • Overlay Editorial and Advertising components of a page:
    pdftk editorial.pdf stamp ad.pdf output complete_page.pdf
  • 2-up broadsheet pages
    --noautoscale true prevents scaling the source PDFs if the output size is bigger/smaller.

    pdfjam --nup 2x1 --suffix 2up --papersize '{23in,22.5in}' \
    --noautoscale true --outfile ./2-up_page.pdf \
    righthand_odd_page.pdf lefthand_even_page.pdf

    Offset them a bit to move them off the top of the page:

    pdfjam --noautoscale true --nup 2x1 \

PDFjam

PDFjam is a small collection of shell scripts which provide a simple interface to much of the functionality of the excellent pdfpages package (by Andreas Matthias) for pdfLaTeX.

Prerequisites

  • pdftex

    cd /extra/src
    wget http://sarovar.org/frs/download.php/1292/pdftex-1.40.10.tar.bz2
    tar -jxf pdftex-1.40.10.tar.bz2
    cd pdftex-1.40.10

    Attempt to build it

    ./build-pdftex.sh
  • TeX Live
    cd /extra/src
    wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
    tar zxf install-tl-unx.tar.gz
    cd install-tl-20110415

    Run the installer:

Technology:

Fonts

Adding extra fonts to Ghostscripot

Technology:

Examples

Usage examples for Ghostscript.

"Normalize" a PDF

gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=output.pdf input.pdf

PDF to EPS
http://pages.cs.wisc.edu/~ghost/doc/svn/Use.htm#Output_device

gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=epswrite -sOutputFile=output.eps input.pdf

-dNOCACHE Prevents it from rasterizing fonts!

PDF Presets

-dPDFSETTINGS=_____

Technology:

EPStool

Epstool is a utility for adding/converting previews in EPS files.

cd /extra/src
wget ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/epstool-3.08.tar.gz
tar zxvf epstool-3.08
cd epstool-3.08

Build it:

make
make install

Technology:

Ghostscript

Ghostscript is a suite of software based on an interpreter for Adobe Systems' PostScript and Portable Document Format (PDF) page description languages.

cd /extra/src
wget http://downloads.ghostscript.com/public/ghostscript-9.02.tar.gz
tar zxvf ghostscript-9.02.tar.gz
cd ghostscript-9.02

Build and install Ghostscript. On OS X, you might want to --disable-cups.

./configure
make
make install

Download the Ghostscript fonts:

cd /extra/src
wget "http://surfnet.dl.sourceforge.net/project/gs-fonts/gs-fonts/8.11 (base 35, GPL)/ghostscript-fonts-std-8.11.tar.gz"
tar zxvf ghostscript-fonts-std-8.11.tar.gz

Technology:

Subscribe to RSS - ghostscript

Recent Updates

  • 5 months 3 weeks ago
    1.27.2 update
  • 6 months 2 days ago
    Drupal 10/11 config
  • 6 months 4 days ago
  • PHP
    6 months 4 days ago
    PHP 8.3.11 and AlmaLinux
  • 6 months 4 days ago
    New version of Pound