<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.java.lib.itext.general">
    <title>gmane.comp.java.lib.itext.general</title>
    <link>http://blog.gmane.org/gmane.comp.java.lib.itext.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41662"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41661"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41660"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41659"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41658"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41657"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41656"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41655"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41654"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41653"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41652"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41651"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41650"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41649"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41648"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41647"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41646"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41645"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41643"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41642"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41662">
    <title>Image size in ColumnText</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41662</link>
    <description>
I am using ColumnText.addElement to add an Image object that I have run
scalePercent on. It seems to be ignoring my scaling and making the image the
width of the entire column. Seems like it might have to do with text mode
vs. compsite mode, but I think I'm in composite mode. My code looks like
this, and previous to this code is a call to ct.go(), so there's nothing
else in the column but the image at this point:

   imgGraph.scalePercent(50);
   imgGraph.setAlignment(Image.LEFT);                        
   /*
    * Add chart for simulated render
   */
   ct.addElement(imgGraph);
   /*
   * Start new page if necessary.
   */
   handleOrphans(ct, document, columnTop);

      /*
   * Add chart again, because handleOrphans only simulates 
   * render.
   */
   ct.addElement(imgGraph);
   /*
   * Actual render, handling paging as necessary
   */
   handlePaging(ct, document, columnTop, "Highlight graph");
   

handleOrphans looks like this:
 protected void handleOrphans(ColumnText ct, Document document, 
            float columnTop) throws DocumentException {
        /*
         * Position to render at. Default to position before the render.
         */
        float position = ct.getYLine();
        /*
         * Pretend to render column
         */
        int status = ct.go(true);
        /*
         * If it doesn't all fit...
         */
        if (ColumnText.hasMoreText(status)) {
            /*
             * Clear column contents in case there's content still in there.
             */
            ct.setText(null);
            /*
             * Start new page
             */
            document.newPage();
            /*
             * Set position to top of page
             */
            position = columnTop;
        }

        /*
         * Set position to top of page
         */
        ct.setYLine(position);
    }

and handlePaging looks like this:

    protected void handlePaging(ColumnText ct, Document document, 
            float columnTop, String description) throws DocumentException {
        /*
         * Page count.
         */
        int pageCount = 0;
        /*
         * Max out at 100 pages to prevent an infinite loop.
         */
        final int maxPage = 100;

        /*
         * Render column
         */
        int status = ct.go();
        /*
         * If there's more text, start a new page and continue.
         */
        while (ColumnText.hasMoreText(status) &amp;&amp; pageCount &lt; maxPage) {
            /*
             * Start new page
             */
            document.newPage();
            /*
             * Move column position to top of page
             */
            ct.setYLine(columnTop);
            /*
             * Render again
             */
            status = ct.go();
        }
    }
</description>
    <dc:creator>native.human</dc:creator>
    <dc:date>2008-12-01T21:11:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41661">
    <title>Re: Re garding IText Support for XSL-FO</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41661</link>
    <description>
iText is not a FOP engine. However, it is the library that is used in several
FOP engines, such as the one in RenderX.

---mr. bean


ntimesc wrote:

</description>
    <dc:creator>mister bean</dc:creator>
    <dc:date>2008-12-01T20:04:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41660">
    <title>Re: pdf signature problem on adobe reader 9</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41660</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>Leonard Rosenthol</dc:creator>
    <dc:date>2008-12-01T19:35:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41659">
    <title>epsg entry in gcs dictionary?</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41659</link>
    <description>
hi,

when i choose a wkt string for WGS84 as entry in a geographic coordinat
system dictionary (iso 32000 supplement, p. 51) like this:
dictionaryGCS.put(new PdfName("WKT"),new PdfString("GEOGCS[...]"));
The georeferencing works great!

Instead of using an wkt string I tried to change the entry to an EPSG-code:
dictionaryGCS.put(new PdfName("EPSG"),new PdfNumber("4326")); //EPSG of
wgs84
This doesn't work! I tried also other epsg codes without any success.

Do you have any idea or hints how to put the code for a working PDF?

Thank you, Matthias
</description>
    <dc:creator>Matthias Uhler</dc:creator>
    <dc:date>2008-12-01T16:03:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41658">
    <title>pdf signature problem on adobe reader 9</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41658</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>mustafahalil yildiz</dc:creator>
    <dc:date>2008-12-01T13:16:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41657">
    <title>Regarding IText Support for XSL-FO</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41657</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>Nihar Bhatt</dc:creator>
    <dc:date>2008-12-01T06:47:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41656">
    <title>Row that spans more than 1 page</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41656</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>Sandi Rodrigues</dc:creator>
    <dc:date>2008-12-01T05:13:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41655">
    <title>Re gistering files at point of usage instead of via RegisterDirectories</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41655</link>
    <description>
On systems with many font files, the RegisterDirectories() method can take a
while to run. I'd like to be able to provide a property file that contains
the font family names and the file locations. Then, when the doc refers to a
font, look it up in the property file, get the path to it and register the
font file right then and there.

To create this property file, I recursively go through a list of font
directories. The problem is that iText does not let me access the family
name/font name and location for the files it registers. I can get the font
names via the iterator (p. 274 in the book) or the font family (different
iterator, same page), but I cannot get the font name, family, and file
location from iText, as the needed fields in the source code are private.

Any suggestions on how to create this property file? 

Thanks ahead of time for any help.

---mr. bean
</description>
    <dc:creator>mister bean</dc:creator>
    <dc:date>2008-12-01T01:40:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41654">
    <title>Help needed with setCharAdvance andsuperscript/subscript.</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41654</link>
    <description>Hi all,

What I am trying to do is to print Specific Optical Rotations These are 
written as an alpha character
inside brackets ( [a]) which has BOTH
a) A temperature as a super script (usually 20). Together with
b) A letter (A to F) as a sub-script. (usually D).

I am using Arial font and trying to be system neutral by using 
FontFactory. Normal text is 9 pt, and the sub and super-scripts are 6pt, 
lowered or raised by 4.0f.  So far everything is exactly as expected. I 
am writing the sub-script first, so what appears has the superscript too 
far to the right.

I want to put the superscript above the sub-script, so it belongs to the 
"]".

The code is too big to copy here in its entirety (it is reading a RTF, 
building tables and all sorts). The key parts are I am building a 
paragraph p from a rich text field. I have found both sub and superscript.

Font dummy = FontFactory.getFont("Arial");
BaseFont bf  = dummy.getBaseFont();
String subrun = "D";          // subscript for example (always one letter).
String superrun = "20";      // superscript  for example

int oldwidth = bf.getWidth(ch);       
bf.setCharAdvance(ch, -100);                               
Font subfont =  new Font(bf,6);
Chunk bit = new Chunk(subrun ,subfont);
bit.setTextRise(-4.0f);
p.add(bit);

bf.setCharAdvance(ch,oldwidth);        // see note about this line

subfont =  new Font(bf,6);
bit = new Chunk(superrun ,subfont);
bit.setTextRise(4.0f);
p.add(bit);

p is then added to a cell which is added to a table.  This code may be 
repeated for later cells, or skipped if there is no optical rotation to 
report.

With the line indicated commented out the result is that every D that 
appears in other cells - even those created before this code is 
executed, are over-written by the next character!

With it present as shown the super-script is positioned to the right of 
the sub-script.

I suspect that the setCharAdvance alters the embedded font, so that 
either all "D"s or no "D"s have their Advance altered.

How can I achieve what I want to achieve?

Thanks

Ian



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

</description>
    <dc:creator>Ian Hobson</dc:creator>
    <dc:date>2008-11-30T21:42:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41653">
    <title>Re: Problem to read a field of the pdf filewithautomatism</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41653</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>mustafahalil yildiz</dc:creator>
    <dc:date>2008-11-29T19:54:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41652">
    <title>Re: Which image type is more resource/memoryhungry with iText?</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41652</link>
    <description>Forget "resource hungry" - consider what you are working with.

a JPEG image is for PHOTOGRAPHS (that's what the P in JPEG stands for,  
after al) and should NOT be used for contone images that include text  
or vector data.

PNG is a general purpose image format and as such is much better  
suited for contone images.

Leonard


On Nov 28, 2008, at 6:38 AM, Nawaz Ijaz wrote:



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

</description>
    <dc:creator>Leonard Rosenthol</dc:creator>
    <dc:date>2008-11-28T15:19:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41651">
    <title>Re: Problem to read a field of the pdf file withautomatism</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41651</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>Leonard Rosenthol</dc:creator>
    <dc:date>2008-11-28T15:17:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41650">
    <title>Re: Filled edges not as clear as stroked edges</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41650</link>
    <description>You are seeing anti-aliasing at work...

Nothing you can do short of turning it off in application preferences...

Leonard

On Nov 27, 2008, at 6:29 PM, Carpo wrote:



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

</description>
    <dc:creator>Leonard Rosenthol</dc:creator>
    <dc:date>2008-11-28T15:16:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41649">
    <title>Re: Pre-Populating fields in an XFA form</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41649</link>
    <description>
 
Hi,
I also faced up with same problem and I also did a solution that works at
the end and I want to share it with you..Hope it will be helpfull to
someone..

public static void fillPdf( ) {
try {
 
// take the xml bits
 
byte[] xmlBits =  getBytesFromFile(new File("C:/dfg.xml"));
 

// XML parse
DocumentBuilderFactory builderFactory = DocumentBuilderFactory
.newInstance();
builderFactory.setNamespaceAware(true);
org.w3c.dom.Document doc = builderFactory.newDocumentBuilder() .parse(new
ByteArrayInputStream(xmlBits));

// the result pdf will be in baos
ByteArrayOutputStream baos = new ByteArrayOutputStream();

// take the template
String templatePath =
"C:\\efatura\\sablon\\rekffo012s6100-ru1gfnpz3uwc00-r1ptfl90muhb00-template_subform.pdf";
File template = new File(templatePath);

if (!template.exists()) {
throw new IllegalArgumentException("Verilen PDF şablonu ('"
+ templatePath + "') bulunamadı.");
} else if (!template.canRead()) {
throw new IllegalArgumentException("Verilen PDF şablonu ('"
+ templatePath + "') bulundu ama okunamıyor.");
}

//open the template
PdfReader reader = new PdfReader(templatePath);
 

// is there XFA ?
if (!reader.getAcroFields().getXfa().isXfaPresent()) {
//  if not, you can do smt.
 
}

 
PdfStamper stamper = new PdfStamper(reader, baos);
Node n =  stamper.getAcroFields().getXfa().getDatasetsNode();
Xml2SomDatasets som = new Xml2SomDatasets(n); 
XfaForm.Xml2SomDatasets data = new
XfaForm.Xml2SomDatasets(doc.getFirstChild());
 
  
for (Iterator it = data.getOrder().iterator(); it.hasNext();) {
/*here maps the xml to fields 
                                        my xml file is like this:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"&gt;
&lt;xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"&gt;
&lt;xfa:data&gt; 
&lt;form1&gt;
&lt;TABLO&gt;
&lt;SATIR&gt;
&lt;D&gt;D&lt;/D&gt;
A 
&lt;C&gt;C&lt;/C&gt;
B
&lt;/SATIR&gt;
&lt;SATIR&gt;
&lt;D&gt;DD&lt;/D&gt;
AA 
&lt;C&gt;CC&lt;/C&gt;
BB
&lt;/SATIR&gt;
&lt;SATIR&gt;
&lt;D&gt;DDD&lt;/D&gt;
AAA 
&lt;C&gt;CCC&lt;/C&gt;
BBB
&lt;/SATIR&gt;
&lt;SATIR&gt;
&lt;D&gt;DDDD&lt;/D&gt;
AAAA 
&lt;C&gt;CCCC&lt;/C&gt;
BBBB
&lt;/SATIR&gt;
&lt;SATIR&gt;
&lt;D&gt;DDDDD&lt;/D&gt;
AAAAA 
&lt;C&gt;CCCCC&lt;/C&gt;
BBBBB
&lt;/SATIR&gt;
&lt;SATIR&gt;
&lt;D&gt;DDDDDD&lt;/D&gt;
AAAAAA 
&lt;C&gt;CCCCCC&lt;/C&gt;
BBBBBB
&lt;/SATIR&gt;
&lt;/TABLO&gt;
&lt;isim&gt;CYBERSOFT LTD STI&lt;/isim&gt;
&lt;adres&gt;ADRES&lt;/adres&gt;
&lt;/form1&gt;
&lt;/xfa:data&gt;
&lt;/xfa:datasets&gt;
&lt;/xdp:xdp&gt;

  node = data[0].xdp[0].TABLO[0].SATIR[5].D[0]
name = datasets[0].data[0].form1[0].TABLO[0].SATIR[0].D[0]
 * */
     String name = (String)it.next(); // in the name there is a value
like: datasets[0].data[0].form1[0].TABLO[0].SATIR[0].D[0]

     String text = XfaForm.getNodeText((
Node)data.getName2Node().get(name)); 
     String name2 = name.substring(name.indexOf("form1")+9);
     //in the name2 there is a value like: TABLO[0].SATIR[0].D[0]
     
     Set&lt;HashMap&gt;  map=  som.getName2Node().keySet();
     for (Iterator it2 =  map.iterator(); it2.hasNext();) {
     String str=it2.next().toString();
     if( str.contains(name2)){//here puts the value to the related field
    //Node n1 =  
(Node)som.getName2Node().get("data[0].xdp[0].TABLO[0].SATIR[x].D[y]");
     Node n1 =   (Node)som.getName2Node().get(str );
     n1.setNodeValue(text);
 stamper.getAcroFields().getXfa().setNodeText(n1,text);
     }
     } 
}

stamper.getAcroFields().getXfa().setChanged(true);
stamper.getAcroFields().getXfa().setDatasetsSom( som );

XfaForm.setXfa(stamper.getAcroFields().getXfa(),stamper.getReader(),stamper.getWriter());
stamper.getAcroFields().mergeXfaData(doc);
stamper.close();
reader.close();
 
try {//lets look at what happened in here
FileOutputStream fos; 
fos = new FileOutputStream(new File("C:/dfg.pdf")); 
fos.write(baos.toByteArray() );
fos.flush();
fos.close();
} catch ( Exception e) { 
e.printStackTrace();
}  

} catch (Throwable ex) {
Logger.getLogger(XmlFormArchitectureServer.class.getName()).log(
Level.SEVERE, null, ex);
}
}
 
public static byte[] getBytesFromFile(File file) throws IOException {
        InputStream is = new FileInputStream(file);
    
        // Get the size of the file
        long length = file.length();
    
        if (length &gt; Integer.MAX_VALUE) {
            // File is too large
        }
    
        // Create the byte array to hold the data
        byte[] bytes = new byte[(int)length];
    
        // Read in the bytes
        int offset = 0;
        int numRead = 0;
        while (offset &lt; bytes.length
               &amp;&amp; (numRead=is.read(bytes, offset, bytes.length-offset)) &gt;=
0) {
            offset += numRead;
        }
    
        // Ensure all the bytes have been read in
        if (offset &lt; bytes.length) {
            throw new IOException("Could not completely read file
"+file.getName());
        }
    
        // Close the input stream and return bytes
        is.close();
        return bytes;
    }
</description>
    <dc:creator>halil</dc:creator>
    <dc:date>2008-11-28T12:48:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41648">
    <title>(no subject)</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41648</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>halil</dc:creator>
    <dc:date>2008-11-28T13:02:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41647">
    <title>Which image type is more resource/memory hungry with iText?</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41647</link>
    <description>
Hi All, I've following two queries for you.

1. In your opinion which image type is more resource/memory hungry. PNG or
JPG?
2. I shall be rendering large images on PDF via iText. so what image type
would you suggest me in this case?

/ Nawaz Ijaz
</description>
    <dc:creator>Nawaz Ijaz</dc:creator>
    <dc:date>2008-11-28T11:38:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41646">
    <title>Problem to read a field of the pdf file withautomatism</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41646</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>Giovanni Virdis</dc:creator>
    <dc:date>2008-11-28T10:52:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41645">
    <title>Filled edges not as clear as stroked edges</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41645</link>
    <description>
Hi,

I've created a function that draws a border around a rectangle. Each border
of the rectangle can have border styles similar to css border styles
(Dotted, dashed, grooved, ridged etc) as well as different colors and
widths. Because of this, my function draws each border side of the rectangle
separately (top, then right etc ...), either as a solid filled rectangle, or
as a pattern filled rectangle (for dotted, ridged etc).

The problem I have is that the edges of a solid shape don't look as crisp in
the acrobat viewer as a standard stroked rectangle. I've tried a few
viewers, and they all look a little blurred. Standard stroked rectangles
have a crisp, clean edge in the viewers ... but I can't get that same look.

However, when printed it looks fine. Also, if zoomed to about 300% it looks
fine in the viewer.

I guess i was wondering if there is a setting that may help make the edges
of a filled shape look crisper, or if anyone has any ideas on why this is
happening? Any help would be great.
 


</description>
    <dc:creator>Carpo</dc:creator>
    <dc:date>2008-11-27T23:29:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41643">
    <title>Re: how to construct a geospatial measure dictionary?</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41643</link>
    <description>


Matthias Uhler wrote:

I solved my problem with a WKT String...

here is the sourcecode and my sample file: 
http://www.nabble.com/file/p20720859/test.pdf test.pdf 

                        PdfWriter writer = PdfWriter.getInstance(document,
new FileOutputStream("test.pdf"));
writer.setPdfVersion(PdfWriter.VERSION_1_7);
document.open();

PdfDictionary dicMeasure = new PdfDictionary(new PdfName("Measure"));
dicMeasure.put(PdfName.SUBTYPE,new PdfName("GEO"));

PdfArray bounds = new PdfArray();
bounds.add(new float[]{0.0f,0.0f,0.0f,1.0f,1.0f,1.0f,1.0f,0.0f});

PdfArray pdu = new PdfArray();
pdu.add(new PdfName("KM"));
pdu.add(new PdfName("SQKM"));
pdu.add(new PdfName("GRD"));

PdfArray lpts = new PdfArray();
                        //ll x,y; ur x,y
lpts.add(new float[]{0.0f,1.0f,1.0f,0.0f}); 
PdfArray gpts = new PdfArray();
                        //ll latitude, longitude; ur latitude longitude
gpts.add(new float[]{20.0f,20.0f,40.0f,40.0f}); 


dicMeasure.put(new PdfName("Bounds"),bounds);
dicMeasure.put(new PdfName("PDU"),pdu);
dicMeasure.put(new PdfName("LPTS"),lpts);
dicMeasure.put(new PdfName("GPTS"),gpts);

PdfDictionary dicGCS = new PdfDictionary(new PdfName("GEOGCS"));
dicGCS.put(new PdfName("WKT"),new 
PdfString("GEOGCS[\"GCS_North_American_1983\",DATUM[\"D_North_American_1983\",SPHEROID[\"GRS_1980\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]]"));

PdfIndirectObject indObjGCS = writer.addToBody(dicGCS);
PdfIndirectReference indRefGCS = indObjGCS.getIndirectReference();

dicMeasure.put(new PdfName("GCS"),indRefGCS);
dicMeasure.put(new PdfName("DCS"),indRefGCS);

writer.addToBody(dicMeasure);

PdfContentByte cb = writer.getDirectContent();

cb.setColorFill(Color.gray);

cb.rectangle(20,20,document.getPageSize().getWidth()-40,document.getPageSize().getHeight()-40);
cb.fill();
document.close();

This file also works in the Adobe Reader 9 but the measurment tool isn't
available.
Do you have any idea how to enable the measurment tool?

</description>
    <dc:creator>Matthias Uhler</dc:creator>
    <dc:date>2008-11-27T15:14:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41642">
    <title>Re: Signatures with SHA256</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41642</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>Simon Jefferies</dc:creator>
    <dc:date>2008-11-27T13:10:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41641">
    <title>Re: electronic signature</title>
    <link>http://permalink.gmane.org/gmane.comp.java.lib.itext.general/41641</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
iText-questions mailing list
iText-questions&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php</description>
    <dc:creator>Alexis Pigeon</dc:creator>
    <dc:date>2008-11-27T12:03:09</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.java.lib.itext.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.java.lib.itext.general</link>
  </textinput>
</rdf:RDF>
