Re: [iText-questions] Complilation problem source code iText2.0.0

2007-02-20 Thread Shoaib Gauhar
I get this error too. But i have resolved this problem. public OptionArgument(AbstractTool tool, String name, String description) { super(tool, name, description, ""); this.setClassname((new Entry(description)).getClass().getName()); } This solves the prob

Re: [iText-questions] Text is not added when using RandomAccessFileOrArray

2007-01-25 Thread Shoaib Gauhar
I have got it. I needed to use the PdfReader().getSafeFile(). Its working OK now. Sorry.. Shoaib Ahmad --- Shoaib Gauhar <[EMAIL PROTECTED]> wrote: > Hello: >I do not know whether this is a bug related to > iText or i dont know how to implement it. I need to > add a

[iText-questions] Text is not added when using RandomAccessFileOrArray

2007-01-25 Thread Shoaib Gauhar
Hello: I do not know whether this is a bug related to iText or i dont know how to implement it. I need to add a certain text on a merged file. Because the files are usually large in size so i need to use RandomAccessFileOrArray so that i can be able to use memory more appropriatly. The attached

[iText-questions] Adding same page two times in a merged file

2007-01-23 Thread Shoaib Gauhar
Hello: A week earlier, i posted a query about the following code that whether we can do that or not. But Paulo replied that i will need to open another PdfReader object to successfully complete this task. But he also told me that he had fixed the code in the CVS (PdfCopy) which would work even in t

Re: [iText-questions] Exception thrown when I add WMF image on PdfContentByte

2007-01-19 Thread Shoaib Gauhar
I have downloaded the code from CVS and its working perfectly. Do you think that this change (WMF issue) might effect any other part of your library??? BTW: I dont know how you people manage these things (and provide us fixes immediately) but you are doing a tremendous job. Thanks Shoaib --- Pau

[iText-questions] Exception thrown when I add WMF image on PdfContentByte

2007-01-18 Thread Shoaib Gauhar
I have attached a code in which my intent is to add an image to an existing PDF file. All the other formats (except WMF) are added successfully but some how when i try to add WMF image it generates the following error. I am also attaching the WMF file. DocumentException: DocumentException: java.la

Re: [iText-questions] Add existing page two times in a merged file

2007-01-17 Thread Shoaib Gauhar
y must do it this > way, I'll have to > > investigate. > > > > Paulo > > > > > -Original Message- > > > From: > [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] > On > > > Behalf Of Shoaib Gauhar > >

Re: [iText-questions] Add existing page two times in a merged file

2007-01-17 Thread Shoaib Gauhar
I am mailing you a small piece of code in which i have added same page two times in the resulting file. The code is attached. Please have a look and point out my mistake. Thanks Shoaib --- "Bruno Lowagie (iText)" <[EMAIL PROTECTED]> wrote: > Shoaib Gauhar wrote: > >

[iText-questions] Add existing page two times in a merged file

2007-01-16 Thread Shoaib Gauhar
Hello I am merging two files and I want to add a particular page of one file two times in the merged file. I am merging the files with the help of PdfCopy. What i am doing is that i get the PdfImportedPage from the reader and add with the help of PdfCopy.addPage() function. It generates the outp

Re: [iText-questions] Problem with chunk.getWidthPoint() function

2006-12-20 Thread Shoaib Gauhar
Thank you very much sir. Dont have the words actually. It is working perfectly. Can i use this jar permanently??? Thanks once again, Shoaib --- "Bruno Lowagie (iText)" <[EMAIL PROTECTED]> wrote: > Shoaib Gauhar wrote: > > Thanks for a quick response > >

Re: [iText-questions] Problem with chunk.getWidthPoint() function

2006-12-20 Thread Shoaib Gauhar
Thanks for a quick response It felt so good that there was nothing wrong with my code. Shoaib Ahmad --- "Bruno Lowagie (iText)" <[EMAIL PROTECTED]> wrote: > Shoaib Gauhar wrote: > > > The problem is with chunk.getWidthPoint() method. > > Yes, I was able t

[iText-questions] Problem with chunk.getWidthPoint() function

2006-12-20 Thread Shoaib Gauhar
Hello Actually a week back i mailed a query about the problem that i was facing with paragraph.setAlignment() function. Mr. Bruno asked me to send him some sample. So, here is what i found The problem was not with setAlignment() method, the problem is with chunk.getWidthPoint() method. I have a

[iText-questions] Alignment settings of Paragraph is not working

2006-12-13 Thread Shoaib Gauhar
Hello I made a program to make a table of contents for pdf files. I used added chunks in a paragraph to implement this functionality. I used setAlignment() method of paragraph class to justify the contents in it. This was all done in the 1.4.3 version of iText and was working and generating the

[iText-questions] Add GOTOR action & destination to a chunk

2006-09-05 Thread Shoaib Gauhar
Hello: Actually i am able to add the action but the problem is i dont know how to add destination information in a chunk which has an GOTOR action. PdfAction has a method but it requires a destination in a string. So, please tell me if there is a way to convert a PdfDestination to a string des

[iText-questions] Text Lines Problem

2006-06-26 Thread Shoaib Gauhar
Hello: I am trying to make a Table of Content. And the problem that i am facing is that i want to figure out that whether the text that i am adding as a content takes one line or more. Can you please tell me how can i achieve this? Give a sample code if possible Thanking in advance Shoaib ___

[iText-questions] I want to get the X axis of where my text ends

2006-06-19 Thread Shoaib Gauhar
Hello I am making a table of contents (implementing with Chunks andParagraphs not with Table) and i want to get the point in X axis where my text will end. So, that i could be able to add some space to include the page number. Your help in this regard will be highly appreciated. Shoaib Ahma

[iText-questions] Page Rotation

2006-06-04 Thread Shoaib Gauhar
Hello I read a mail a few days back in which one has told to add /ROTATE 180 info in the page dictionary. Can anyone please tell me that how do you get this page dictionary??? I have tried to get it and add values from PdfWriter.getInfo(), PdfWriter.getGroup() but it hasnt worked. Waiting for

[iText-questions] Question about Bookmarks

2006-05-23 Thread Shoaib Gauhar
Hello I am using SimpleBookmark class to get bookmarks from a PDF file by using SimpleBookmark.getBookmark(reader) method. The main problem is that when it returns a list, i am unable to extract the required information from the fields in it, especially Named field. Some PDF files return Actio

[iText-questions] Question about SimpleBookmark Class

2006-05-19 Thread Shoaib Gauhar
Hello I am using SimpleBookmark class to get bookmarks from a PDF file by using SimpleBookmark.getBookmark(reader) method. The main problem is that when it returns a list, i am unable to extract the required information from the fields in it, especially Named field. Some PDF files return Actio