pdf-rewriter
NAME
pdf-rewriter.raku - Rebuild a PDF using PDF modules.
SYNOPSIS
pdf-rewriter.raku [options] file.pdf [out.pdf]
pdf-rewriter.raku [options] file.pdf [out.json] # convert to json
pdf-rewriter.raku [options] file.json [out.pdf] # convert from json
Options
--password password for an encrypted PDF
--repair repair the input PDF
--rebuild rebuild object tree (renumber, garbage collect and deduplicate objects)
--compress compress streams
--uncompress uncompress streams, where possible
--class=name load class (PDF::Lite, PDF::Class, PDF::API6)
--render render and reformat content (needs PDF::Class or PDF::Lite)
--decrypt remove encryption
--stream write progressively and early
DESCRIPTION
Rewrites the specified PDF document.
Input and output files may be either PDF or JSON.
SEE ALSO
PDF (Perl 6)
=cut