Tekchandan.patel wrote:

Hi
  I saw the site http://www.lowagie.com/iText/itext.jnlp and try it.
But the format is changing .

Please be more specific.

What is the original format? Is it a plain ASCII file?
If not, you need some other tool.

Are you using a monospaced font?
If not, you don't really have a formatted ASCII file.
Use another tool.

How is it formatted?
If using tabs, you need to replace the tabs by spaces,
because iText doesn't know about tabs (there's no way
for iText to know how much space a tab should take).

Is it formatted using spaces, than you should be able
to keep the formatting, but you will probably have to
do some math.

How many characters per line does your formatting have?
What font-size do you want. Depending on the font-size,
calculate the width of each character. Multiply this width
with the number of characters per line and add some
space for the margins. The result will be the width of the
page you have to construct.

it's elementary,
Bruno


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to