Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners doc to pdf convertion
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


web
doc to pdf convertion
0 Answer(s)      4 years and 5 months ago
Posted in : Java Beginners


hi ,
I need to convert a .doc file that contains tables,pictures and text to pdf using Itext.
I tried but it convert only texts.
code i tried is
package de.vogella.pdf.write;
import java.io.*;
import java.awt.*;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import java.io.*;
import java.util.zip.*;
public class FirstPdf
{
public static void main(String arg[])throws Exception
{
System.out.println("Hello RoseIndia");
Document document = new Document(PageSize.A4, 36, 72, 108, 180);
PdfWriter.getInstance(document,System.out);
PdfWriter.getInstance(document,new
FileOutputStream("D:/pdfFile.pdf"));
document.open();
ZipInputStream zip = new ZipInputStream(new
BufferedInputStream(new FileInputStream("D://01 Finacle Core Basics.zip")));
ZipEntry entry;
while((entry = zip.getNextEntry()) != null)
{
byte data[]=new byte[1024];
int count;
String text="";
while((count=zip.read(data,0,1024))!=-1)
{
text=new String(data);
document.add(new Paragraph(text));
}
}
document.close();
}
}

If some done any similar please help me

Very urgent ......

Advertisement
View Answers

Related Tutorials/Questions & Answers:
doc to pdf convertion - Java Beginners
doc to pdf convertion  hi , I need to convert a .doc file that contains tables,pictures and text to pdf using Itext. I tried but it convert only texts. code i tried is package de.vogella.pdf.write; import java.io.
openning the pdf or doc file in same jsp
openning the pdf or doc file in same jsp   **how to open the pdf and doc file in same jsp after clicking the link or button (which is with out moving to the next page). will some body help me on this @simple format please
Advertisements
Excel / Doc to PDF conversion using Acrobat9 - Development process
Excel / Doc to PDF conversion using Acrobat9  Hi, I need to convert .xls / .doc files to .pdf files using Acrobat9. Please suggest the possible... and POI library to convert doc file into pdf file. import java.io.*; import
convertion before downloading
convertion before downloading  convert zip file which is in server to doc while before downloading
Convert Text To PDF
Convert Text To PDF       Here we are discussing the convertion of a text file into a pdf file... into the add() method of the document class to generate a pdf file. Download iText API
convertion of string entered in the web interface
convertion of string entered in the web interface  hi i am entering some values in the textbox of web interface.how i can access that values and convert to particular type.in short how to link web interface values with my java
doc file - Java Beginners
doc file   i want to read .doc file ?....it is a part of my project plz help. if possible , can anyone give me the code
Write data in doc file
Write data in doc file  How to write data or string in word file
hex to binary convertion in java - Java Beginners
hex to binary convertion in java  HI, im doin a application wch requires to send a binary message to other mobiles, so i need to convert the hex values to binary format.So the binary format could either be a ringtone
hex to binary convertion in java - Java Beginners
hex to binary convertion in java  HI, im doin a application wch requires to send a binary message to other mobiles, so i need to convert the hex values to binary format.So the binary format could either be a ringtone
hex to binary convertion in java - Java Beginners
hex to binary convertion in java  HI, im doin a application wch requires to send a binary message to other mobiles, so i need to convert the hex values to binary format.So the binary format could either be a ringtone
download pdf files
download pdf files  pls help me,I don't know how to convert .doc,.docx files into pdf files and download that pdf files using servlet or jsp
read doc and docx file in javascript
read doc and docx file in javascript  How i read doc and docx file in javascript
Convesion of txt file to doc file.??????
Convesion of txt file to doc file.??????  how to convert text file to doc file using java
sending doc files - Swing AWT
sending doc files  how to send doc file using java from one machine to other over a network
Reading .doc file using swing
Reading .doc file using swing  Sir, Could U Please Tell me the Way To Read .doc file in java using swing,with code
convert a file .doc to .zip
convert a file .doc to .zip  hiii, I uploaded a file with extension .doc now i required with .zip   Hi Friend, Try the following code: 1)page.jsp: <%@ page language="java" %> <HTml> <HEAD><
PDF to Image
PDF to Image  Java code to convert PDF to Image
serch document from .doc and .docx file
serch document from .doc and .docx file  how to find particular word from .doc and .docx file and that date insert into a data base
Java: Searching a string from doc files
Java: Searching a string from doc files   I want to search a string from DOC, DOCX files in java. Can anyone please help me
pdf generation.
pdf generation.  i want to generate the data which is stored in mysql data base in pdf format with php. how i will do
pdf to text
pdf to text  how to covert pdf file (which contain table and text) into word or excel file using itext api
pdf to database
pdf to database  Hi, I want to read the data from pdf(pdf file is having 50 fields) which is placed in database file and store that into MySQL database. I want this process untill the rows completed in the database file
PDF document
PDF document  hello, How to Open a PDF document on iPhone??   You can use these There's a whole toolkit built in which lets you render PDF pages to a UIView. Check out: CGPDFDocumentCreateWithURL
upload pdf
upload pdf   i want to dispal content of pdf fil and stored into database in human readable form using php . how can i do
how to store/retrieve doc file - Java Beginners
how to store/retrieve doc file  i want to wirte a code that stores/ retrieves .doc files to the mysql database using jsp pages... can anyone help me with the code?  Use this stuff inside your jsp page for store file
PDF Comparator
PDF Comparator  Hi Guys, I need to develop a program which should compare a set of pdf files stored in one folder with a set of pdf files stored in another folder. Both folders should contain the same no. of pdf files with same
Advertisements
 

 

 

DMCA.com