1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add pdftk, 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
Burst a PDF Document into Single Pages
Report on PDF Metrics, including Metadata and Bookmarks
Uncompress and Re-Compress Page Streams
Repair Corrupted PDF (Where Possible)

PR:		ports/64555
Submitted by:	Patrick Dung <patrick_dkt@yahoo.com.hk>
This commit is contained in:
Pav Lucistnik 2004-04-02 01:47:27 +00:00
parent f4e0de85b8
commit 99a2a9d13c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105924
4 changed files with 63 additions and 0 deletions

View File

@ -152,6 +152,7 @@
SUBDIR += pclprint
SUBDIR += pdflib
SUBDIR += pdflib-perl
SUBDIR += pdftk
SUBDIR += pdq
SUBDIR += perlftlib
SUBDIR += pfaedit

41
print/pdftk/Makefile Normal file
View File

@ -0,0 +1,41 @@
# Ports collection makefile for: pdftk
# Date created: 18 March, 2004
# Whom: Patrick Dung (patrick_dkt@yahoo.com.hk)
#
# $FreeBSD$
#
PORTNAME= pdftk
PORTVERSION= 0.94
CATEGORIES= print
MASTER_SITES= http://www.accesspdf.com/pdftk/
MAINTAINER= patrick_dkt@yahoo.com.hk
COMMENT= A simple tool for doing everyday things with PDF documents
# needs gcj
BUILD_DEPENDS= gcj33:${PORTSDIR}/lang/gcc33
USE_GCC= 3.3
USE_GMAKE= yes
USE_ICONV= yes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}
MAKEFILE= Makefile.Generic
MAKE_ENV= CXX=g++33 GCJ=gcj33 GCJH=gcjh33
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/pdftk
post-extract:
@${REINPLACE_CMD} -e "s|CC_OPTS \+\=|CC_OPTS \+\= ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz|g" ${WRKSRC}/Makefile.Base
@${REINPLACE_CMD} -e "s|g\+\+|g\+\+33|g" ${WRKSRC}/Makefile.Generic
@${REINPLACE_CMD} -e "s|MAKE)|MAKE) GXX=g++33 GCJ=gcj33 GCJH=gcjh33| " ${WRKSRC}/Makefile.Base
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/../debian/${PORTNAME}.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

2
print/pdftk/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (pdftk-0.94.tar.gz) = 3b4d8c3d9e1f95d0194bc393465bd24a
SIZE (pdftk-0.94.tar.gz) = 688728

19
print/pdftk/pkg-descr Normal file
View File

@ -0,0 +1,19 @@
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.
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
Burst a PDF Document into Single Pages
Report on PDF Metrics, including Metadata and Bookmarks
Uncompress and Re-Compress Page Streams
Repair Corrupted PDF (Where Possible)
Pdftk is also an example of how to use a library of Java classes
in a stand-alone C++ program. Specifically, it demonstrates how GCJ and CNI
allow C++ code to use iText's (itext-paulo) Java classes.
WWW: http://www.accesspdf.com/pdftk/