--- pdftk-1.41.orig/debian/copyright +++ pdftk-1.41/debian/copyright @@ -0,0 +1,88 @@ +This package was debianized by Aurelien Jarno on +Sun, 15 Feb 2004 23:43:55 +0100. +It is maintained by Aurélien GÉRÔME since +Sun, 15 Oct 2006 17:14:13 +0200. + +The Debian packaging is (C) 2004-2006 Aurelien Jarno +and (C) 2006-2007 Aurélien GÉRÔME , and is licensed under the +GPL, see `/usr/share/common-licenses/GPL'. + +It was downloaded from . + + +pdftk code in pdftk/ +-------------------- + + Upstream Author: + + Sid Steward + + Copyright: + + Copyright (C) 2003-2006 Sid Steward + + License: + + You are free to distribute this software under the terms of the + GNU General Public License. + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL file. + + Upstream makefiles everywhere fall under the same copyright + and license. + + +iText library in java_libs/com/lowagie/text/ +-------------------------------------------- + + It was downloaded by the upstream author of pdftk from + . + + Upstream Authors: + + Bruno Lowagie + Paulo Soares + + Copyright: + + Copyright (C) 1999-2002 Bruno Lowagie + Copyright (C) 2000-2002 Paulo Soares + + License: + + This library is free software; you can redistribute it and/or + modify it under the terms of the MPL or under the terms of the GNU + Library General Public License as published by the Free Software + Foundation; either version 2 of the License, or any later version. + + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in /usr/share/common-licenses/GPL file. + + +Portions of GNU Compiler for Java and GNU Classpath in +java_libs/{gnu{,_local},java_local}/ +------------------------------------------------------ + + Upstream Author: + + Free Software Foundation, Inc. + + Copyright: + + Copyright (C) 2003-2006 Free Software Foundation, Inc. + + License: + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or + (at your option) any later version. + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL file. + + Note: + + Old embedded source code copies no longer used by the Debian + package. --- pdftk-1.41.orig/debian/pdftk.1 +++ pdftk-1.41/debian/pdftk.1 @@ -0,0 +1,449 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PDFTK 1 "September 18, 2006" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +pdftk \- A handy tool for manipulating PDF +.SH SYNOPSIS +\fBpdftk\fR \fI\fR +.br + [\fBinput_pw\fR \fI\fR] +.br + [\fI\fR \fI\fR] +.br + [\fBoutput\fR \fI\fR] +.br + [\fBencrypt_40bit\fR | \fBencrypt_128bit\fR] +.br + [\fBallow\fR \fI\fR] +.br + [\fBowner_pw\fR \fI\fR] +.br + [\fBuser_pw\fR \fI\fR] +.br + [\fBflatten\fR] [\fBcompress\fR | \fBuncompress\fR] +.br + [\fBkeep_first_id\fR | \fBkeep_final_id\fR] [\fBdrop_xfa\fR] +.br + [\fBverbose\fR] [\fBdont_ask\fR | \fBdo_ask\fR] +.br +Where: +.br + \fI\fR may be empty, or: +.br + [\fBcat\fR | \fBattach_files\fR | \fBunpack_files\fR | \fBburst\fR | +.br + \fBfill_form\fR | \fBbackground\fR | \fBstamp\fR | \fBgenerate_fdf\fR +.br + \fBdump_data\fR | \fBdump_data_fields\fR | \fBupdate_info\fR] +.br + +For Complete Help: \fBpdftk --help\fR +.br +.SH DESCRIPTION +If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents. Use it to: +.sp +.br +* Merge PDF Documents +.br +* Split PDF Pages into a New Document +.br +* Rotate PDF Documents or Pages +.br +* Decrypt Input as Necessary (Password Required) +.br +* Encrypt Output as Desired +.br +* Fill PDF Forms with X/FDF Data and/or Flatten Forms +.br +* Generate FDF Data Stencil from PDF Forms +.br +* Apply a Background Watermark or a Foreground Stamp +.br +* Report PDF Metrics such as Metadata and Bookmarks +.br +* Update PDF Metadata +.br +* Attach Files to PDF Pages or the PDF Document +.br +* Unpack PDF Attachments +.br +* Burst a PDF Document into Single Pages +.br +* Uncompress and Re-Compress Page Streams +.br +* Repair Corrupted PDF (Where Possible) +.SH OPTIONS +A summary of options is included below. +.TP +\fB\-\-help\fR, \fB\-h\fR +Show summary of options. +.TP +.B +A list of the input PDF files. If you plan to combine these PDFs (without +using handles) then list files in the order you want them combined. Use \fB-\fR +to pass a single PDF into pdftk via stdin. +Input files can be associated with handles, where a +handle is a single, upper-case letter: + +\fI\fR\fB=\fR\fI\fR + +Handles are often omitted. They are useful when specifying PDF passwords or page ranges, later. + +For example: A=input1.pdf B=input2.pdf +.TP +.B [input_pw ] +Input PDF owner passwords, if necessary, are associated with files +by using their handles: + +\fI\fR\fB=\fR\fI\fR + +If handles are not given, then passwords are associated with input +files by order. + +Most pdftk features require that encrypted +input PDF are accompanied by the ~owner~ password. If the input PDF +has no owner password, then the user password must be given, instead. +If the input PDF has no passwords, then no password should be given. + +When running in \fBdo_ask\fR mode, pdftk will prompt you for a password +if the supplied password is incorrect or none was given. +.TP +.B [ ] +If this optional argument is omitted, then pdftk runs in 'filter' mode. +Filter mode takes only one PDF input and creates a new PDF after +applying all of the output options, like encryption and compression. + +Available operations are: \fBcat\fR, \fBattach_files\fR, \fBunpack_files\fR, \fBburst\fR, \fBfill_form\fR, +\fBbackground\fR, \fBstamp\fR, \fBdump_data\fR, \fBdump_data_fields\fR, \fBgenerate_fdf\fR, \fBupdate_info\fR. Some operations +takes additional arguments, described below. +.RS 3 +.TP +.B cat [] +Catenates pages from input PDFs to create a new PDF. +Page order in the new PDF is specified by the order of the given page ranges. +Page ranges are described like this: + +\fI\fR[\fI\fR[\fB-\fR\fI\fR[\fI\fR]]][\fI\fR] + +Where the handle identifies one of the input PDF files, and +the beginning and ending page numbers are one-based references +to pages in the PDF file, and +the qualifier can be \fBeven\fR or \fBodd\fR, and the page rotation can be \fBN\fR, \fBS\fR, \fBE\fR, \fBW\fR, \fBL\fR, \fBR\fR, or \fBD\fR. + +If the handle is omitted from the page range, then the pages are taken from the first input PDF. + +The \fBeven\fR qualifier causes pdftk to use only the even-numbered PDF pages, so \fI1-6even\fR yields pages 2, 4 and 6 in that order. \fI6-1even\fR yields pages 6, 4 and 2 in that order. + +The \fBodd\fR qualifier works similarly to the \fBeven\fR. + +The page rotation setting can cause pdftk to rotate pages and documents. Each option sets the page rotation as follows (in degrees): \fBN\fR: 0, \fBE\fR: 90, \fBS\fR: 180, \fBW\fR: 270, \fBL\fR: -90, \fBR\fR: +90, \fBD\fR: +180. \fBL\fR, \fBR\fR, and \fBD\fR make relative adjustments to a page's rotation. + +If no arguments are passed to cat, then pdftk combines all input PDFs in the +order they were given to create the output. + +.PD 0 +.RS +.B NOTES: +.HP 2 +* \fI\fR may be less than \fI\fR. +.HP 2 +* The keyword \fBend\fR may be used to reference the final page of a document instead of a page number. +.HP 2 +* Reference a single page by omitting the ending page number. +.HP 2 +* The handle may be used alone to represent the entire PDF document, e.g., B1-end is the same as B. +.PD 1 +.TP +.B Page Range Examples w/o Handles: +.PD 0 +.P +1-endE - rotate entire document 90 degrees +.P +5 11 20 +.P +5-25oddW - take odd pages in range, rotate 90 degrees +.P +6-1 +.PD 1 +.TP +.B Page Range Examples Using Handles: +.PD 0 +.P +Say \fIA=in1.pdf B=in2.pdf\fR, then: +.P +A1-21 +.P +Bend-1odd +.P +A72 +.P +A1-21 Beven A72 +.P +AW - rotate entire document 90 degrees +.P +B +.P +A2-30evenL - take the even pages from the range, remove 90 degrees from each page's rotation +.P +A A +.P +AevenW AoddE +.P +AW BW BD +.P +.RE +.PD 1 +.TP +.B attach_files [to_page ] +Packs arbitrary files into a PDF using PDF's file attachment features. More than +one attachment may be listed after \fBattach_files\fR. Attachments are added at the +document level unless the optional \fBto_page\fR option is given, in which case +the files are attached to the given page number (the first page is 1, the final +page is \fBend\fR). For example: + +pdftk in.pdf attach_files table1.html table2.html to_page 6 output out.pdf +.TP +.B unpack_files +Copies all of the attachments from the input PDF into the current folder or to +an output directory given after \fBoutput\fR. For example: + +pdftk report.pdf unpack_files output ~/atts/ + +or, interactively: + +pdftk report.pdf unpack_files output PROMPT +.TP +.B burst +Splits a single, input PDF document into individual pages. Also creates a +report named \fBdoc_data.txt\fR which is the same as the output from \fBdump_data\fR. +If the \fBoutput\fR section is omitted, then PDF pages are named: pg_%04d.pdf, +e.g.: pg_0001.pdf, pg_0002.pdf, etc. To name these pages yourself, supply a +printf-styled format string via the \fBoutput\fR section. For example, if you want pages +named: page_01.pdf, page_02.pdf, etc., pass \fBoutput page_%02d.pdf\fR to pdftk. +Encryption can be applied to the output by appending output options such as \fBowner_pw\fR, e.g.: + +pdftk in.pdf burst owner_pw foopass +.TP +.B fill_form +Fills the single input PDF's form fields with the data from an FDF file, XFDF file or stdin. Enter the data filename +after \fBfill_form\fR, or use \fB-\fR to pass the data via stdin, like so: + +pdftk form.pdf fill_form data.fdf output form.filled.pdf + +After filling a form, the form fields remain interactive unless you also use the \fBflatten\fR +output option. \fBflatten\fR merges the form fields with the PDF pages. You can use \fBflatten\fR +alone, too, but only on a single PDF: + +pdftk form.pdf fill_form data.fdf output out.pdf flatten + +or: + +pdftk form.filled.pdf output out.pdf flatten + +If the input FDF file includes Rich Text formatted data in addition to plain text, then the +Rich Text data is packed into the form fields \fIas well as\fR the plain text. Pdftk also sets a flag +that cues Acrobat/Reader to generate new field appearances based on the Rich Text data. That way, +when the user opens the PDF, the viewer will create the Rich Text fields on the spot. If the +user's PDF viewer does not support Rich Text, then the user will see the plain text data instead. +If you flatten this form before Acrobat has a chance to create (and save) new field appearances, +then the plain text field data is what you'll see. +.TP +.B background +Applies a PDF watermark to the background of a single input PDF. Pass the background PDF's +filename after \fBbackground\fR like so: + +pdftk in.pdf background back.pdf output out.pdf + +Pdftk uses only the first page from the background PDF and applies it to every page of the +input PDF. This page is scaled and rotated as needed to fit the input page. You can use \fB-\fR +to pass a background PDF into pdftk via stdin. + +If the input PDF does not have a transparent background (such as a PDF created from page scans) then the resulting background won't be visible -- use the \fIstamp\fR feature instead. +.TP +.B stamp +This behaves just like the \fIbackground\fR feature except it overlays the stamp PDF page \fIon top\fR of the input PDF document's pages. This works best if the stamp PDF page has a transparent background. +.TP +.B dump_data +Reads a single, input PDF file and reports various statistics, +metadata, bookmarks (a/k/a outlines), and page labels to the given output +filename or (if no output is given) to stdout. Does not create a new PDF. +.TP +.B dump_data_fields +Reads a single, input PDF file and reports form field statistics to the given output +filename or (if no output is given) to stdout. Does not create a new PDF. +.TP +.B generate_fdf +Reads a single, input PDF file and generates a FDF file suitable for \fBfill_form\fR +out of it to the given output +filename or (if no output is given) to stdout. Does not create a new PDF. +.TP +.B update_info +Changes the metadata stored in a single PDF's Info dictionary to match +the input data file. The input data file uses the same syntax as the +output from \fBdump_data\fR. This does not change the metadata stored +in the PDF's XMP stream, if it has one. For example: + +pdftk in.pdf update_info in.info output out.pdf +.RE +.TP +.B [output ] +The output PDF filename may not be set to the name of an input filename. Use +\fB-\fR to output to stdout. +When using the \fBdump_data\fR operation, use \fBoutput\fR to set the name of the +output data file. When using the \fBunpack_files\fR operation, use \fBoutput\fR to set +the name of an output directory. When using the \fBburst\fR operation, you can use \fBoutput\fR +to control the resulting PDF page filenames (described above). +.TP +.B [encrypt_40bit | encrypt_128bit] +If an output PDF user or owner password is given, output PDF encryption +strength defaults to 128 bits. This can be overridden by specifying +encrypt_40bit. +.TP +.B [allow ] +Permissions are applied to the output PDF only if an encryption strength +is specified or an owner or user password is given. If permissions are +not specified, they default to 'none,' which means all of the following +features are disabled. + +The \fBpermissions\fR section may include one or more of the following +features: +.RS +.TP +.B Printing +Top Quality Printing +.TP +.B DegradedPrinting +Lower Quality Printing +.TP +.B ModifyContents +Also allows Assembly +.TP +.B Assembly +.TP +.B CopyContents +Also allows ScreenReaders +.TP +.B ScreenReaders +.TP +.B ModifyAnnotations +Also allows FillIn +.TP +.B FillIn +.TP +.B AllFeatures +Allows the user to perform all of the above, and top quality printing. +.RE +.TP +.B [owner_pw ] +.TP +.B [user_pw ] +If an encryption strength is given but no passwords are supplied, then +the owner and user passwords remain empty, which means that the resulting +PDF may be opened and its security parameters altered by anybody. +.TP +.B [compress | uncompress] +These are only useful when you want to edit PDF code in a text editor like vim or emacs. +Remove PDF page stream compression by +applying the \fBuncompress\fR filter. Use the \fBcompress\fR filter to restore compression. +.TP +.B [flatten] +Use this option to merge an input PDF's interactive form fields (and their data) with +the PDF's pages. Only one input PDF may be given. Sometimes used with the \fBfill_form\fR operation. +.TP +.B [keep_first_id | keep_final_id] +When combining pages from multiple PDFs, use one of these options to copy the document ID from either the first or final input document into the new output PDF. Otherwise pdftk creates a new document ID for the output PDF. When no operation is given, pdftk always uses the ID from the (single) input PDF. +.TP +.B [drop_xfa] +If your input PDF is a form created using Acrobat 7 or Adobe Designer, then it probably has XFA data. Filling such a form using pdftk yields a PDF with data that fails to display in Acrobat 7 (and 6?). The workaround solution is to remove the form's XFA data, either before you fill the form using pdftk or at the time you fill the form. Using this option causes pdftk to omit the XFA data from the output PDF form. + +This option is only useful when running pdftk on a single input PDF. When assembling a PDF from multiple inputs using pdftk, any XFA data in the input is automatically omitted. +.TP +.B [verbose] +By default, pdftk runs quietly. Append \fBverbose\fR to the end and it +will speak up. +.TP +.B [dont_ask | do_ask] +Depending on the compile-time settings (see ASK_ABOUT_WARNINGS), pdftk might prompt you for +further input when it encounters a problem, such as a bad password. Override this default behavior +by adding \fBdont_ask\fR (so pdftk won't ask you what to do) or \fBdo_ask\fR (so pdftk will ask you what to do). + +When running in \fBdont_ask\fR mode, pdftk will over-write files with its output without notice. +.SH EXAMPLES +.HP 2 +.TP +.B Decrypt a PDF +pdftk secured.pdf input_pw foopass output unsecured.pdf +.TP 2 +.B Encrypt a PDF using 128-bit strength (the default), withhold all permissions (the default) +pdftk 1.pdf output 1.128.pdf owner_pw foopass +.TP +.B Same as above, except password 'baz' must also be used to open output PDF +pdftk 1.pdf output 1.128.pdf owner_pw foo user_pw baz +.TP +.B Same as above, except printing is allowed (once the PDF is open) +pdftk 1.pdf output 1.128.pdf owner_pw foo user_pw baz allow printing +.TP +.B Join in1.pdf and in2.pdf into a new PDF, out1.pdf +pdftk in1.pdf in2.pdf cat output out1.pdf +.br +or (using handles): +.br +pdftk A=in1.pdf B=in2.pdf cat A B output out1.pdf +.br +or (using wildcards): +.br +pdftk *.pdf cat output combined.pdf +.TP +.B Remove 'page 13' from in1.pdf to create out1.pdf +pdftk in.pdf cat 1-12 14-end output out1.pdf +.br +or: +.br +pdftk A=in1.pdf cat A1-12 A14-end output out1.pdf +.TP +.B Apply 40-bit encryption to output, revoking all permissions (the default). Set the owner PW to 'foopass'. +pdftk 1.pdf 2.pdf cat output 3.pdf encrypt_40bit owner_pw foopass +.TP +.B Join two files, one of which requires the password 'foopass'. The output is not encrypted. +pdftk A=secured.pdf 2.pdf input_pw A=foopass cat output 3.pdf +.TP +.B Uncompress PDF page streams for editing the PDF in a text editor (e.g., vim, emacs) +pdftk doc.pdf output doc.unc.pdf uncompress +.TP +.B Repair a PDF's corrupted XREF table and stream lengths, if possible +pdftk broken.pdf output fixed.pdf +.TP +.B Burst a single PDF document into pages and dump its data to doc_data.txt +pdftk in.pdf burst +.TP +.B Burst a single PDF document into encrypted pages. Allow low-quality printing +pdftk in.pdf burst owner_pw foopass allow DegradedPrinting +.TP +.B Write a report on PDF document metadata and bookmarks to report.txt +pdftk in.pdf dump_data output report.txt +.TP +.B Rotate the first PDF page to 90 degrees clockwise +pdftk in.pdf cat 1E 2-end output out.pdf +.TP +.B Rotate an entire PDF document to 180 degrees +pdftk in.pdf cat 1-endS output out.pdf +.SH NOTES +pdftk uses a slightly modified iText Java library (http://itextpdf.sourceforge.net/) to read and write PDF. The author compiled this Java library using GCJ (http://gcc.gnu.org) so it could be linked with a front end written in C++. + +The pdftk home page is http://www.accesspdf.com/pdftk/. +.SH AUTHOR +Sid Steward (ssteward@accesspdf.com) maintains pdftk. --- pdftk-1.41.orig/debian/control +++ pdftk-1.41/debian/control @@ -0,0 +1,32 @@ +Source: pdftk +Maintainer: Aurélien GÉRÔME +Section: text +Priority: optional +Build-Depends: debhelper (>= 4.0.0), quilt, gcj-4.2 [!alpha !arm !hppa !hurd-i386], g++-4.2 +Standards-Version: 3.7.3 +Homepage: http://www.pdfhacks.com/pdftk/ + +Package: pdftk +Architecture: any +Depends: ${shlibs:Depends} +Suggests: xpdf-utils +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) + . + Author: Sid Steward --- pdftk-1.41.orig/debian/watch +++ pdftk-1.41/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.pdfhacks.com/pdftk/pdftk-(.*)\.tar\.gz --- pdftk-1.41.orig/debian/manpages +++ pdftk-1.41/debian/manpages @@ -0,0 +1 @@ +debian/pdftk.1 --- pdftk-1.41.orig/debian/rules +++ pdftk-1.41/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: build-stamp +build-stamp: + dh_testdir + QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 + $(MAKE) -C $(CURDIR)/pdftk -f Makefile.Debian + touch build-stamp + +clean: + dh_testdir + dh_testroot + [ ! -f $(CURDIR)/pdftk/Makefile.Debian ] || make -C $(CURDIR)/pdftk -f Makefile.Debian clean + [ ! -f $(CURDIR)/java_libs/Makefile ] || make -C $(CURDIR)/java_libs/ clean + QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2 + rm -rf .pc + rm -f build-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/pdftk. + install -o root -g root -m 755 -d $(CURDIR)/debian/pdftk/usr/bin + install -o root -g root -m 755 pdftk/pdftk $(CURDIR)/debian/pdftk/usr/bin + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu + dh_installcron + dh_installman + dh_installinfo + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- pdftk-1.41.orig/debian/changelog +++ pdftk-1.41/debian/changelog @@ -0,0 +1,181 @@ +pdftk (1.41-3) unstable; urgency=high + + * Change my email address in the Uploaders field. + * Bump Standards-Version to 3.7.3. + * Remove no longer used Vcs-Git, Vcs-Browser, and + XS-DM-Upload-Allowed fields. + * Change Build-Depends field: gcj-4.2 [!alpha !arm !hppa !hurd-i386]. + (Closes: #477898) + + -- Aurélien GÉRÔME Fri, 30 May 2008 15:08:46 +0200 + +pdftk (1.41-2) unstable; urgency=low + + * Switch from the XS-Vcs-Git/XS-Vcs-Browser fields to the + Vcs-Git/Vcs-Browser fields and fix typos in both URLs. + * Rework debian/copyright to include missing copyright holders + and licenses. + * Add the XS-DM-Upload-Allowed field. + + -- Aurélien GÉRÔME Sun, 02 Dec 2007 00:02:04 +0100 + +pdftk (1.41-1) unstable; urgency=high + + * New upstream release. (Closes: #400920) + * Regenerate upstream tarball by removing superfluous files. + + debian/ + + java_libs/com/lowagie/text/pdf/PRStream.java.orig + + java_libs/com/lowagie/text/pdf/PRTokeniser.java.orig + * Add quilt support. + * Add the XS-Vcs-Git and XS-Vcs-Browser fields. + * Remove the uppercase at the beginning of the Description field. + * Fix upstream homepage location. (Closes: #420973) + + Remove it from the long description. + + Add it in the new Homepage field. + * Remove ${misc:Depends} from the Depends field. + * Fix FTBFS due to new behaviour of gcjh since gcj-4.1.2. + (Closes: #421341, #443714) + * Fix ABI mismatch at runtime due to old embedded copies of gcj + Java source code. (Closes: #426314) + The following directories are thus no longer needed by Debian. + + java_libs/gnu/ + + java_libs/gnu_local/ + + java_libs/java_local/ + * Change Build-Depends to gcj-4.2 and g++-4.2. + + Depends on libgcj8-1. (Closes: #385914, #423417) + * Fix lintian warnings "debian-rules-ignores-make-clean-error". + * Remove unused debhelper tools from debian/rules. + * Update debian/copyright. + + -- Aurélien GÉRÔME Wed, 14 Nov 2007 14:40:12 +0100 + +pdftk (1.40-2) unstable; urgency=low + + * New maintainer. + * Add debian/watch file. + + -- Aurélien GÉRÔME Sun, 15 Oct 2006 17:14:13 +0200 + +pdftk (1.40-1) unstable; urgency=low + + * New upstream version. + - Fix concatenation of 2 pdf documents which some kind of pdf + (closes: bug#385598). + + -- Aurelien Jarno Fri, 22 Sep 2006 16:39:10 +0200 + +pdftk (1.12-11) unstable; urgency=low + + * Mixing different versions of g++ and gcj does not work, explicitely + use gcj-4.1 and g++-4.1. + + -- Aurelien Jarno Sat, 20 May 2006 00:40:04 +0200 + +pdftk (1.12-10) unstable; urgency=low + + * Added -O2 to GCJFLAGS (closes: bug#366661). + * Bumped Standards-Version to 3.7.2 (no changes). + + -- Aurelien Jarno Wed, 10 May 2006 10:56:37 +0200 + +pdftk (1.12-9) unstable; urgency=low + + * Fix previous FDF patch (closes: bug#365084). + + -- Aurelien Jarno Thu, 27 Apr 2006 23:27:01 +0200 + +pdftk (1.12-8) unstable; urgency=low + + * Added a patch to support page rotating. Thanks to David Fabel. + * Bumped Standards-Version to 3.6.2 (no changes). + + -- Aurelien Jarno Mon, 24 Apr 2006 22:03:59 +0200 + +pdftk (1.12-7) unstable; urgency=low + + * Build with -fdollars-in-identifiers to workaround a gcc bug on arm + (closes: bug#334642). + + -- Aurelien Jarno Wed, 19 Oct 2005 19:31:00 +0200 + +pdftk (1.12-6) unstable; urgency=low + + * Fixed FTBFS. + + -- Aurelien Jarno Sun, 16 Oct 2005 21:21:49 +0200 + +pdftk (1.12-5) unstable; urgency=low + + * C++ ABI transition. + + -- Aurelien Jarno Wed, 6 Jul 2005 01:03:57 +0200 + +pdftk (1.12-4) unstable; urgency=low + + * Suggests: xpdf-utils (closes: bug#306625). + + -- Aurelien Jarno Sun, 1 May 2005 11:27:28 +0200 + +pdftk (1.12-3) unstable; urgency=low + + * Depends on libgcj-dev instead of libgcj4-dev. + * Build with gcj instead of gcj-3.3. + + -- Aurelien Jarno Wed, 30 Mar 2005 16:44:02 +0200 + +pdftk (1.12-2) unstable; urgency=low + + * Added a patch from Bernhard R. Link to adds a new generate_fdf + action to generate a FDF out of a PDF file. The patch will also be + added in the next upstream version (closes: bug#289846). + + -- Aurelien Jarno Tue, 11 Jan 2005 23:22:59 +0100 + +pdftk (1.12-1) unstable; urgency=low + + * New upstream release. + + -- Aurelien Jarno Wed, 10 Nov 2004 21:04:25 +0000 + +pdftk (1.11-1) unstable; urgency=low + + * New upstream version. + + -- Aurelien Jarno Fri, 5 Nov 2004 09:42:53 +0000 + +pdftk (1.10-1) unstable; urgency=low + + * New upstream version. + + -- Aurelien Jarno Wed, 27 Oct 2004 14:15:40 +0000 + +pdftk (1.00-1) unstable; urgency=low + + * New upstream version. + + -- Aurelien Jarno Sat, 14 Aug 2004 20:18:35 +0200 + +pdftk (0.94-1) unstable; urgency=low + + * New upstream version. + + -- Aurelien Jarno Thu, 25 Mar 2004 08:58:03 +0100 + +pdftk (0.93-1) unstable; urgency=low + + * New upstream release. + * Updated debian/copyright. + + -- Aurelien Jarno Wed, 10 Mar 2004 07:37:12 +0100 + +pdftk (0.92-2) unstable; urgency=low + + * Fixed a typo in the description (closes: bug#234675). + + -- Aurelien Jarno Wed, 25 Feb 2004 20:21:12 +0100 + +pdftk (0.92-1) unstable; urgency=low + + * Initial Release (closes: bug#232863). + + -- Aurelien Jarno Sun, 15 Feb 2004 23:54:35 +0100 --- pdftk-1.41.orig/debian/compat +++ pdftk-1.41/debian/compat @@ -0,0 +1 @@ +4 --- pdftk-1.41.orig/debian/patches/no_embedded_libs +++ pdftk-1.41/debian/patches/no_embedded_libs @@ -0,0 +1,73 @@ +Index: pdftk/pdftk/Makefile.Base +=================================================================== +--- pdftk.orig/pdftk/Makefile.Base 2007-11-14 13:26:12.343555702 +0100 ++++ pdftk/pdftk/Makefile.Base 2007-11-14 13:26:12.363561247 +0100 +@@ -31,18 +31,6 @@ + afms= $(wildcard $(java_libs_root)/com/lowagie/text/pdf/fonts/*.afm) + afm_objects= $(patsubst %.afm, %.o, $(afms)) + +-# older versions of libgcj might not have the MD5 algorithm, +-# so I added it here; these *_local java files were grabbed from +-# libgcj CVS on March 7, 2004; diffed September 5, 2006 w/ gcc 4.1.1 +-# +-# gnu/gcj/convert/Input_UnicodeBig.java was grabbed March 26, 2004; diffed September 5, 2006 w/ gcc 4.1.1 +-# +-libgcj_local_libs = \ +-$(java_libs_root)/java_local/security/security.a \ +-$(java_libs_root)/gnu_local/java/security/provider/provider.a \ +-$(java_libs_root)/gnu_local/java/security/security.a \ +-$(java_libs_root)/gnu/gcj/convert/convert.a +- + # this must already be set according to your platform Makefile; + # we're just appending to it, here + # +Index: pdftk/java_libs/com/lowagie/text/pdf/PdfEncryption.java +=================================================================== +--- pdftk.orig/java_libs/com/lowagie/text/pdf/PdfEncryption.java 2007-11-14 13:24:35.736779184 +0100 ++++ pdftk/java_libs/com/lowagie/text/pdf/PdfEncryption.java 2007-11-14 13:26:12.363561247 +0100 +@@ -50,7 +50,7 @@ + + package com.lowagie.text.pdf; + +-import java_local.security.MessageDigest; // ssteward ++import java.security.MessageDigest; + import com.lowagie.text.ExceptionConverter; + + /** +Index: pdftk/java_libs/Makefile +=================================================================== +--- pdftk.orig/java_libs/Makefile 2007-11-14 13:26:12.343555702 +0100 ++++ pdftk/java_libs/Makefile 2007-11-14 13:26:56.971925474 +0100 +@@ -11,15 +11,9 @@ + java_libs_root= $(CURDIR) + + # append gcj flags +-export GCJFLAGS+= -w --encoding=UTF-8 --classpath="$(java_libs_root)" ++export GCJFLAGS+= -w --encoding=UTF-8 --classpath="/usr/share/java/libgcj-4.2.jar:$(java_libs_root)" + +-all : libgcj_local itext +- +-libgcj_local : +- $(MAKE) -C "$(java_libs_root)/gnu_local/java/security"; +- $(MAKE) -C "$(java_libs_root)/gnu_local/java/security/provider"; +- $(MAKE) -C "$(java_libs_root)/gnu/gcj/convert"; +- $(MAKE) -C "$(java_libs_root)/java_local/security"; ++all : itext + + itext : + $(MAKE) -C "$(java_libs_root)/com/lowagie/text"; +@@ -35,13 +29,7 @@ + $(MAKE) -C "$(java_libs_root)/com/lowagie/bc/asn1"; + $(MAKE) -C "$(java_libs_root)/com/lowagie/text/pdf/codec/postscript"; + +-clean : libgcj_local_clean itext_clean +- +-libgcj_local_clean : +- $(MAKE) -iC "$(java_libs_root)/gnu_local/java/security" clean; +- $(MAKE) -iC "$(java_libs_root)/gnu_local/java/security/provider" clean; +- $(MAKE) -iC "$(java_libs_root)/gnu/gcj/convert" clean; +- $(MAKE) -iC "$(java_libs_root)/java_local/security" clean; ++clean : itext_clean + + itext_clean : + $(MAKE) -iC "$(java_libs_root)/com/lowagie/text" clean; --- pdftk-1.41.orig/debian/patches/series +++ pdftk-1.41/debian/patches/series @@ -0,0 +1,2 @@ +build_with_gcc-4.2 +no_embedded_libs --- pdftk-1.41.orig/debian/patches/build_with_gcc-4.2 +++ pdftk-1.41/debian/patches/build_with_gcc-4.2 @@ -0,0 +1,185 @@ +Index: pdftk-1.41/pdftk/Makefile.Debian +=================================================================== +--- pdftk-1.41.orig/pdftk/Makefile.Debian 2007-11-08 14:03:26.780004635 +0100 ++++ pdftk-1.41/pdftk/Makefile.Debian 2007-11-08 14:03:29.072639728 +0100 +@@ -12,7 +12,7 @@ + + # tools + TOOLPATH= +-VERSUFF=-4.1 ++VERSUFF=-4.2 + CXX= $(TOOLPATH)g++$(VERSUFF) + export GCJ= $(TOOLPATH)gcj$(VERSUFF) + export GCJH= $(TOOLPATH)gcjh$(VERSUFF) +@@ -23,7 +23,7 @@ + # if you want pdftk to ask before overwriting a file, set + # ASK_ABOUT_WARNINGS to true; otherwise: false; override this default + # with the dont_ask or do_ask command-line options +-CPPFLAGS= -O3 -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -fdollars-in-identifiers ++CPPFLAGS= -w -O3 -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -fdollars-in-identifiers + CXXFLAGS= -lgcj + + # itext compiler flags +Index: pdftk-1.41/java_libs/com/lowagie/text/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/text/Makefile 2007-11-08 14:03:26.800010177 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/text/Makefile 2007-11-08 14:03:29.072639728 +0100 +@@ -25,14 +25,15 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets + + all : $(library) $(headers) + ++$(classes): $(sources) ++ + $(library) : $(objects) + $(AR) $(ARFLAGS) $(library) $(objects); + +Index: pdftk-1.41/java_libs/com/lowagie/text/xml/xmp/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/text/xml/xmp/Makefile 2007-11-08 14:03:26.820015719 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/text/xml/xmp/Makefile 2007-11-08 14:03:29.092645270 +0100 +@@ -25,8 +25,7 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets +Index: pdftk-1.41/java_libs/com/lowagie/text/pdf/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/Makefile 2007-11-08 14:03:26.832019044 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/text/pdf/Makefile 2007-11-08 14:03:29.092645270 +0100 +@@ -25,8 +25,7 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets +@@ -37,4 +36,4 @@ + $(AR) $(ARFLAGS) $(library) $(objects); + + clean : +- $(RM) $(RMFLAGS) *.o *.h *.class *.a ++ $(RM) $(RMFLAGS) *.o *.h *.class *.a hyphenation/*.class +Index: pdftk-1.41/java_libs/com/lowagie/text/pdf/fonts/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/fonts/Makefile 2007-11-08 14:03:26.852024586 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/text/pdf/fonts/Makefile 2007-11-08 14:03:29.092645270 +0100 +@@ -34,8 +34,7 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets +Index: pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/postscript/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/postscript/Makefile 2007-11-08 14:03:26.868029019 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/postscript/Makefile 2007-11-08 14:03:29.092645270 +0100 +@@ -25,8 +25,7 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets +Index: pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile 2007-11-08 14:03:26.908040103 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile 2007-11-08 14:03:29.092645270 +0100 +@@ -25,8 +25,7 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets +Index: pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/Makefile 2007-11-08 14:03:26.928045645 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/Makefile 2007-11-08 14:03:29.100647487 +0100 +@@ -25,8 +25,7 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets +Index: pdftk-1.41/java_libs/com/lowagie/text/markup/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/text/markup/Makefile 2007-11-08 14:03:26.948051187 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/text/markup/Makefile 2007-11-08 14:03:29.100647487 +0100 +@@ -25,8 +25,7 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets +Index: pdftk-1.41/java_libs/com/lowagie/bc/asn1/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/com/lowagie/bc/asn1/Makefile 2007-11-08 14:03:26.972057837 +0100 ++++ pdftk-1.41/java_libs/com/lowagie/bc/asn1/Makefile 2007-11-08 14:03:29.100647487 +0100 +@@ -25,8 +25,7 @@ + # the "$*" automatic variable, here + # + %.h : %.class +- $(GCJH) --classpath="." $*; +- $(RM) $< ++ $(GCJH) --classpath="/usr/share/java/libgcj-4.2.jar:$(PWD):." $* + + ## + # targets +Index: pdftk-1.41/java_libs/Makefile +=================================================================== +--- pdftk-1.41.orig/java_libs/Makefile 2007-11-08 14:03:26.992063379 +0100 ++++ pdftk-1.41/java_libs/Makefile 2007-11-08 14:03:29.100647487 +0100 +@@ -11,7 +11,7 @@ + java_libs_root= $(CURDIR) + + # append gcj flags +-export GCJFLAGS+= --encoding=UTF-8 --classpath="$(java_libs_root)" ++export GCJFLAGS+= -w --encoding=UTF-8 --classpath="$(java_libs_root)" + + all : libgcj_local itext + +Index: pdftk-1.41/pdftk/Makefile.Base +=================================================================== +--- pdftk-1.41.orig/pdftk/Makefile.Base 2007-11-08 14:03:42.008223078 +0100 ++++ pdftk-1.41/pdftk/Makefile.Base 2007-11-08 14:03:50.490572824 +0100 +@@ -73,4 +73,4 @@ + + clean: + $(MAKE) -C $(java_libs_root) clean +- rm -vf *.o ++ rm -vf *.o pdftk