Code Monkey home page Code Monkey logo

stamper's Introduction

stamper

Java itext stamper

#Java code to stamp text in a pdf (manipulate) using the famous itext PdfStamper

  • First. Tested in eclipse indigo
  • Second. I'm based on this tutorial http://www.vogella.com/articles/JavaPDF/article.html
  • Third. Just download the itextpdf-5.4.2.jar from http://itextpdf.com/ and the tarball http://itextpdf.com/examples/ with the book examples (see Resources below).
  • Fourth. Create the project whatever the name you want
  • Fifth. Add the itextpdf-5.4.2.jar to the proyect http://www.vogella.com/articles/Eclipse/article.html#classpath
  • Sixth. Add the Stamptext.java (I worked under the book examples packages - package part2.chapter06;). The book examples also contains a Stamptext.java, my version is a little bit different from original. Just clone this git inside chapter06.
  • Seventh. Get some pdfs from everywhere. myPdfSheets.pdf is the pdf whit various sheets which you are interested in. leyend.pdf is the text that you want to stamp, check the absolute position. Finally myPdfSheets_stamped.pdf is the result.

#Resources

Go to the library and get a copy from "itext in Action, Second Edition" - BRUNO LOWAGIE (Page 173 - https://itextpdf.com/sites/default/files/attachments/PR%20-%20iText%20in%20Action%20-%20Second%20edition%20e-book_0.pdf)

stamper's People

Contributors

web20opensource avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.