Conta Matteo wrote:

Hi, I’m using the tagmap functionallity in itextsharp 3.1.0 and I’ve found what seems a little bug:

Using tagmap I cannot use different font family in the same document, I correct this modifyng one line in the file

itextsharp-3.1.0\iTextSharp\text\xml\ITextHandler.cs line 577

currentChunk = new Chunk(tmp, new Font(this.bf));

with

currentChunk = new Chunk(tmp);

The problem is that during the parse of the xml file in the ParserBase fthe text contained in paragraph is created with a chunk that has the default font (Helvetica).

I understand the problem, but just applying your fix would break other applications.
I'll try to solve this problem so that it works for everyone.

Here is a fragment of my tagmap file

<tagmap>

<tag name="itext" alias="PAGE" />

<tag name="paragraph" alias="TITLE1">

<attribute name="size" value="24" />

<attribute name="leading" value="11" />

<attribute name="align" value="Center" />

<attribute name="style" value="normal" />

<attribute name="font" value="Symbol"/>

</tag>

And my xml file:

<?xml version="1.0" encoding="utf-8" ?>

<PAGE title="test s6tstststts" author="pippo" keywords="gwygqygqyg wygyg wygwygw ygwqygwqygw">

<BR/>

<TITLE1>

my text

</TITLE1>

</PAGE>

The result is tha the Symbol Font isn’t visible on the resulting PDF.

I hope it’s useful,

Matteo Conta

Italy




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to