<?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://comments.gmane.org/gmane.comp.java.lib.itext.general/41705"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41701"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41693"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41691"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41687"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41684"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41683"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41681"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41678"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41677"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41670"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41669"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41668"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41667"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41665"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41664"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41662"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41659"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41658"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41657"/>
      </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://comments.gmane.org/gmane.comp.java.lib.itext.general/41705">
    <title>Sporadic Problem with getPageNumber</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41705</link>
    <description>Hi Guys,

Sorry if this posts twice. I tried posting it using Google Chrome about 14 hours
ago and it still hasn't appeared so I'm going to assume it's another bug in
their program.

I've been using iText for years (using the latest version right now) and have
had one problem that's occasionally occured. I finally sat down and tried to
figure the problem out and here's my issue:

I generate a table of contents which is a combination of a few tables. I call
document.getNewPage, then call write.getPageNumber() before I start writing the
TOC and I call it right after. Then I subtract the two and add 1 (as the TOC
could start and end on the same page) to figure out the total number of TOC
pages. The problem is that every once in a while the last table print out very
close to the end of the last page (but does not go over and no extra page is
printed). When this happens writer.getPageNumber() returns the NEXT page number
rather than the current page number the TOC is on.

To test this I also tried getting the end page number, call document.newPage()
and getting the page number again. The times when the numbers come out ok there
will be a difference of one page. When the problem occurs (table is close to end
of the page), I'll get the same page number before and after the
document.newPage() call, both are 1 higher than they should be. This screws up
all my page numbering and my reordering later on as well.

Anyone have any ideas on this? It's been happening since back in the 1.x
versions of iText (this is for Java).

Thanks,
 Dominic - dcmeagle&lt; at &gt;goosemoose.com


-------------------------------------------------------------------------
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>Dominic Maricic</dc:creator>
    <dc:date>2008-12-03T22:16:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41701">
    <title>Problems with getPageNumber</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41701</link>
    <description>Hi Guys,

I've been using iText for years (using the latest version right now) and have 
had one problem that's occasionally occured. I finally sat down and tried to 
figure the problem out and here's my issue:

I generate a table of contents which is a combination of a few tables. I call 
document.getNewPage, then call write.getPageNumber() before I start writing the 
TOC and I call it right after. Then I subtract the two and add 1 (as the TOC 
could start and end on the same page) to figure out the total number of TOC 
pages. The problem is that every once in a while the last table print out very 
close to the end of the last page (but does not go over and no extra page is 
printed). When this happens writer.getPageNumber() returns the NEXT page number 
rather than the current page number the TOC is on.

To test this I also tried getting the end page number, call document.newPage() 
and getting the page number again. The times when the numbers come out ok there 
will be a difference of one page. When the problem occurs (table is close to 
end of the page), I'll get the same page number before and after the 
document.newPage() call, both are 1 higher than they should be. This screws up 
all my page numbering and my reordering later on as well.

Anyone have any ideas on this? It's been happening since back in the 1.x 
versions of iText (this is for Java).

Thanks,
 Dominic - dcmeagle&lt; at &gt;goosemoose.com





-------------------------------------------------------------------------
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>Dominic Maricic</dc:creator>
    <dc:date>2008-12-03T21:50:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41693">
    <title>External digest size</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41693</link>
    <description>Hi all,

I've a problem and i think it's related with the external digest array size. I have had this code working until today:

    tSignatureAppearance.setExternalDigest(new byte[128], new byte[20], "RSA");

I've just tested this with a new certificate (from a new CA, which i think generates bigger keys (4 Kb?)) and it doesn't work; the acrobat reader says the signature is not valid.

I have read in previous posts that the size of the buffer depends on the signature size and the hash. Is there a way i could make the array big enought so i don't have this problem? I have to work with keys of both sizes (2Kb and 4 Kb) and would like to know:

  a) If is there a way i can calculate the size necessary from the certificate.
  b) If i can use a size (lets say 1Kb) for the array so it should work with every certificate, independently of it's size (i don't know if you MUST use a 128 bytes lenght array when singing with a 2 Kb key, o if you CAN use a 128 bytes (or bigger, this must be the minimum) length array.

Regards.

Eneko González Benito.

Este mensaje esta comprobado por Microsoft ForeFront Server Security estando libre de virus.
Analizado mediante motores de CA InoculateIT, CA Vet, Norman Data Defense, Sophos y Kaspersky.

-------------------------------------------------------------------------
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>Eneko González Benito</dc:creator>
    <dc:date>2008-12-03T17:52:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41691">
    <title>Eliminate white space in PdfPTable</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41691</link>
    <description>Hi,

I am using iText for generating PDF documents. I am adding data to a
cell in the table and the data comes from database. When a cell
contains more data that fits the rest of the page, it gets displayed
in the next page and I don't want to have any blank space in between
the pages. I am displaying data using pharse. Is there any property
that displays the text irrespective of size.

Any suggestions/recommendations would be greatly appreciated.

Thanks.

-------------------------------------------------------------------------
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>Swapna Guntu</dc:creator>
    <dc:date>2008-12-03T14:05:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41687">
    <title>iText EPS support</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41687</link>
    <description>Hi All,
Why do iText not more support encapsulated PostScript?

2.1.4 -&gt; com.lowagie.text - Image.java

older V -&gt; oldexamp.objects.images.tiff - EncapsulatedPostScript.java

Thank you!
rumen

-----------------------------------------------------------------
Поръчки на алкохол On Line с безплатна доставка до 48 часа!
http://www.partytime-bg.net/

-------------------------------------------------------------------------
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>rumen varbanov</dc:creator>
    <dc:date>2008-12-03T10:36:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41684">
    <title>Image Path Problem in war</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41684</link>
    <description>
Hi All,

I want to insert one image into one pdf using itext. I used getRealPath() to
get the url of the image and it was working perfectly in windows env. But
when we deployed war file at Unix box its bombing saying that image can't be
found. Then i found out that we cant do getRealPath() in war file. I am
literally stuck up with this problem. Can anyone please help me how to take
the path of an image from war file?

Thanks

Anoop
</description>
    <dc:creator>anoop_pk</dc:creator>
    <dc:date>2008-12-03T07:47:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41683">
    <title>Footer with Page Count and additional Information</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41683</link>
    <description>
I have a footer where on the left side a text like "Project a, Date: and so
on" and on the right side "Page x of y" should be. The problem is, that the
y, the total amount of pages, also prints on the text on the left side of
the footer. I only need it in the page information on the right side.
Maybe someone can help me. The source is 
http://www.nabble.com/file/p20810009/TimeRecordPdfViewEvent.java
TimeRecordPdfViewEvent.java 

</description>
    <dc:creator>geke</dc:creator>
    <dc:date>2008-12-03T10:06:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41681">
    <title>Interesting getPageNumber problem with TOC</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41681</link>
    <description>Hi Guys,

I've been using iText for years (using the latest version right now) and have 
had one problem that's occasionally occured. I finally sat down and tried to 
figure the problem out and here's my issue:

I generate a table of contents which is a combination of a few tables. I call 
document.getNewPage, then call write.getPageNumber() before I start writing the 
TOC and I call it right after. Then I subtract the two and add 1 (as the TOC 
could start and end on the same page) to figure out the total number of TOC 
pages. The problem is that every once in a while the last table print out very 
close to the end of the last page (but does not go over and no extra page is 
printed). When this happens writer.getPageNumber() returns the NEXT page number 
rather than the current page number the TOC is on.

To test this I also tried getting the end page number, call document.newPage() 
and getting the page number again. The times when the numbers come out ok there 
will be a difference of one page. When the problem occurs (table is close to 
end of the page), I'll get the same page number before and after the 
document.newPage() call, both are 1 higher than they should be. This screws up 
all my page numbering and my reordering later on as well.

Anyone have any ideas on this? It's been happening since back in the 1.x 
versions of iText (this is for Java).

Thanks,
 Dominic - dcmeagle&lt; at &gt;goosemoose.com





-------------------------------------------------------------------------
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>Dominic Maricic</dc:creator>
    <dc:date>2008-12-03T09:40:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41678">
    <title>AUTO: Glen Hamel is out of the office (returning12/08/2008)</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41678</link>
    <description>
I am out of the office until 12/08/2008.

I am out of the office on December 3rd through 5th.  If you require
immediate attention, please contact contact the main office and they will
patch you through to Roman or myself.

905-361-7621 x204
Thank You.


Note: This is an automated response to your message  "Re: [iText-questions]
Remove document restrictions" sent on 03/12/2008 2:24:05 AM.

This is the only notification you will receive while this person is away.


-------------------------------------------------------------------------
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>glen.hamel&lt; at &gt;auricnet.ca</dc:creator>
    <dc:date>2008-12-03T09:00:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41677">
    <title>Open a choose file dialog</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41677</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-12-03T08:29:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41670">
    <title>Tagmaps and tables</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41670</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>Carl_Turner&lt; at &gt;ao.uscourts.gov</dc:creator>
    <dc:date>2008-12-02T17:36:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41669">
    <title>Remove document restrictions</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41669</link>
    <description>Hello

i was wondering if i can use itext to remove all the restritions of a 
pdf document (the ones we can see using adobe acrobat, under 
file-&gt;properties-&gt;security)
Those restitions are: printing, copy, extraction, comment, signing, etc

can anyone help me with some code? :)

Thanks!

-------------------------------------------------------------------------
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>Diana Almeida</dc:creator>
    <dc:date>2008-12-02T22:00:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41668">
    <title>Slow performance when encrypting pdf on JDK 1.3</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41668</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>Steve Cole</dc:creator>
    <dc:date>2008-12-02T20:47:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41667">
    <title>Embedding fonts for PDFA in searchable PDF</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41667</link>
    <description>Hi there.

I'm using itextsharp to do exactly what someone else was trying to do a
week ago (just joined, otherwise I'd have answered of course). My code
works fine for "normal" PDF files, that is without trying to create PDF/A
files. It fails as soon as I add the snippets to make it a PDF/A at 
content.SetFontAndSize(font, fontSize);
with a PDFXConformanceException, "All fonts must be embedded".
Yes, sure. Makes sense. But actually I already want to embed the font in
the first place.

I'm pasting a slightly longer snipped for the guys that want to do the
same, marking the possible cause with a huge/caps comment. Again: The code
works as long as I don't try to create a PDF/A compliant PDF (i.e. the
parameter to my method is false).
Thanks in advance for any help!
Ben

private static void ConvertToPDF(RandomAccessFileOrArray sourceFile, string
destinationImageFile, bool searchable, bool pdfAcompliant) {
  // Create the PDF document
  Document document = new Document();
  PdfWriter pdfWriter = PdfWriter.GetInstance(document, new
FileStream(destinationImageFile, FileMode.Create));
  pdfWriter.StrictImageSequence = true;
  pdfWriter.SetFullCompression();
  pdfWriter.SetLinearPageMode();     

  if (pdfAcompliant) {
    pdfWriter.PDFXConformance = PdfWriter.PDFA1B;
  }

  // POSSIBLE CAUSE HERE:
  // This is the font I'm using. It's only used for invisible rendering
anyway
  // The "embedded" parameter is true, but Visual Studio shows me that the
resulting
  // BaseFont instance's "embedded" member is set to false when I debug
this?
  BaseFont font = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI,
pdfAcompliant);
        
  // I do this for multiple pages, leaving the loop out here
  Image pageImage = SomeConversionMethod();

    // Set the size of the next page to the image dimensions
  iTextSharp.text.Rectangle PageRectangle = new
iTextSharp.text.Rectangle(pageImage.Width, pageImage.Height);
  document.SetPageSize(PageRectangle);          

  // Compute the scaling factor for coordinate transformations
  double horizontalScaling = pageImage.ScaledWidth / pageImage.Width;
  double verticalScaling   = pageImage.ScaledHeight / pageImage.Height;

  // Prepare/start the next page in the PDF document
  if (document.IsOpen()) {
    document.NewPage();
  } else {
    document.Open();

    if (pdfAcompliant) {
      // Copied verbatim from the itext mailing list, see:
      // http://article.gmane.org/gmane.comp.java.lib.itext.general/31582/
        
      PdfDictionary outputIntent = new PdfDictionary(PdfName.OUTPUTINTENT);
      outputIntent.Put(PdfName.OUTPUTCONDITIONIDENTIFIER, new
PdfString("sRGB IEC61966-2.1"));
      outputIntent.Put(PdfName.INFO, new PdfString("sRGB IEC61966-2.1"));
      outputIntent.Put(PdfName.S, PdfName.GTS_PDFA1);
      PdfICCBased ib = new
PdfICCBased(ICC_Profile.GetInstance(Properties.Resources.ICC_Profile));
      ib.Remove(PdfName.ALTERNATE);
      outputIntent.Put(PdfName.DESTOUTPUTPROFILE,
pdfWriter.AddToBody(ib).IndirectReference);
      pdfWriter.ExtraCatalog.Put(PdfName.OUTPUTINTENTS, new
PdfArray(outputIntent));
    }
  }

  if (searchable) {                
    // Grab the OCR Data
    SomePageStructure ocrPage = GetPageFromSomewhere();
    if (ocrPage != null) {                
      // Read all words in all lines
      foreach (Line ocrLine in ocrPage.Lines) {
        foreach (Word ocrWord in ocrLine.Words) {                    
          // Calculate the font size for the OCR rectangle bounds
          float fontSize = CalculateFontSize(font, ocrWord.Rectangle.Width
* horizontalScaling, ocrWord.Data);
    
          // Special case: Some characters are non-printable: Continue with
the next word
          if (fontSize &lt; 0.1f) continue;
    
          // Write the text to the PDF, on the layer below the default
content, invisble
          PdfContentByte content = pdfWriter.DirectContentUnder;
          content.BeginText();
          // EXCEPTION BELOW
          content.SetFontAndSize(font, fontSize); // EXCEPTION HERE, font
seems not to be embedded
          // EXCEPTION ABOVE
         
content.SetTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_INVISIBLE);
          content.SetTextMatrix(
            (float)(ocrWord.Rectangle.Location.X * horizontalScaling),
            pageImage.ScaledHeight - (float)(ocrWord.Rectangle.Bottom *
verticalScaling)
          );
          content.ShowText(ocrWord.Data);
          content.EndText();
        }
      }
    }    
  }
                                 
  // Draw/add the image to the PDF page                  
  pageImage.SetAbsolutePosition(0, 0);
  document.Add(pageImage);

  if (pdfAcompliant) pdfWriter.CreateXmpMetadata();
  document.Close();
}

Can anyone help out?


-------------------------------------------------------------------------
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>Benjamin Podszun</dc:creator>
    <dc:date>2008-12-02T17:41:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41665">
    <title>Timestamping verification</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41665</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>Emilio Oca</dc:creator>
    <dc:date>2008-12-02T12:34:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41664">
    <title>Re gading Locking PDF file when created from editing from PdfWriter.</title>
    <link>http://comments.gmane.org/gmane.comp.java.lib.itext.general/41664</link>
    <description>
Hi All ,

 I have a requirement that a pdf document that is generated using Itext ,
Cannot be edited by using PdfWriter. How can i lock the document from
further writing once document had been generated.

Please help.....

</description>
    <dc:creator>abhisheksinha</dc:creator>
    <dc:date>2008-12-02T07:10:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.lib.itext.general/41662">
    <title>Image size in ColumnText</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.java.lib.itext.general/41659">
    <title>epsg entry in gcs dictionary?</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.java.lib.itext.general/41658">
    <title>pdf signature problem on adobe reader 9</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.java.lib.itext.general/41657">
    <title>Regarding IText Support for XSL-FO</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.java.lib.itext.general/41656">
    <title>Row that spans more than 1 page</title>
    <link>http://comments.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>
  <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>
