Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Create PDF FILE using java and netbeans ide and iText

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,651
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 1, 2011

Create PDF FILE using java and netbeans ide and iText
this is the code you should copy
/*******************************************************************************­***/
import com.itextpdf.text.Document;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
import java.io.*;

/**
*
* @author Administrateur
*/
public class Main { public static void main(String arg[])throws Exception { Document document=new Document(); PdfWriter.getInstance(document,new FileOutputStream("hello.pdf")); document.open(); document.add(new Paragraph("Hello world this is my first PDF")); document.close(); }
}
/*******************************************************************************­***/

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (rifinio88)

  • thank for you and always you will be success in your life

  • @coolboy6604 thnk you ... for you too man ;)

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Hello! nice video!

    I was wondering how could you program a Button in order to View the PDF file ...

    :) thanx

  • Great!

    also, the song y amazing!

    whose?

  • Is there a way to save it to a specific location?

  • I'm new to Java, iText and NetBeans and needed a quick primer to get going. Your no-frills tutorial was perfect. Thanks so much.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more