NAME
App::Paperback - Copy and transform pages from a PDF into a new PDF
SYNOPSIS
use strict;
use App::paperback;
my $inputFile = "some-A6-pages.pdf";
my $outputFile = "new-A4-pages.pdf";
my $desiredPage = 1;
my $newPositionXinPoints = 100;
my $newPositionYinPoints = 150;
my $rotate = 90;
my ($numPages, $paperSize) = openInputFile($inputFile);
openOutputFile($outputFile);
newPageInOutputFile();
copyPageFromInputToOutput(
{
page => $desiredPage,
rotate => $rotate,
x => $newPositionXinPoints,
y => $newPositionYinPoints
}
);
closeInputFile();
closeOutputFile();
DESCRIPTION
This module allows you to transform pages from an input PDF file into a new PDF file. Input PDF should:
1. Conform to version 1.4 of PDF;
2. Consist of vertical-oriented pages of the same size;
3. Use page sizes of A5 or A6 or Half Letter or Quarter Letter or Half Legal or Quarter Legal.