Archive for the 'iText' Category

iText 5.0.0 need java 5 and under AGPL

iText 5.0.0 released on December 7, 2009, and I noticed it has some big changes need you to pay attention to,

  • Changed the license from MPL/LGPL to AGPL
  • iText.jar is now compiled with Java 5
  • Changed the package names from com.lowagie to com.itextpdf
Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

Convert RTF to PDF with Open Source library iText

Version 2.1 of iText has partial support for reading an RTF file and converting it to a PDF. This feature is still under development.

and here is the example on how to parser and convert RTF to PDF(from http://cfsearching.blogspot.com/2009/04/itext-preview-of-things-to-come-someday.html)

import com.lowagie.text.Document;

import com.lowagie.text.DocumentException;

import com.lowagie.text.pdf.PdfWriter;

import com.lowagie.text.rtf.parser.RtfParser;

import java.io.FileInputStream;

import java.io.FileNotFoundException;

import java.io.FileOutputStream;

import java.io.IOException;

public class ConvertRTFToPDF {


public static void main(String[] args) {

 String inputFile = "sample.rtf";

 String outputFile = "sample_converted.pdf";

 // create a new document

 Document document = new Document();

 try {

     // create a PDF writer to save the new document to disk

     PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(outputFile));

     // open the document for modifications

     document.open();

     // create a new parser to load the RTF file

     RtfParser parser = new RtfParser(null);

     // read the rtf file into a compatible document

     parser.convertRtfDocument(new FileInputStream(inputFile), document);

     // save the pdf to disk

     document.close();

     System.out.println("Finished");

 } catch (DocumentException e) {

     e.printStackTrace();

 } catch (FileNotFoundException e) {

     e.printStackTrace();

 } catch (IOException e) {

     e.printStackTrace();

 }

}

}

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

Digital Signature PDF Documents With Free Software

A digital signature is like a paper-based signature – each giving you a method for adding a unique identifier to a document. Both provide you with an easy way to show a person signed a particular document at a particular time, but a digital signature goes further as it can ensure that the document content has not been tampered with after it was signed. In addition, the document version history can let recipients see when a document was signed and see when any changes were made to it. This revision history is encrypted and stored inside the PDF and can be viewed at anytime via the Signatures pane.

To digitally sign a PDF document, you must have a digital ID, and to verify other people’s signatures, you must first share your digital IDs and add each other to your Trusted Contacts list.

Most Digital Signature software are not free, but I will introduce you some free software developed in JAVA and DOTNET with the power of iText and iTextSharp.

Want to develop your own? please visit How to sign a PDF using iText and iTextSharp.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride