Comments (0)

Files changed (5)

File .hgignore Added

View file
  • Ignore whitespace
  • Hide word diff
+syntax: glob
+bin/*
+dist/*

File README.markdown Added

View file
  • Ignore whitespace
  • Hide word diff
+PDF Splice
+==========
+PDF Splice is a small utility to make transformations on PDF files. Transformations include:
+ 
+* join PDFs
+* split in pages
+* crop pages
+* divide one page in many 
+* "multiply" (many pages in one)
+* attach files
+* extract attached files
+
+The "PDF Splice" name was inspired by the [splice function in Perl](http://perldoc.perl.org/functions/splice.html) 
+
+Project website: 
+[http://pdfsplice.sf.net/](http://pdfsplice.sf.net/)
+
+
+Running (simple version)
+========================
+1. Make sure you have JRE (Java Runtime) 5 or newer
+2. Download [pdfsplice.allinone.jar](http://sourceforge.net/projects/pdfsplice/files/pdfsplice%200.3.1/pdfsplice.allinone.jar/download)
+3. Double click on `pdfsplice.allinone.jar` _or_ run in the command line: `java -jar pdfsplice.jar`
+
+
+Running (extended version)
+==========================
+1. Make sure you have JRE (Java Runtime) 5 or newer
+2. Download [pdfsplice.jar](https://sourceforge.net/projects/pdfsplice/files/pdfsplice%200.3.1/), 
+   [iText-5.0.1.jar](https://sourceforge.net/projects/pdfsplice/files/dependencies/) 
+   and [bcprov-jdk15-133.jar](https://sourceforge.net/projects/pdfsplice/files/dependencies/)
+   and put them on the same folder
+3. Double click on pdfsplice.jar
+_or_
+run in the command line: `java -jar pdfsplice.jar`
+
+
+Dependencies
+============
+PDF Splice depends on [iText framework](http://itextpdf.com/) for manipulating PDF files.
+
+PDF Splice also depends on [Bouncy Castle](http://www.bouncycastle.org/) for dealing with signed/cryptographed PDFs
+
+(You can download both of them from [https://sourceforge.net/projects/pdfsplice/files/dependencies/](https://sourceforge.net/projects/pdfsplice/files/dependencies/))
+
+PDF Splice requires Java SE 5.0 or newer
+
+
+Source code
+===========
+* [bitbucket/tbrugz/pdfsplice](https://bitbucket.org/tbrugz/pdfsplice) (main - hg) 
+* [sourceforge/pdfsplice](https://sourceforge.net/scm/?type=svn&group_id=325299) (svn)
+
+
+License
+=======
+The project is licenced under [AGPLv3](http://www.gnu.org/licenses/agpl.html) 
+
+
+Author
+=======
+[Telmo Brugnara](mailto:tbrug@users.sourceforge.net)

File build.xml Modified

View file
  • Ignore whitespace
  • Hide word diff
         </javac>
     </target>
 
-    <target name="jar"
-            depends="compile">
+    <target name="jar" depends="compile">
         <jar jarfile="${dist.dir}/pdfsplice.jar"
             basedir="${compile.dir}"
             includes="net/sf/pdfsplice/**.class, net/sf/pdfsplice/uiutil/**.class">
 		    </manifest>
         </jar>
     </target>
+	
+	<target name="jar.all-in-one" depends="compile">
+		<jar id="files" jarfile="${dist.dir}/pdfsplice.allinone.jar">
+			<manifest>
+				<attribute name="Manifest-Version" value="${manifest.version}"/>
+				<attribute name="Implementation-Title" value="PDF Splice"/>
+				<attribute name="Implementation-Version" value="${version}"/>
+				<attribute name="Main-Class" value="${manifest.mainclass}"/>
+			</manifest>
+			<fileset dir="${compile.dir}" includes="net/sf/pdfsplice/**.class, net/sf/pdfsplice/uiutil/**.class"/>
+			<zipfileset src="${lib.dir}/iText-5.0.1.jar" includes="**/*.class, *.properties"/>
+			<zipfileset src="${lib.dir}/bcprov-jdk15-133.jar" includes="**/*.class, *.properties"/>
+		</jar>
+	</target>
 
 	<!-- 
 	http://ant.apache.org/manual/Tasks/junit.html
 	http://junit.sourceforge.net/doc/faq/faq.htm#running_5
 	-->
-	<target name="test"
-            depends="compile">
+	<target name="test" depends="compile">
 		<junit fork="yes" haltonfailure="yes">
 			<test name="${test.class.name}" />
 			<formatter type="plain" usefile="false" />

File doc/readme.txt Modified

View file
  • Ignore whitespace
  • Hide word diff
 License
 =======
 The project is licenced under AGPLv3 <http://www.gnu.org/licenses/agpl.html> 
- 
- 
-Running
-=======
-1- Make sure you have JRE (Java Runtime) 5 or newer
-2- Download pdfsplice.jar, iText-5.0.1.jar and bcprov-jdk15-133.jar and put them on the same folder
-3- Doubleclick on pdfsplice.jar :)
-or
-3- run in the command line: java -jar pdfsplice.jar
 
 
 Dependencies
 Related Software
 ========================
 http://itextpdf.com/
+http://sourceforge.net/projects/itexttoolbox/
 http://poppler.freedesktop.org/
 http://pdfbox.apache.org/
 http://www.pdfhacks.com/pdftk/

File doc/todo.txt Modified

View file
  • Ignore whitespace
  • Hide word diff
 
 pdfsplice gui:
 - save/load state (xxx.splice.properties)
--> installer (izpack? nsis?)
-- MultiFilePanel: File ordering when selecting more than 1 file
+  - preferences: remeber last dir opened (input/output)
+? installer (izpack? nsis?)
+~ jar: all-in-one
+... MultiFilePanel: File ordering when selecting more than 1 file
 - help (options: Filename pattern, ...)
 - MultiFilePanel specialization: show number of pages, basic info, optional password field, ...
 - make each action panel a separate class? (really helpful for signing and/or more advanced options)
-- interface for cropping even/odd pages diferently
-- preferences: remeber last dir opened (input/output)
+- interface for cropping even/odd pages differently
 
 
 pdfactions/functions: