[iText-questions] plz give example

2008-04-28 Thread bala ganesh
hi,  i want to create a pdf document with footer..In that footer, I want "Thank u" in right side and page number in left side ..create a inner class  class PDFPageFooter implements PdfPageEvent    {    public void onEndPage(PdfWriter writer, Document document)    {    try {

Re: [iText-questions] plz give example

2008-04-28 Thread 1T3XT info
bala ganesh wrote: > hi, An example of an unanswerable question in bad English is "plz give example". An example of an unanswerable question in good English is "What is the weather like today?" The former question is unanswerable because (1) the person asking the question assumes we can read his

Re: [iText-questions] plz give example

2008-04-28 Thread Alexis Pigeon
[Please don't change the subject when you reply to a thread, it makes it almost impossible to know what you are talking about] If it's an example about adding a footer you are looking for, you've already been told to check the documentation. For example, look here: < http://itextdocs.lowagie.com/t

[iText-questions] plz give example

2008-04-28 Thread bala ganesh
hi, Unlimited freedom, unlimited storage. Get it now - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8T

Re: [iText-questions] need help on TextField font

2008-04-28 Thread 1T3XT info
johniText wrote: > Hello thanks first. > > Could you please tell me how you found the " box size in the annotation > array is [104.25,13.87] and in the appearance is [50,25] ", For instance with http://www.1t3xt.com/products/rups.php Or you can open the PDF in a text editor and look for the fiel

Re: [iText-questions] Any way to change margins of page 1 after document has been created?

2008-04-28 Thread 1T3XT info
Eric B. wrote: > Hi, > > Is there any way to change the margins of a page once the document has > already been created & opened? I've tried putting it in an onOpenDocument() > event, onStartPage() event and even onEndPage(), but all those events only > seem to affect things as of page 2. Is t

Re: [iText-questions] want to detect field alignment when filling in a form

2008-04-28 Thread ralphcook
1T3XT info wrote: > > ralphcook wrote: >> I think I must have a different version than you; I'm looking at page 678 >> of >> the PDF reference, and it's in the middle of section "9.10.1 Page >> Boundaries" > > See attachment for p678. By not providing a link to the form, > you're not really he

Re: [iText-questions] Flatten a XFA form and got blank pages

2008-04-28 Thread JudyZW
Tried regenerateField() and still got blank/empty pages. The result file's page number is same as the original file's, but has no content at all. Is there any situation setFormFlattening(true) will not work in XFA forms? Please advise. Thanks! Paulo Soares wrote: > > AcroFields.regenerateField(

Re: [iText-questions] create a BaseFont object with a .FON file

2008-04-28 Thread GeroChaman
>then any embedded fonts MUST/WILL be used >when printing. HOWEVER, if the fonts aren't embedded in the PDF, >then the conforming reader is free to do whatever it wants... if what you say is true, then, does the pdf format can have embedded .FON fonts? and how? if not/impossible,

Re: [iText-questions] need help on TextField font

2008-04-28 Thread johniText
Hello thanks first. Could you please tell me how you found the " box size in the annotation array is [104.25,13.87] and in the appearance is [50,25] ", and more importantly to me is, how to correctly set the box size so that the text is not stretched ? I checked the iText Java API, it seems Ac

Re: [iText-questions] need help on TextField font

2008-04-28 Thread johniText
Hello, The code that produced this PDF is in my first post. I think you are right, when Adobe reader opens this PDF, it uses some appearance. But in my code I don't pre-define any appearance at all... If a correctly pre-defined appearance can make Adobe reader display the annotation text using

Re: [iText-questions] RTF and iTextSharp

2008-04-28 Thread Amy_D
Although this particular problem is solved using the new version of itextsharp, i cannot use it, since the old code i have created for PDF does not work!! e.g. FitsPage no longer accepts a PdfPTable. Is there any other workaround for the Rtf FitsPage problem using Rtfwriter? ( or the Rtfwrite

Re: [iText-questions] need help on TextField font

2008-04-28 Thread Paulo Soares
There's more than meets the eye and it's not about the font. The font is Helvetica bold but is stretched wide because the box size in the annotation array is [104.25,13.87] and in the appearance is [50,25]. I set this field using iText and the result was correct. Whatever set the field originall

[iText-questions] Any way to change margins of page 1 after document has been created?

2008-04-28 Thread Eric B.
Hi, Is there any way to change the margins of a page once the document has already been created & opened? I've tried putting it in an onOpenDocument() event, onStartPage() event and even onEndPage(), but all those events only seem to affect things as of page 2. Is there any way I can modify i

Re: [iText-questions] need help on TextField font

2008-04-28 Thread Leonard Rosenthol
Given that I don't know how you produced this PDF in the first place, I can't really comment specifically. What I see is Acrobat/Reader drawing the pre-defined appearance (/AP/ N) when the file is open. I guess this is what you think is incorrect. If so, whatever program created it did so w

Re: [iText-questions] need help on TextField font

2008-04-28 Thread 1T3XT info
johniText wrote: > On my machine the weired thing is when this pdf is opened, the > font is not what I set in the java code. But if you click the text > and then do some modification to the text, then the font changes > to be what I set in my java code. This doesn't happen on my PC!!! > My questi

Re: [iText-questions] Flatten a XFA form and got blank pages

2008-04-28 Thread Paulo Soares
AcroFields.regenerateField(). Paulo - Original Message - From: "JudyZW" <[EMAIL PROTECTED]> To: Sent: Monday, April 28, 2008 2:52 PM Subject: Re: [iText-questions] Flatten a XFA form and got blank pages > > Paulo, > > Thanks for the reply. I tried to use AcroFields.getField(key); to

Re: [iText-questions] Strange issue with iText within Lotus Notes.

2008-04-28 Thread 1T3XT info
[EMAIL PROTECTED] wrote: > > Hi, > > I changed the code to read the file off of the hard drive and all > computers are able to create PDF's with the image now. That's a big step in the right direction: you now know that this is NOT an iText problem, but a Lotus problem (so you might want to swi

Re: [iText-questions] Help me

2008-04-28 Thread 1T3XT info
bala ganesh wrote: > Hi > > i created a pdf document with itext. In that document i want to > create a footer with Table Name in right side and page number in left > side .. > > How its possible please send a code to me its usefull for me Add a PdfPTable at an absolute positi

Re: [iText-questions] how to decrease the size of the text in the footer

2008-04-28 Thread 1T3XT info
bala ganesh wrote: > i want to reduce the size of the footer text . how its possible Use a smaller font size. (Obvious answer, isn't it?) -- This answer is provided by 1T3XT BVBA - This SF.net email is sponsored by the 2008

Re: [iText-questions] iText / License

2008-04-28 Thread 1T3XT info
Peter Schöll wrote: > Do you agree with the following copyright text, which will apear in the > about box of our software. Or do you need any other issues regarding to > the license? > > --- > > This software incorporates iText, Copyright © 1999-2007 by Bruno Lowagi

Re: [iText-questions] iTextsharp - HTML to PDF, problem with Croatian characters

2008-04-28 Thread Bruno Lowagie
Vladimir Šetka wrote: > Hello Mr Lowagie, Please don't mail me personally, use the mailing list instead. > I'm trying to generate PDF from HTML automatically. This is the way I > tried it > > Document doc = new Document(PageSize.A4, 80, 50, 30, 65); > PdfWriter.GetInstance(doc, new System.IO.Fi

[iText-questions] Null pointer exception on signing files.

2008-04-28 Thread Christian Leclerc
Hello guy's , im trying to sign a pdf with entrust .. and I always get a null pointer exception ?? PdfReader tReader = new PdfReader("c:\\test\\test.pdf"); FileOutputStream tOutStream= new FileOutputStream("c:\\test\\signedFile.pdf"); java.

Re: [iText-questions] need help on TextField font

2008-04-28 Thread johniText
Hi Leonard, Thanks for your help. Could you please open the PDF I uploaded http://www.nabble.com/file/p16905159/textfield.pdf On my machine the weired thing is when this pdf is opened, the font is not what I set in the java code. But if you click the text and then do some modification to the tex

Re: [iText-questions] Flatten a XFA form and got blank pages

2008-04-28 Thread JudyZW
Paulo, Thanks for the reply. I tried to use AcroFields.getField(key); to regenerate form fields, but still got blank pages when open the flattened form. Could you suggest other ways to regenerate them? Thanks! Paulo Soares wrote: > > The form must be static and depending on what filled the

Re: [iText-questions] Strange issue with iText within Lotus Notes.

2008-04-28 Thread glen . hamel
Hi, I changed the code to read the file off of the hard drive and all computers are able to create PDF's with the image now. As this is not a web application, I am unable to test it as such. This is a pure Lotus Notes Client application. I was extracting the jpg from the lotus resource image

[iText-questions] iText / License

2008-04-28 Thread Peter Schöll
Dear Sir or Madam, we want to use the iText in our commercial product. Our product is a client-server software which is accessible over the network. We are acting as an ASP. Do you agree with the following copyright text, which will apear in the about box of our software. Or do you need any

Re: [iText-questions] create a BaseFont object with a .FON file

2008-04-28 Thread Leonard Rosenthol
On Apr 26, 2008, at 5:24 AM, Paulo Soares wrote: >> if what you say true, i'm actually losing my time working with pdf >> format. > > The pdf format will never use printer fonts, if it did it wouldn't be > portable (PDF is Portable Document Format). If you expect that from > a pdf > you should

Re: [iText-questions] need help on TextField font

2008-04-28 Thread Leonard Rosenthol
On Apr 25, 2008, at 4:39 PM, johniText wrote: > I don't understand why the font Arial is used instead font > Helvetica. Helvetica is supposed to be a standard font and supposed > to be available in all PDF applications right ? > No, Helvetica is NOT guaranteed to be available in all PDF applica

[iText-questions] how to decrease the size of the text in the footer

2008-04-28 Thread bala ganesh
i want to reduce the size of the footer text . how its possible Meet people who discuss and share your passions. Join them now. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this ye

[iText-questions] Help me

2008-04-28 Thread bala ganesh
Hi    i created a pdf document with itext. In that document i want to create a footer with Table Name in right side  and page number in left side .. How its possible please send a code to me its usefull  for meThanksGanesh Meet people who discuss and share your passions. Join

[iText-questions] Attempted to read past end of stream itextSharp, document.close()

2008-04-28 Thread sudhir thanki
hello, I have a problem merging mupltiple PDFs into single pdf using iTextSharp. I used iTextSharp to merge multiple PDFs into one pdf using c#.net there are few pdf files which are not merging may be bcoz of corrupted or damaged format or something else which i can't figure out. Bcoz it open

[iText-questions] Attempted to read past end of stream itextSharp, document.close()

2008-04-28 Thread sudhir thanki
hello, I have a problem merging mupltiple PDFs into single pdf using iTextSharp. I used iTextSharp to merge multiple PDFs into one pdf using c#.net there are few pdf files which are not merging may be bcoz of corrupted or damaged format or something else which i can't figure out. Bcoz it open

Re: [iText-questions] Flatten a XFA form and got blank pages

2008-04-28 Thread Paulo Soares
The form must be static and depending on what filled the field you may have to regenerate them. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of JudyZW > Sent: Monday, April 28, 2008 3:13 AM > To: itext-questions@lists.sourceforge.net > Su

[iText-questions] Digital signature applet (pdf signature based on iText)

2008-04-28 Thread Paúl Santapau
Hello, We would like to announce here that the University Jaume I has developed a multi porpouse digital signature applet that allows Internet Explorer and Mozilla Firefox to do digital signatures on client side. The applet is GPLv2 and is currently being developed on a stable phase,

Re: [iText-questions] yellow line at the end of page

2008-04-28 Thread Alexis Pigeon
Hi Deepak, In order to help you, you will need to provide a better example. What we ask you was already stated : "What do we need to solve this problem? A standalone JAVA program written by you, that we can run on our systems in order to create a PDF demonstrating the problem you are reporting."

Re: [iText-questions] yellow line at the end of page

2008-04-28 Thread scorpion
Hi, I am attaching here with the source code for the PDF that I generated. You may not be able to get connection to the database and get the required data. There are few other utility classes used for the same. But the code for rendering the pdf is quite straight forward and may be traversed once

[iText-questions] Flatten a XFA form and got blank pages

2008-04-28 Thread JudyZW
Hello, I used PdfStamper.setFormFlatten(true) to flatten a XFA form and got blank pages when opened the flatten form in Adobe Reader. Any idea will be highly appreciated. -- View this message in context: http://www.nabble.com/Flatten-a-XFA-form-and-got-blank-pages-tp16930289p16930289.html Sen

Re: [iText-questions] yellow line at the end of page

2008-04-28 Thread scorpion
Ok I will send you the java code very soon. cheers 1T3XT info wrote: > > scorpion wrote: >> Hi Paulo, >> I am sorry not to have attached the sample PDF page before. I am >> attaching >> the same right now. > > No, you are not: > >> http://www.nabble.com/file/p16925833/sampleReport..JPG sampleR

[iText-questions] Luk Lau/Nationwide/NWIE is out of the office.

2008-04-28 Thread LAUL
I will be out of the office starting 04/28/2008 and will not return until 05/02/2008. will be back :) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's stil

Re: [iText-questions] Error in iTextSharp when concatenating PDFs

2008-04-28 Thread Fabrizio Accatino
Johannes, the pdf files seems to have a problem in the XRef table. Ghostscript reports this: Warning: An error occurred while reading an XREF table. The file has been damaged. This may have been caused by a problem while converting or transfering the file. Ghosts