Hello I have some problems after creation of a pdf with PdfFormField-elements because some text�s will be wrong displayed with some fonts eg. Arial Black. Normally all textes at the acrobat form field are centered (vertical alignment) as default but with iText some font information�s will be wrong. So my text is on the bottom of the form field (auto resize or big fonts like 100). After resetting the font at Adobe Acrobat directly it works fine. For tests I have also changed the pdf-file directly and after setting the DESCENT value from the font from 211 to -307 it has been displayed correctly. Any ideas? Could the Basefont-class have any problems?? Hope a solution can be found.
(pdf-file information at end of the email) Regards klaus => generated pdf => works after changing the Descent-value from 211 to -307 => =================================================== START: works NOT =================================================== << /Subtype /TrueType /BaseFont /Arial-Black /Encoding /WinAnsiEncoding /Type /Font /FirstChar 32 /LastChar 255 /FontDescriptor 8 0 R /Widths [333 333 500 660 666 1000 889 277 389 389 556 660 333 333 333 277 666 666 666 666 666 666 666 666 666 666 333 333 660 660 660 610 740 777 777 777 777 722 666 833 833 389 666 833 666 943 833 833 722 833 777 722 722 833 777 1000 777 777 722 389 277 389 660 500 333 666 666 666 666 666 389 666 666 333 333 666 333 1000 666 666 666 666 443 610 443 666 610 943 666 610 556 389 277 389 660 0 666 0 277 666 500 1000 666 666 333 1000 722 333 1000 0 722 0 0 277 277 500 500 500 500 1000 333 950 610 333 1000 0 556 777 333 333 666 666 660 666 277 666 333 799 399 666 660 333 799 500 399 660 399 399 333 666 850 333 333 399 399 666 1000 1000 1000 610 777 777 777 777 777 777 1000 777 722 722 722 722 389 389 389 389 777 833 833 833 833 833 833 660 833 833 833 833 833 777 722 666 666 666 666 666 666 666 1000 666 666 666 666 666 333 333 333 333 666 666 666 666 666 666 666 660 666 666 666 666 666 610 666 610] >> 8 0 obj <</FontName /Arial-Black /ItalicAngle 0 /StemV 80 /Descent 211 /Ascent 715 /Flags 32 /CapHeight 699 /FontBBox [-193 -306 1687 1083] /Type /FontDescriptor >> =================================================== END: works NOT =================================================== => after selecting the font at adobe acrobat =================================================== START: works =================================================== 18 0 obj << /Type /Font /BaseFont /ArialBlack /Subtype /TrueType /Encoding /WinAnsiEncoding /FontDescriptor 19 0 R /Widths [ 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 333 333 500 660 667 1000 889 278 389 389 556 660 333 333 333 278 667 667 667 667 667 667 667 667 667 667 333 333 660 660 660 611 740 778 778 778 778 722 667 833 833 389 667 833 667 944 833 833 722 833 778 722 722 833 778 1000 778 778 722 389 278 389 660 500 333 667 667 667 667 667 389 667 667 333 333 667 333 1000 667 667 667 667 444 611 444 667 611 944 667 611 556 389 278 389 660 500 667 500 278 667 500 1000 667 667 333 1000 722 333 1000 500 722 500 500 278 278 500 500 500 500 1000 333 950 611 333 1000 500 556 778 333 333 667 667 660 667 278 667 333 800 400 667 660 333 800 500 400 660 400 400 333 667 850 333 333 400 400 667 1000 1000 1000 611 778 778 778 778 778 778 1000 778 722 722 722 722 389 389 389 389 778 833 833 833 833 833 833 660 833 833 833 833 833 778 722 667 667 667 667 667 667 667 1000 667 667 667 667 667 333 333 333 333 667 667 667 667 667 667 667 660 667 667 667 667 667 611 667 611 ] /FirstChar 0 /LastChar 255 /Name /ArialBlack >> endobj endobj 19 0 obj << /Type /FontDescriptor /Ascent 1083 /CapHeight 716 /Descent -307 /Flags 32 /FontBBox [ -194 -307 1688 1083 ] /FontName /ArialBlack /ItalicAngle 0 /StemV 220 /XHeight 519 /FontFile2 20 0 R >> endobj =================================================== END: works =================================================== -- +++ NEU bei GMX und erstmalig in Deutschland: T�V-gepr�fter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
