Sponsored Content
Full Discussion: Merge PDF
Top Forums Shell Programming and Scripting Merge PDF Post 302856615 by drl on Tuesday 24th of September 2013 10:42:05 AM
Old 09-24-2013
Hi.

See also pdftk:
Code:
Description: useful tool for manipulating PDF documents
 If PDF is electronic paper, then pdftk is an electronic stapler-remover,
 hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a
 simple tool for doing everyday things with PDF documents. Keep one in the
 top drawer of your desktop and use it to:
  - Merge PDF documents
  - Split PDF pages into a new document
  - Decrypt input as necessary (password required)
  - Encrypt output as desired
  - Fill PDF Forms with FDF Data and/or Flatten Forms
  - Apply a Background Watermark
  - Report PDF on metrics, including metadata and bookmarks
  - Update PDF Metadata
  - Attach Files to PDF Pages or the PDF Document
  - Unpack PDF Attachments
  - Burst a PDF document into single pages
  - Uncompress and re-compress page streams
  - Repair corrupted PDF (where possible)

Found in many repositories, and http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/

Best wishes ... cheers, drl
This User Gave Thanks to drl For This Post:
 

We Also Found This Discussion For You

1. Programming

[python] merge pdf files.

First off I am very new to python but not to scripting I have done a lot of bash scripting. I need to create a python script for work that will combine multiple pdf files into one pdf file and archive both the combined file and the original pdf files. So we receive zip files from a client... (6 Replies)
Discussion started by: SaltCityScripts
6 Replies
CAM::PDF::Decrypt(3pm)					User Contributed Perl Documentation				    CAM::PDF::Decrypt(3pm)

NAME
CAM::PDF::Decrypt - PDF security helper LICENSE
See CAM::PDF. SYNOPSIS
use CAM::PDF; my $pdf = CAM::PDF->new($filename); DESCRIPTION
This class is used invisibly by CAM::PDF whenever it detects that a document is encrypted. See new(), getPrefs() and setPrefs() in that module. FUNCTIONS
$pkg->new($pdf, $ownerpass, $userpass, $prompt) Create and validate a new decryption object. If this fails, it will set $CAM::PDF::errstr and return undef. $prompt is a boolean that says whether the user should be prompted for a password on the command line. $self->decode_permissions($field) Given a binary encoded permissions string from a PDF document, return the four individual boolean fields as an array: print boolean modify boolean copy boolean add boolean $self->encode_permissions($print, $modify, $copy, $add) Given four booleans, pack them into a single field in the PDF style that decode_permissions can understand. Returns that scalar. $self->set_passwords($doc, $ownerpass, $userpass) $self->set_passwords($doc, $ownerpass, $userpass, $permissions) Change the PDF passwords to the specified values. When the PDF is output, it will be encrypted with the new passwords. PERMISSIONS is an optional scalar of the form that decode_permissions can understand. If not specified, the existing values will be retained. Note: we only support writing using encryption version 1, even though we can read encryption version 2 as well. $self->encrypt($doc, $string) Encrypt the scalar using the passwords previously specified. $self->decrypt($doc, $string) Decrypt the scalar using the passwords previously specified. AUTHOR
See CAM::PDF perl v5.14.2 2012-07-08 CAM::PDF::Decrypt(3pm)
All times are GMT -4. The time now is 06:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy