[iText-questions] help: problem with writing series of tab characters to table cell

2006-08-07 Thread Kevin Nguyen
Hi all,How tab characters are rendered in table cell (PdfPTable) ?Itext doesn't seem to render content with tab characters correctly.For example,  If you go to http://itextdocs.lowagie.com/examples/com/lowagie/examples/objects/tables/MyFirstTable.javaand change table.addCell("1.1")   totab

Re: [iText-questions] SplitLate Problem/Question

2006-08-07 Thread Paulo Soares
Works for me. I attach what I got using the latest itextsharp. Paulo - Original Message - From: "Mitch Freed" <[EMAIL PROTECTED]> To: Sent: Monday, August 07, 2006 11:09 PM Subject: [iText-questions] SplitLate Problem/Question I have a PdfPTable which I have specified the SplitLate

[iText-questions] SplitLate Problem/Question

2006-08-07 Thread Mitch Freed
I have a PdfPTable which I have specified the SplitLate property to false on. I have a scenario where I have 2 rows. The first row spans the entire page, thus the second row will display on the second page. If SplitLate is set to true, this works fine. If SplitLate is set to false, I lose so

Re: [iText-questions] How to extract the properties of an AcroField

2006-08-07 Thread Abhishek Srivastava
Hello Leonard,   Is this the correct way to stream the contents and parse it. PRIndirectReference obj = (PRIndirectReference)fontDict.get(name2); PRStream stream = (PRStream) PdfReader .getPdfObject(obj); PRTokeniser token = new PRTokeniser (stream.getBytes()); while (token.nextToken()) { if (to

[iText-questions] USING A SERVLET TO GENERATE A PDF

2006-08-07 Thread TFrench
Help disclaimer: I read the tutorial and understand that generated pdf for a client is not a good idea. I do not want to generate a PDF from with-in JSP , I will be using a servlet. My question is. I have JSP pages defined that I currently use when printing using Scriptx. Is there a way

Re: [iText-questions] How to extract the properties of an AcroField

2006-08-07 Thread Leonard Rosenthol
At 03:43 PM 8/7/2006, Abhishek Srivastava wrote: >I tried the following > >The output I get is That is correct. It's the /N (normal) appearances of each of the fields. Now you need to (as documented in the PDFReference) get the stream data from the 'N' appearance and

Re: [iText-questions] How to extract the properties of an AcroField

2006-08-07 Thread Leonard Rosenthol
At 03:19 PM 8/7/2006, Abhishek Srivastava wrote: >My fields can be rich text fields, single line text fields or multi >line text fields. I want a reliable way of extracting the Font from >an AcroField properties. Start by reading the PDF Reference to understand how Acrobat fields are "

Re: [iText-questions] How to extract the properties of an AcroField

2006-08-07 Thread Abhishek Srivastava
Hello Leonard,   I tried the following   AcroFields.Item item = form.getFieldItem(key);PdfDictionary dict;PdfName name;for (Iterator i = item.merged.iterator(); i.hasNext(); ) {  dict = (PdfDictionary)i.next();  for (Iterator it = dict.getKeys().iterator(); it.hasNext(); )   {    name = (PdfName)

Re: [iText-questions] How to extract the properties of an AcroField

2006-08-07 Thread Abhishek Srivastava
My fields can be rich text fields, single line text fields or multi line text fields. I want a reliable way of extracting the Font from an AcroField properties.   It will be kind if you could provide me a sample on how to do this.   regards, Abhishek.  On 8/8/06, Leonard Rosenthol <[EMAIL PROTECTE

Re: [iText-questions] How to extract the properties of an AcroField

2006-08-07 Thread Leonard Rosenthol
At 01:39 PM 8/7/2006, Abhishek Srivastava wrote: The properties which I want to extract are   textfont textcolor textsize text alignment Is this a single line or multi-line field?   Is this a rich text field? I printed the properties of two acrofields and the output was   1.  /FT -- /T

Re: [iText-questions] Generation of Multiple Page PDF Document isslow

2006-08-07 Thread Abhishek Srivastava
Thanks Bruno,   The image approach works for me.   However I want to compare it to the addTemplate apporach.   if a co-ordinate is X1, Y1 in portait, then it becomes Y1, PageSize.A4.Width - X1 when the page becomes landscape.   Given the above, what transformation matrix should be applied? so that

Re: [iText-questions] How to extract the properties of an AcroField

2006-08-07 Thread Abhishek Srivastava
I have found the answer on how to extract properties of acrofields at  http://itext.ugent.be/library/question.php?id=31   The properties which I want to extract are   textfont textcolor textsize text alignment   I printed the properties of two acrofields and the output was   1.  /FT -- /Tx/RV --

Re: [iText-questions] Working with "large" PDF document

2006-08-07 Thread Paulo Soares
I had a look at the PDF and the problem is that Acrobat has a limit of 14400 units for the page size and you have 18590. Paulo - Original Message - From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Thursday, August 03, 2006 1:53 PM Subject:

[iText-questions] format question

2006-08-07 Thread oriol n_h
Hi! i'm from Barcelona and my name is Oriol, i'm a developer and i need to use itext for make a pdf's report. The problem is, i need to create a table with specific style and i would like to know if i can define this style in a CSS or class and then when i create the table vincule this style to th

Re: [iText-questions] Digital Sign and pdf encription

2006-08-07 Thread Leonard Rosenthol
At 08:46 AM 8/7/2006, Umberto Angelini wrote: >Is it possible to digitally sign and apply pdf encription to pdf >document at the sime time ? >I can apply distinct action. >The problem is to calculate message digest on encripted pdf. Yes - but that's exactly it - they must be done AT THE

[iText-questions] How to extract the properties of an AcroField

2006-08-07 Thread Abhishek Srivastava
Hello All,   I am reading an Pdf document which contains AcroFields.   I am able to read the fields correctly. However I also want to find out what are the properties of the field. For example, what font has been used, font size etc.   I can see that AcroFields class provides a setFieldProperty met

Re: [iText-questions] Carriage Return removed while printing on PDF: XML parsing used to print

2006-08-07 Thread Abhishek
bruno lowagie.com> writes: > > Abhishek wrote: > > >data : my name is Abhishek , i am tring to print data > > but the data printed doesnt entertain the carriage return > > > >printed data on pdf:my name is Abhishek , i am tring to print data but the > >data printed doesnt entertain the

[iText-questions] Digital Sign and pdf encription

2006-08-07 Thread Umberto Angelini
Is it possible to digitally sign and apply pdf encription to pdf document at the sime time ? I can apply distinct action. The problem is to calculate message digest on encripted pdf. Have you some example ? Thanks a lot Umberto --

[iText-questions] Unused direct content

2006-08-07 Thread Damien Drix
Hello, Is there any iText object on which you can draw some direct content and then : - either decide to add it to an open Document or Writer, - or decide to do nothing with it and "throw it away" ? I suspect creating many PdfTemplates and not actually using them will produce a very inefficient

Re: [iText-questions] Generation of Multiple Page PDF Document isslow

2006-08-07 Thread Abhishek Srivastava
Hello Bruno,   I tried the following to rotate the template by 90 degrees. writer.DirectContent.addTemplate(_page, 0, 1, -1, 0, PageSize.A4.height(), 0); Now I get an inverted Imported page. (upside down). If I try any other permutation combinarion I get a blank pdf. (for example: _page, 0, 1, -1

Re: [iText-questions] Generation of Multiple Page PDF Document isslow

2006-08-07 Thread bruno
Abhishek Srivastava wrote: > > There are different ways to solve this > > Which will be the most efficient? "One answer solves all" doesn't apply here. First I thought of answering that the addTemplate with the transformation coordinates would be the best way to go, but then you need to do some

Re: [iText-questions] Generation of Multiple Page PDF Document isslow

2006-08-07 Thread Abhishek Srivastava
> There are different ways to solve this   Which will be the most efficient?   regards, Abhishek.  On 8/7/06, bruno <[EMAIL PROTECTED]> wrote: Abhishek Srivastava wrote:> The document which I use as template is landscape.>> When I generate my document I also create it as Landscape. However the

Re: [iText-questions] Generation of Multiple Page PDF Document isslow

2006-08-07 Thread bruno
Abhishek Srivastava wrote: > The document which I use as template is landscape. > > When I generate my document I also create it as Landscape. However the > template document appears vertical in my page. > > I have tried setting the Rectangle of the ImportedPage to the size of > a Rotated A4

Re: [iText-questions] please help( i need answer)

2006-08-07 Thread bruno
smsm kw wrote: > <>after i add Embedded Resource , i still having zero byte of pdf and > the follwing message and exception : > > - the exception is : > > An unhandled exception of type 'System.IO.IOException' occurred in > ConsoleApplication2.exe > > Additional information: The document has no