Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread Howard Shank
Yes, I'm sorry. I missed changing the substring length. Howard - Original Message From: so <[EMAIL PROTECTED]> To: itext-questions@lists.sourceforge.net Sent: Wednesday, December 5, 2007 12:48:14 PM Subject: Re: [iText-questions] [iText] rtf wrong color border Howard, Thanks for your

Re: [iText-questions] iText ant build

2007-12-05 Thread Howard Shank
Hi and thanks for the responses. It fails from within Eclipse, but the command line works just fine. Yes. I know I have a few javadoc errors to fix and will work on them as quickly as possible. Mark did not specify what they were though. That is why I am trying to run the ant task to see them.

Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread so
Howard, Thanks for your code, I've test it and in order to add "ctrlWord = "\\brdrcf" + this.importHeader.mapColorNr(ctrlWord.substring(11));" I add "ctrlWord = "\\brdrcf" + this.importHeader.mapColorNr(ctrlWord.substring(7));" and it's work fine. Best regards, So Howard Shank wrote: > > Hi

Re: [iText-questions] iText ant build

2007-12-05 Thread Xavier Le Vourch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Howard Shank wrote: > Strange but... I am able to run all the ant tasks in the build.xml except for > docs.tar.gz and javadoc. > > Error: > Buildfile: D:\Development\OpenSource\iText\itext-core\main\src\build.xml > javadoc: > javadoc: > [javadoc] G

Re: [iText-questions] iText ant build

2007-12-05 Thread Scott Dunbar
Can you make sure that javadoc.exe is on your PATH? It should be in your JDK/bin directory. Howard Shank wrote: > Strange but... I am able to run all the ant tasks in the build.xml except for > docs.tar.gz and javadoc. > > Error: > Buildfile: D:\Development\OpenSource\iText\itext-core\main\src\

[iText-questions] limitcheck gsave error

2007-12-05 Thread Gery D. Dorazio
I have several PDF files with fields that get populated with data. These forms get combined to form a single PDF which is then sent to a users browser. When this file is printed from a few users machines it fails to print and gives a limitcheck error with offending command of gsave. This happ

[iText-questions] iText ant build

2007-12-05 Thread Howard Shank
Strange but... I am able to run all the ant tasks in the build.xml except for docs.tar.gz and javadoc. Error: Buildfile: D:\Development\OpenSource\iText\itext-core\main\src\build.xml javadoc: javadoc: [javadoc] Generating Javadoc [javadoc] Javadoc execution BUILD FAILED D:\Development\OpenSou

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Howard Shank
>> There are so many control words in the RTF spec that I tried to >> simplify the creation of the classes through automating the >> generation of them. This way new control words (RtfCtrlWordBase_*) >> can be added through the generation process without disturbing >> manual coding that may

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Mark Hall
On 5 Dec 2007, at 18:23, Howard Shank wrote: > There are so many control words in the RTF spec that I tried to > simplify the creation of the classes through automating the > generation of them. This way new control words (RtfCtrlWordBase_*) > can be added through the generation process with

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Howard Shank
Hi, Yes Mark, it is my hope that the reader/parser will be able to generate an iText document object which would allow it to be output to any writer that is attached to the document listener. The number of control words would not significantly increase until a new revision to the specification

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Howard Shank
Hi Paulo, I agree with the source size issue. One side note is the size almost tripled when I added all the license comment blocks. >Looks like it does exactly the same as the base class. Yes. I agree that is what it "looks" like at the moment. This is because the functionality of each contro

Re: [iText-questions] Problem in setting save filename with inlinebrowser adobe reader

2007-12-05 Thread Scott Dunbar
I see that nobody in the Adobe Forums answered you either :) The issue is that you're using standards and Adobe isn't.  It appears to ignore the file name in the content disposition header.  Additionally, I'm guessing that you're using URL parameters like  "/something/something?filename=somefi

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Mark Hall
Hi, I must admit, that I didn't take the size of the resulting jars into consideration when adding the new features to the repository. While I agree that currently the RtfCtrlWordBase_* classes take up a lot of space for no additional return value, this will change, as they are fleshed out.

Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread Mark Hall
Hi, the changes and fixes to the RTF import are only going to be included in the next iText release, they are not part of 2.0.7. As Howard pointed out in his reply, you will have to patch the source with the code he provided, or use the SVN version until the next release. Greetings, Mark O

Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread Howard Shank
Hi So, As the old parser has been replaced with the new one, I am going to paste the fix for your color problem here and also update the new parser with a fix. In [EMAIL PROTECTED] around line 240 you should find the following code. 240 } else if (RtfColorTableParser.stringMatches(c

Re: [iText-questions] Problem in setting save filename with inlinebrowser adobe reader

2007-12-05 Thread Namdeo, D. - SPLXE
Can some one please reply to this? This is quite urgent :-( Thanks. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Namdeo, D. - SPLXE Sent: Tuesday, December 04, 2007 16:12 To: itext-questions@lists.sourceforge.net Subject: [iText-questi

Re: [iText-questions] Token type not recognized - jFreeChart

2007-12-05 Thread Paulo Soares
I think that the iText toolbox has something to see the content and that the upcoming "RUPS: Reading/Updating PDF Syntax" will do even more. Get the toolbox from https://sourceforge.net/svn/?group_id=194031. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED

Re: [iText-questions] Token type not recognized - jFreeChart

2007-12-05 Thread Paul Belleville
Paulo: Do you know of a free tool allowing you to look at what is inside the PDF? How did you see the large numbers? Thanks Paul Belleville - Original Message From: Paulo Soares <[EMAIL PROTECTED]> To: Post all your questions about iText here Sent: Wednesday, December 5, 2007 2:48:33

Re: [iText-questions] Phrase containing Chunks/Phrase with multiple Run Directions

2007-12-05 Thread Paulo Soares
You must call columnText.setRunDirection(PdfWriter.RUN_DIRECTION_RTL) or columnText.setRunDirection(PdfWriter.RUN_DIRECTION_LTR). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of dayvidpow > Sent: Wednesday, December 05, 2007 3:08 PM > To:

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Paulo Soares
I'm not that worried about the speed, I'm more worried about the size both of the source and of the jar. Currently the source takes up 1.6M and the jar 1.5M but with the new RTF features that source is 9.5M and the jar 5.5M. With sizes like this it will be needed to create a jar for PDF and another

Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread so
Unfortunately I obtain the same result. Regards So Howard Shank wrote: > > So, > > You may want to try the following example. The parser is intended to be > called via the RtfWriter2 object. > > == > Document document = new Document(); > try { >

Re: [iText-questions] Rtf Shapes

2007-12-05 Thread cristip
Hi. Can I change text direction in a RtfShape? -- View this message in context: http://www.nabble.com/Rtf-Shapes-tf3542394.html#a14171903 Sent from the iText - General mailing list archive at Nabble.com. - SF.Net email is

Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread so
Yes of course. testCourrier is the file I want to parse and testout is the result. http://www.nabble.com/file/p14171496/testCourrier.rtf testCourrier.rtf http://www.nabble.com/file/p14171496/testout.rtf testout.rtf Thanks for your help Best regards, So Howard Shank wrote: > > Hi So, > > Wo

Re: [iText-questions] how to hide button in pdfform

2007-12-05 Thread Scott Dunbar
I would say that this is because Adobe Reader renders the form from the PDF and LiveCycle renders from the XDP template section. I have always treated the XDP template section as read-only. I don't think this is the way to do what you want. Is there some JavaScript that would work to do what

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Howard Shank
Paulo, The tests in the previous message were run in debug mode. Running in release mode (no debug) the timings for creation and population of the HastMap object are in the 60ms range. Howard Be a bett

Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread Howard Shank
So, You may want to try the following example. The parser is intended to be called via the RtfWriter2 object. == Document document = new Document(); try { RtfWriter2 rtfWriter = RtfWriter2.getInstance(document,new FileOutputStrea

Re: [iText-questions] Phrase containing Chunks/Phrase with multiple Run Directions

2007-12-05 Thread dayvidpow
As suggested, I added all the English and Arabic text to a Paragraph and then set the alignment to Element.ALIGN_LEFT (see code sample below). However, the mix English and Arabic text output on the same line is still not correct. The Arabic text is not getting rendered correctly. I believe th

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Howard Shank
Hi Paulo, Thanks for the comments. I am always looking for ways to improve my code. With regards to the parser overall, initial testing on my system processed a 9.5mb RTF file in ~29 seconds. Through optimizations, it now only takes ~13 seconds. The HashMap is initialized using a value large e

Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread Howard Shank
Hi So, Would it be possible for you to send me the file you are having problems with? Thanks Howard - Original Message From: so <[EMAIL PROTECTED]> To: itext-questions@lists.sourceforge.net Sent: Wednesday, December 5, 2007 4:05:35 AM Subject: Re: [iText-questions] [iText] rtf wrong col

Re: [iText-questions] Streaming PDF to browser on-the-fly?

2007-12-05 Thread Leonard Rosenthol
Read the PDF Reference or use Acrobat - it's all in there... Search Engines are your friend: Leonard On Dec 5, 2007, at 6:18 AM, L Lewis wrote: > > Thanks for the information, Leonard. Interesting, I've never hea

Re: [iText-questions] Streaming PDF to browser on-the-fly?

2007-12-05 Thread L Lewis
Thanks for the information, Leonard. Interesting, I've never heard of that (Linearization or Fast Web View). Can you tell me any more about the custom web server requirements? Lonnie Leonard Rosenthol wrote: > > That is called Linearization (or "Fast Web View") in the Acrobat > UI. It can

Re: [iText-questions] Phrase containing Chunks/Phrase with multiple Run Directions

2007-12-05 Thread Paulo Soares
You can mix English and Arabic text in the same line and both will work correctly. You may use the alignment LTR. Both texts must be in the same Paragraph. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of dayvidpow > Sent: Wednesday, Decem

Re: [iText-questions] RTF Parser update

2007-12-05 Thread Paulo Soares
I had a very quick look at the thousands of new classes created and I have a few remarks: - it looks like 99% of those classes could be eliminated and a generic class with some parameters be created when loading the hash - each time a parser is created the hash must be filled with thousands of el

Re: [iText-questions] Token type not recognized - jFreeChart

2007-12-05 Thread Paulo Soares
There are some very large numbers that exceed the PDF limits. For example: 410.77 698710556672 409.09 698710556672 407.02 698710556672 c Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Paul Belleville > Sent: Wednesday, December 05, 2007

Re: [iText-questions] [iText] rtf wrong color border

2007-12-05 Thread so
Hello Howard, I'm using now the version 2.0.7 but I still have this problem of border color. It's normal? My code : Reader reader = new FileReader(filename); RtfDocument document = new RtfDocument(); document.open(); RtfParser parser = new RtfParser(); parser.importRtfDocument(reader, document);

[iText-questions] how to hide button in pdfform

2007-12-05 Thread Xu ying chu
Hi , I want to hidden a button in the pdf form, I get DomDocuement by XfaForm getDomDocument(), and I traversal the docuement, get the button field and add "presence" attribute, but the button not be hidden. source: PdfReader reader = new PdfReader("c:\\pdfform.pdf"); FileOutputStream out = n