Re: [iText-questions] How can I disallow a line break in special tagged string?

2009-11-18 Thread 1T3XT info
skuphi wrote: > Hi, > > I have a string with html markup, which I process with the HtmlWorker to get > styled paragraphs. This paragraphs I put into a ColumnText. Some of the > paragraphs contains text which must not be splitted. > E.g. "some text which can be splitted. ". > > So how can I ens

Re: [iText-questions] Font size from a text box

2009-11-18 Thread ramachandran.sk
Thanks Mark for the response and detailed explanation. This solved my problem. Thanks again :) With thanks and regards, S.K.Ramachandran Date: Wed, 18 Nov 2009 09:52:48 -0800 From: "Mark Storer" Subject: Re: [iText-questions] Font size from a text box To: "Post all your questions about iTex

[iText-questions] How do I get the position of an image in a PDF file?

2009-11-18 Thread Larry Reeder
I've used the iText Java API to create a PDF with several images.  Now I'd like to write a unit test to verify my image placement logic.  I used Image.setAbsolutePosition to set the image when I initially created the PDF.  Now how do I get the position of that image when I reopen the PDF?  I know I

Re: [iText-questions] Root Object is invalid or missing after PDF is manipulated with iTextSharp

2009-11-18 Thread subrah
Hi All, So i seem to have found a solution to the issue. basically i am using a lock around the the thread that calls the water marking component. no changes in the code i sent earlier. Thanks for all the help. Subrah Mike Marchywka-2 wrote: > > > > > > > > > > --

[iText-questions] How can I disallow a line break in special tagged string?

2009-11-18 Thread skuphi
Hi, I have a string with html markup, which I process with the HtmlWorker to get styled paragraphs. This paragraphs I put into a ColumnText. Some of the paragraphs contains text which must not be splitted. E.g. "some text which can be splitted. ". So how can I ensure that the line breaks befo

Re: [iText-questions] Helvetica not found as resource - iText-2.1.4Jar

2009-11-18 Thread Paulo Soares
Another possibility: you are running a security manager in your app container. Even with "AllPermissions" also grant RuntimePermission("ClassLoader"). Paulo > -Original Message- > From: 1T3XT info [mailto:i...@1t3xt.info] > Sent: Wednesday, November 18, 2009 5:21 PM > To: Post all you

Re: [iText-questions] Right to left run direction

2009-11-18 Thread 1T3XT info
Leonard Rosenthol wrote: > Bookmarks in Unicode will be displayed correctly. > > Am I missing something? Does someone have a PDF that demonstrates that it > does not? No, maybe the OP doesn't know how to create bookmarks in unicode. (Page 410 in "iText in Action - first edition".) -- This ans

Re: [iText-questions] Right to left run direction

2009-11-18 Thread Leonard Rosenthol
Bookmarks in Unicode will be displayed correctly. Am I missing something? Does someone have a PDF that demonstrates that it does not? -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Wednesday, November 18, 2009 4:36 PM To: Post all your questions about iText he

Re: [iText-questions] Font size from a text box

2009-11-18 Thread Mark Storer
You'll need to parse the field's /DA (default appearance) string: for (Iterator i = fields.keySet().iterator(); i.hasNext();) { key = (String) i.next(); AcroFields.Item fldItem = (AcroFields.Item)fields.get( key ); PdfDictionary merged = fldItem.getMerged( 0 ); PdfString defaultApp

Re: [iText-questions] Helvetica not found as resource -iText-2.1.4Jar

2009-11-18 Thread Rangel, Oscar
Hi, I have upgraded to the latest JAR file which I downloaded from http://sourceforge.net/projects/itext/ I am aware of the fact that the afm file is in the fonts directory. I have seen this issue before using iText2.1.4. The font file was present and yet I was getting this error. I know this is

Re: [iText-questions] Helvetica not found as resource - iText-2.1.4Jar

2009-11-18 Thread Paulo Soares
Another possibility: you are running a security manager in your app container. Even with "AllPermissions" also grant RuntimePermission("ClassLoader"). Paulo > -Original Message- > From: 1T3XT info [mailto:i...@1t3xt.info] > Sent: Wednesday, November 18, 2009 5:21 PM > To: Post all your

Re: [iText-questions] Accessing Text field custom validation script viaItext

2009-11-18 Thread Mark Storer
There are a couple different places the script can be stored: 1) In an XFA form, the script is all in the XFA. You'll have to parse some XML to get it. 2) In an AcroForm, the scripts will be in/referenced-from that field's /AA dictionary (additional actions). 3) Additional Actions scripts can

Re: [iText-questions] Helvetica not found as resource - iText-2.1.4Jar

2009-11-18 Thread Rangel, Oscar
I have updated to the latest JAR iText-2.1.7.jar and have lately noticed this issue once again in my JavaScript: Internal Script error: ExceptionConverter: com.lowagie.text.DocumentException: Helvetica not found as resource. (The *.afm files must exist as resources in the package com.lowagie.te

Re: [iText-questions] ExportArea - All data content is exported (not just the area)

2009-11-18 Thread Xavier Sudan
Thank you Paulo. What is your advise to get the data inside the area ? Xavier >>You'll have to ask the data extraction software why they don't respect the crop box. Paulo -- Let Crystal Reports handle the reporting - Fr

[iText-questions] Accessing Text field custom validation script via Itext

2009-11-18 Thread Gajda, Tim (MDIT)
I am trying to access a "custom validation script" created for a text field in a PDF. I am attempting to use PDFreader to do this, but I am not having any luck finding the script. It does not appear to be stored with the rest of the field specific data. Thanks, Tim --

Re: [iText-questions] buffered image and iText

2009-11-18 Thread Mike Marchywka
> > Hello, > > I need to page thru a pdf and perform barcode recognition on every page. > The barcode recognition package we have requires a BufferedImage object to > be passed in. Is there a way with iText to return each page in the pdf as a > BufferedImage? > You would probably be better off w

[iText-questions] buffered image and iText

2009-11-18 Thread Scott Tyriver
Hello, I need to page thru a pdf and perform barcode recognition on every page. The barcode recognition package we have requires a BufferedImage object to be passed in. Is there a way with iText to return each page in the pdf as a BufferedImage?

Re: [iText-questions] PDF generated from TIFF is blank - vol.2

2009-11-18 Thread Paulo Soares
The image may be very big. Try img.scalePercent(10). Paulo > -Original Message- > From: vojtik [mailto:xvo...@seznam.cz] > Sent: Wednesday, November 18, 2009 8:51 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] PDF generated from TIFF is blank - vol.2 > > Hi

Re: [iText-questions] ExportArea - All data content is exported (not just the area)

2009-11-18 Thread Paulo Soares
You'll have to ask the data extraction software why they don't respect the crop box. Paulo > -Original Message- > From: Xavier Sudan [mailto:xsu...@gmail.com] > Sent: Wednesday, November 18, 2009 2:28 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] ExportAre

Re: [iText-questions] Right to left run direction

2009-11-18 Thread Paulo Soares
I suppose it will be a viewer implementation issue. iText can write the bookmarks in Unicode but they are rendered by the viewer. Paulo > -Original Message- > From: 1T3XT info [mailto:i...@1t3xt.info] > Sent: Wednesday, November 18, 2009 2:51 PM > To: Post all your questions about iTex

Re: [iText-questions] Right to left run direction

2009-11-18 Thread 1T3XT info
Eric Summkeller wrote: > Is it possible to write table of content entries > from right to left? I've checked the PDF Reference 1.7 (8.2.2 p585) and ISO-32000-1 (13.3.3 p368) and I've found nothing I could use to answer your question. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/

[iText-questions] ExportArea - All data content is exported (not just the area)

2009-11-18 Thread Xavier Sudan
Hello, I would like to get content in specific area in a PDF. For that, I use ExportArea (http://1t3xt.info/examples/browse/?page=example&id=351)to generate a new PDF with the area and use PDFbox to get the content in text. Us

Re: [iText-questions] Right to left run direction

2009-11-18 Thread Eric Summkeller
> A PdfPCell uses a ColumnText object to draw its content to the page, > so YES, it's possible to achieve what you want with ColumnText. > The question is: why would you do that if it works using PdfPCell? > You'll need more lines of code (and you'll risk making more errors). > Ok! Then I will pu

Re: [iText-questions] Antwort: Re: PDF-A/1b conformance

2009-11-18 Thread 1T3XT info
Thornton, Keith wrote: > I discovered a couple of cells in a PdfPTable for which I had forgotten > to set the font so it was using the default font. I fixed this and the > problem is resolved. For the record I am using 2.1.7 :-) Older versions introduced Helvetica introduces Chunk object with on

Re: [iText-questions] RTF - problem in cross references

2009-11-18 Thread mister bean
Alain: 1) What Howard means is that there is no iText roadmap *for RTF*. This is because RTF functionality is about to be moved out of iText. See several recent posts on this list regarding this move. 2) You could try generating an internal link in MS Word, saving as RTF, and examining the gener

[iText-questions] Antwort: Re: PDF-A/1b conformance

2009-11-18 Thread Thornton, Keith
itext-questions-boun...@lists.sourceforge.net schrieb am 17.11.2009 15:34:25: > Thornton, Keith wrote: > > An exception is thrown (PdfXConformanceException) when I call > > Document.NewPage() or Document.close() > > The exception says that I am using the non-embedded font (Helvetia). I > > am

Re: [iText-questions] RTF - problem in cross references

2009-11-18 Thread Howard Shank
If you are talking about in file bookmarks where you can click on them and jump to that section, then this feature just isn't implemented. You might overcome this by writing your own direct RTF content, but I do not have an example of how to accomplish this. There is no iText roadmap defined at

[iText-questions] Font size from a text box

2009-11-18 Thread ramachandran.sk
Hi, I am reading the form fields from the PDF using Acrofields. I would like to get the value and font size of the Text fields. I am getting the value of using form.getField(key). How do I get the fontsize of the text field? Your inputs will be highly appreciated. Coder Snippet:: PdfReader re

Re: [iText-questions] Losing dynamic links after generating TOC .

2009-11-18 Thread Digumarti, Swapna
I tried doing that, but it failed. As I am using "PdfAction.gotoLocalPage" (with page number), while executing document.close() a check happens to see if that particular page exists. In case it doesn't, an illegal argument exception is thrown. If you have been successful in doing something like

[iText-questions] PDF generated from TIFF is blank - vol.2

2009-11-18 Thread vojtik
Hi, sorry but I don't know what is 'media box'. To generate PDF from TIFF, I use this code: public IDfDocument tiffToPdf(IDfDocument doc) throws DfException { if (!doc.getContentType().equals("tiff")) { System.out.println("Doc isn't tiff document"); return null; } String