(Created page with ''''stampit''' is a perl script to stamp pdf files after their name. = History = * {{subst:today}}: v°0.1 - quick hack = Requirements = * pdftk = Usage = * You need a […')
 
Line 1: Line 1:
 +
= Stampit =
 +
 
'''stampit''' is a [[perl]] script to stamp pdf files after their name.
 
'''stampit''' is a [[perl]] script to stamp pdf files after their name.
  
= History =
+
== History ==
  
 
* [[18 January|18]], [[January (2010)|January]] [[2010|(2010)]]: v°0.1 - quick hack
 
* [[18 January|18]], [[January (2010)|January]] [[2010|(2010)]]: v°0.1 - quick hack
  
= Requirements =
+
== Requirements ==
  
 
* pdftk
 
* pdftk
  
= Usage =
+
== Usage ==
  
 
* You need a [[svg]] file called ''stamp.svg'' which is the template to stamp the files. It can contain anything you want but also a line of text with some content such as, e.g., ''xxx-poster.pdf'', which will be replaced by the name of the file itself (the stamp). This must be fixed by hand in the source:
 
* You need a [[svg]] file called ''stamp.svg'' which is the template to stamp the files. It can contain anything you want but also a line of text with some content such as, e.g., ''xxx-poster.pdf'', which will be replaced by the name of the file itself (the stamp). This must be fixed by hand in the source:
Line 24: Line 26:
 
<pre>./stampit</pre>
 
<pre>./stampit</pre>
  
= Download =
+
== Download ==
  
 
* [[Media:stampit-v0.1.tar.gz|stampit-v0.1.tar.gz]]
 
* [[Media:stampit-v0.1.tar.gz|stampit-v0.1.tar.gz]]
  
 
[[Category:perl]]
 
[[Category:perl]]

Revision as of 11:35, 3 August 2011

Contents

Stampit

stampit is a perl script to stamp pdf files after their name.

History

Requirements

  • pdftk

Usage

  • You need a svg file called stamp.svg which is the template to stamp the files. It can contain anything you want but also a line of text with some content such as, e.g., xxx-poster.pdf, which will be replaced by the name of the file itself (the stamp). This must be fixed by hand in the source:
$line =~ s/xxx-poster.pdf/$file/;
  • Also the filter of which files to stamp should be set manually in the source, e.g.:
@files = <*-poster.pdf>;
  • Create a directory stamped, the destination for the stamped files.
  • Then just run the script:
./stampit

Download