Showing posts with label PDF. Show all posts
Showing posts with label PDF. Show all posts
Friday, 22 February 2013
Sunday, 17 February 2013
Android Development Book
The Android Developers Collection - James Steele Nelson
http://dl.jaytee.in/Ebooks/android/%5bJames_Steele,_Nelson_To%5d_The_Android_Developer%27s_(BookFi.org).pdf
http://dl.jaytee.in/Ebooks/android/%5bJames_Steele,_Nelson_To%5d_The_Android_Developer%27s_(BookFi.org).pdf
Data Communication & Networking Ebooks PDF Download
--------------------------------------------------------
Understanding Data Communications
Gilbert Held
--------------------------------------------------------
Data and Computer Communications
William Stallings
Download Now
--------------------------------------------------------
Labels:
data communication,
Download,
Ebook,
forouzan,
networking,
PDF
Wednesday, 6 February 2013
Writing to a PDF file from JAVA
Use iText JAR for this
package ....
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.Date;
import com.itextpdf.text.Document;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
public class GeneratePDF {
public static void main(String[] args) {
try {
OutputStream file = new FileOutputStream(new File("D:\\Test.pdf"));
Document document = new Document();
PdfWriter.getInstance(document, file);
document.open();
document.add(new Paragraph("Hello World, iText"));
document.add(new Paragraph(new Date().toString()));
document.close();
file.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
This link is important:
http://tutorials.jenkov.com/java-itext/table.html#width
package ....
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.Date;
import com.itextpdf.text.Document;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
public class GeneratePDF {
public static void main(String[] args) {
try {
OutputStream file = new FileOutputStream(new File("D:\\Test.pdf"));
Document document = new Document();
PdfWriter.getInstance(document, file);
document.open();
document.add(new Paragraph("Hello World, iText"));
document.add(new Paragraph(new Date().toString()));
document.close();
file.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
This link is important:
http://tutorials.jenkov.com/java-itext/table.html#width
Subscribe to:
Posts (Atom)


