Re: [iText-questions] tabs

2010-10-28 Thread 1T3XT info
On 28/10/2010 19:33, Michael Lai wrote: > I reread chapter 2 as you suggested and I don't see anything about tabs. > The closet thing I see is paragraph indentation but that's not what I > want. I tried appending "\t" to my chunk that that doesn't work either. > Thought it would work similar to "\n

Re: [iText-questions] Annotations non-acrobat renderers (linux)

2010-10-28 Thread Mark Storer
Can you share "before" and "after" PDFs? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; From: Fabiano Nunes [mailto:fabi...@nunes.me] Sent: Thursday, October 28, 2010 7:16 AM

Re: [iText-questions] Finding Fonts

2010-10-28 Thread Mark Storer
You can find out what fonts your Factory knows about by calling FontFactory.getRegisteredFonts(). BTW, HTMLWorker (via FactoryProperties.getFont) uses a case-insensitive test, so no worries on that front. At any rate, if the font is in the list, and not appearing in your output, then HTMLWorker

Re: [iText-questions] Signature is invalid for pdf

2010-10-28 Thread mkl
Alexander, Raitskin Alexander wrote: > Error during signature verification. > > Unexpected byte range values defining scope of signed data. > Details: The signature byte range is invalid > > What is wrong with this file? > > http://www.darina.us/code/peles1.pdf The /ByteRange values correct

[iText-questions] Finding Fonts

2010-10-28 Thread Rod Hall
Silly question I'm sure, but I've read through ch.11 a couple times and still not sure how to do it. I am using HTMLWorker.parseToList, sending it the following string: This is Comic Sans font My text does not show us as comic sans. I added the following to my code, but no luck. FontFactory.reg

Re: [iText-questions] HTML background-color

2010-10-28 Thread Rod Hall
Thanks Mark! I use TinyMCE to allow users to enter/format text, and it then automatically creates the html. TinyMCE embeds all the formatting into the style parameter, but I can do a find/replace to add BACKGROUNDCOLOR as well before sending to the parser. :) On Thu, Oct 28, 2010 at 12:31 PM, M

Re: [iText-questions] tabs

2010-10-28 Thread Michael Lai
I reread chapter 2 as you suggested and I don't see anything about tabs.  The closet thing I see is paragraph indentation but that's not what I want.  I tried appending "\t" to my chunk that that doesn't work either.  Thought it would work similar to "\n" or Chunk.Newlin

Re: [iText-questions] HTML background-color

2010-10-28 Thread Mark Storer
HTMLWorker's style support is spotty. Poking around in the source a bit, I see Markup.CSS_KEY_BGCOLOR = "background-color", but it's never used... Ah! ElementTags.BACKGROUNDCOLOR = "bgcolor". And it's actually checked when creating a new Chunk. I haven't actually tried it, but you should be a

Re: [iText-questions] Upgrading to iText 2.1.7 and newPage

2010-10-28 Thread Mark Storer
A page with no content can be considered "not empty" for at least two reasons: 1) Someone set the page "not empty" directly by calling myPdfDocument.setPageEmpty(false). 2) In PDF, there can be annotations (links, fields, etc) on the page that 'float above' the page content. --Mark Storer Sen

[iText-questions] Signature is invalid for pdf

2010-10-28 Thread Raitskin Alexander
Hello, When I try to sign this file: http://www.darina.us/code/peles.pdf I get an error when I open it in Acrobat Reader 9. Error during signature verification. Unexpected byte range values defining scope of signed data. Details: The signature byte range is invalid What is wrong with thi

Re: [iText-questions] Different PdfTemplates dynamically

2010-10-28 Thread riffla
Many thanks to you guys Got this thing working now, removed the method that renders the text for the final page(s) out from the PageEventHandler (PdfFinalizer) class but instead I created some public methods inside this "finalizer" class that sets some flags after I have rendered the last part wh

Re: [iText-questions] Different PdfTemplates dynamically

2010-10-28 Thread Nurettin DAG
There is no reason why you cannot do this before calling document.close(); as Bruno suggested. Instead of doing it on onCloseDocument(); callback which seems to have some side effects. Add another method to your PdfPageEventHandle like addFinalSummaryPage();(with parameters you need like document,

[iText-questions] Annotations non-acrobat renderers (linux)

2010-10-28 Thread Fabiano Nunes
Hello, The iText annotated documents don't display their annotations in other renderers than acrobat (I'm using the [ http://1t3xt.info/examples/browse/?page=example&id=237] example). I've been tested in xpdf 3.02, okular 0.10.2, evince 2.30.3 -- all in gnome environment. After a "save as" in Acro

[iText-questions] HTML background-color

2010-10-28 Thread Rod Hall
Hi, I am using HTMLWorker.parseToList, and it works great with one exception. It does not appear to handle background colors. I have the html code below. The below works fine if I change to just color (for the text), but not for background-color. Is this a limitation of HTMLWorker, or I am doin

Re: [iText-questions] iText in Action - the paper version

2010-10-28 Thread Glen Hamel
Woo Hoo, can't wait to see mine in my mail box!!! Glen Hamel Auric Networks Canada, Inc. 570 Orwell Street, Unit 1 Mississauga, Ontario L5A 3V7 Phone : 905.361.7621 x 2000 Fax : 905.274.3912 Email : glen.ha...@auricnet.ca http://www.auricnet.ca -Original Message- From: Bruno Lowagie [ma

Re: [iText-questions] Upgrading to iText 2.1.7 and newPage

2010-10-28 Thread Nurettin DAG
Did you try writer.isPageEmpty()? On Thu, Oct 28, 2010 at 5:53 AM, 1T3XT info wrote: > On 28/10/2010 6:15, Carmen Grantham wrote: > > Hi, > > > > I'm upgrading from iText 1.4.6 to 2.1.7 but I've found that how > > newPage works has changed. > > > >> From what I've read if there is no content on

Re: [iText-questions] Different PdfTemplates dynamically

2010-10-28 Thread 1T3XT info
On 28/10/2010 14:01, riffla wrote: > > I guess you´re right about one thing, I think I need to aproach this from > somewhere else. But it's actually possible to create another page in the > onCloseDocument. That's a side-effect I didn't know about. Note that you're not adding that page to the Docu

Re: [iText-questions] Different PdfTemplates dynamically

2010-10-28 Thread riffla
I guess you´re right about one thing, I think I need to aproach this from somewhere else. But it's actually possible to create another page in the onCloseDocument. And I also did manage to prevent that page from having page numbers andother such alike stuff. It gave me an empty last page, but with

Re: [iText-questions] Different PdfTemplates dynamically

2010-10-28 Thread 1T3XT info
On 28/10/2010 13:32, riffla wrote: > > Is it possible to add content to PdfContentbyte in the onCloseDocument using > writeSelectedRows? It's not what onCloseDocument was intended for, so my first guess would be: no. This should be tested. In any case: you can't use onCloseDocument to add a new pa

Re: [iText-questions] Different PdfTemplates dynamically

2010-10-28 Thread riffla
Is it possible to add content to PdfContentbyte in the onCloseDocument using writeSelectedRows? I've created a PdfFinalizer which extends the PdfPageEventHelper, and in this class I handle things as page numbers, different id:s that are to be shown on certain pages only (dynamically) and with dif

Re: [iText-questions] Vertical position in combined mode

2010-10-28 Thread 1T3XT info
On 28/10/2010 11:32, riffla wrote: > > Hi > > My question is about how to get a handle to the vertical position using > different "render" modes. I try not to mix render modes. The only exception: - add content to the document with document.add() - add content using page events. If I need writeS

Re: [iText-questions] how to use Element.ALIGN_JUSTIFIED in one line in ColumnText?

2010-10-28 Thread 1T3XT info
On 28/10/2010 9:23, forest wrote: > Dear Bob Barnes, > Thank you very much,DottedLineSeparator is what I want ,just what > DottedLineSeparator draw is not like '.' which looks like a tiny > triangle.Maybe I can write my own DottedLineSeparator to make it more > like circle.Thanks again. The Dotted

Re: [iText-questions] Upgrading to iText 2.1.7 and newPage

2010-10-28 Thread 1T3XT info
On 28/10/2010 6:15, Carmen Grantham wrote: > Hi, > > I'm upgrading from iText 1.4.6 to 2.1.7 but I've found that how > newPage works has changed. > >> From what I've read if there is no content on the page then calling > newPage() does not add a new page. However, in 2.1.7 it is always > creating a

[iText-questions] Vertical position in combined mode

2010-10-28 Thread riffla
Hi My question is about how to get a handle to the vertical position using different "render" modes. Using document.add(paragraph) affects the writer.getverticalPosition(t/f) which is perfect and that gives me a chance to set the starting position when I need to add a table using writeSelectedRo

Re: [iText-questions] how to use Element.ALIGN_JUSTIFIED in one line in ColumnText?

2010-10-28 Thread forest
Dear Bob Barnes, Thank you very much,DottedLineSeparator is what I want ,just what DottedLineSeparator draw is not like '.' which looks like a tiny triangle.Maybe I can write my own DottedLineSeparator to make it more like circle.Thanks again. best regards senlin

Re: [iText-questions] Indian langauge content PDF generation

2010-10-28 Thread Paulo Soares
We know about that but Indic scripts are far from trivial and so far noboby has had enough interest to sponsor development or to contribute code. Paulo - Original Message - From: Yogesh To: itext-questions@lists.sourceforge.net Sent: Thursday, October 28, 2010 6:03 AM Subject