The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

tringuyen (1) [Avatar] Offline
Hi everybody,

I converted output of jsp to pdf. But I have faced following problem:
- Font displays in pdf file is Times New Romna. I need Arial font.
- Alignment in all columns of table in pdf are left. I need one of those columns is right (data about quantity of items) as in result html of jsp.

Thank you very much for your help.
blowagie (284) [Avatar] Offline
Re: font and alignment in converting output of jsp to pdf
I have a driver's permission, but when I try driving my car, it doesn't work.
What am I doing wrong?

You can't answer that question because:
(1) I'm asking it on the wrong forum, and
(2) I'm not giving you sufficient information.

Please post this question on the iText mailing list AND specify.
Because Helvetica is the default font, so if Times Roman is shown,
you're definitely having a reference to Times Roman somewhere.

Moreover 'output of jsp' can be anything: it can be PDF, it can be HTML,
it can be plain text. I assume it's HTML (but then why don't you say so???),
but I can't guess how you are converting it to PDF:
Using Flying Saucer and iText? Using HtmlParser? Using HTMLWorker?

This is a typical "How deep is blue?" question.
blowagie (284) [Avatar] Offline
Re: font and alignment in converting output of jsp to pdf
"Hi everybody"

BTW: I am the only person answering questions on this forum.
PLEASE TAKE MY ADVICE and post questions to the mailing list,
where there are plenty of other people answering questions too.