Chris Dolan > CAM-PDF-1.59 > revertpdf.pl

Download:
CAM-PDF-1.59.tar.gz

Annotate this POD

CPAN RT

New  18
Open  15
View/Report Bugs
Source   Latest Release: CAM-PDF-1.60

NAME ^

revertpdf.pl - Remove the last edits to a PDF document

SYNOPSIS ^

 revertpdf.pl [options] infile.pdf [outfile.pdf]

 Options:
   -c --count          just print the number of revisions and exits
   -v --verbose        print diagnostic messages
   -h --help           verbose help message
   -V --version        print CAM::PDF version

DESCRIPTION ^

PDF documents have the interesting feature that edits can be applied just to the end of the file without altering the original content. This makes it possible to recover previous versions of a document. This is only possible if the editor writes out an 'unoptimized' version of the PDF.

This program removes the last layer of edits from the PDF document. If there is just one revision, we emit a message and abort.

The --count option just prints the number of generations the document has endured and applies no changes.

SEE ALSO ^

CAM::PDF

AUTHOR ^

See CAM::PDF

syntax highlighting: