How to read content from word document and form a PDF?

View: New views
3 Messages — Rating Filter:   Alert me  

How to read content from word document and form a PDF?

by gpan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI All,
I have 10 pages word document, i want to convert it into Pdf documents, that word document contains many paragraphs, So i don't know how to create a pdf  document. Do i need to copy the whole content and put it in string and add it to the paragraph object??.

how to do this??

is there is any way i can read the word document, and form a PDF using itext or i need to copy the content..??




Re: How to read content from word document and form a PDF?

by wasegraves :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-------------- Original message ----------------------
From: gpan <kool_budde@...>
>
>
> HI All,

Hi, gpan. Please keep in mind that yo're addressing your query to thousands of people. Surely, you don't expect, or want, a reply from all of them. ;-)

> I have 10 pages word document, i want to convert it into Pdf documents, that
> word document contains many paragraphs, So i don't know how to create a pdf
> document. Do i need to copy the whole content and put it in string and add
> it to the paragraph object??.
>

IMO, a good approach for yo would be to go to www.pdfill.com, and download and install their free PDF writer. After yo've learned to use a printer-driver-based PDF converter, you can decide if you want to pursue generation of PDFs with iText.

> how to do this??
>

JUst print to a printer-driver-based PDF converter. Another example is CutePDF. Of course, your best choice would be to use the PDF writer that you'd get with Adobe Acrobat. If you can't afford Acrobat, you could use OpenOffice Writer, whcih can convert, open, and print your MSWord document to PDF.

> is there is any way i can read the word document, and form a PDF using itext
> or i need to copy the content..??

Of course there is. With iText, you could write a nice little command-line program that would convert a plain text stream into an iText-generated PDF. This would be a nice little learning exercise for you.

Best regards,
Bill Segraves

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Parent Message unknown Re: How to read content from word document and form a PDF?

by Howard Shank :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry for the short answer, but I have to go to a meeting at the moment.

iText does not import Word documents. It can however work with RTF files.
There is an RtfWriter2 object that can read and write RTF formatted files. Not all RTF features are implemented.

There is the beginnings of a conversion function in the new parser. There is also import functionality.

Look at the import and convert functions of the RtfWriter2 object.

Howard Shank

----- Original Message ----
From: gpan <kool_budde@...>
To: itext-questions@...
Sent: Friday, May 16, 2008 10:18:09 AM
Subject: [iText-questions] How to read content from word document and form a PDF?


HI All,
I have 10 pages word document, i want to convert it into Pdf documents, that
word document contains many paragraphs, So i don't know how to create a pdf
document. Do i need to copy the whole content and put it in string and add
it to the paragraph object??.

how to do this??

is there is any way i can read the word document, and form a PDF using itext
or i need to copy the content..??




--
View this message in context: http://www.nabble.com/How-to-read-content-from-word-document-and-form-a-PDF--tp17275828p17275828.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar



     


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar
LightInTheBox - Buy quality products at wholesale price