Paulo Soares wrote:
>
>
>> -----Original Message-----
>> From: Jon [SMTP:[EMAIL PROTECTED]
>> Sent: Thursday, October 16, 2003 15:03
>> To: [EMAIL PROTECTED]
>> Subject: [iText-questions] xml to pdf: two simples problems
>>
>> Hello,
>>
>> I use the xml way to create my pdf.
>> Despite several tries, I can't solve two simples problems:
>>
>> 1) Justifying parapraphs
>>
>> This doesn't work for me:
>>
>> <paragraph align="Justify">
>> blah blah
>> </paragraph>
>>
>>
>> The paragraph is not justified....
>> But if I put the paragraph inside a chapter, then it works....
>>
>> <chapter>
>> <paragraph align="Justify">
>> blah blah
>> </paragraph>
>> </chapter>
>>
>> But I don't want to create chapters, since I only want to create a
>> letter...
>> Any idea ?
>>
> Is the paragraph long enough to wrap the line see the justification?
Yes, it is.
The funny thing is that if I put my paragraph into a chapter, the
justification works fine...
>> 2) Embedding fonts
>>
>> I use FontFactory.register("/var/www/fonts/charter/TT0648M_.TTF") in my
>> Java
>> program to register a font, and I use
>>
>> <paragraph font="Charter">
>> blah blah
>> </paragraph>
>>
>> in the xml file to use that font. It seems to work, but how can I force
>> the
>> font to be embedded in the pdf ?
>>
> embedded="true" and you might also want to know about encoding="..."
Do you mean <paragraph font="Charter" embedded="true" encoding="..."> ?
I tried <paragraph font="Charter" embedded="true"> but it didn't work...
Thanks for your help.
Best regards.
Jon
> Best Regards,
> Paulo Soares
>
>> Any help would be appreciated !
>>
>>
>> Jon
>>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions