[iText-questions] About PDF problem

2002-05-29 Thread pc128



My friend,
 
    I have some problem for the 
PDF(iText),Needing your helping.
 
    I need that the PDF form submit the data 
to Web Server through IE by FDF format when IE(PDF Document) will close. I 
may define some JavaScript for submit the Form,But not FDF format and it 
is HTML format.
 
    Please give me a way for it! best give me a 
Java example.
   
    Thanks very much!
 
By Alan // I am from 
China 


Re: [iText-questions] About PDF text Justify

2002-05-29 Thread Bruno

Quoting Shyam Patil <[EMAIL PROTECTED]>:

> Hi 
> 
> How to Justify the text in the PDF file. 

Use Paragraph-objects and set the alignment to ALIGN_JUSTIFIED.

Bruno

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Forcing pagebreaks

2002-05-29 Thread Bruno

Quoting "Zielke, Andreas" <[EMAIL PROTECTED]>:

> int pageNumber = pdfDocument.getPageNumber();
> while (pageNumber == pdfDocument.getPageNumber()) {
> pdfDocument.add(emptyPara);
> }

First of all, you can have several (Pdf)Writers listening
to one and the same Document-object, so if you ask the Document
for a pageNumber, it doesn't know what Writer you mean.
You have to ask the (Pdf)Writer for the pagenumber.

Second remark: you can trigger a new page with the document.newPage()
method, so there is no need to add empty paragraphs.

HTH,
Bruno

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] question

2002-05-29 Thread Bruno

Quoting Hui Li <[EMAIL PROTECTED]>:

> Hi,
> I am using Itext PDF right now. Here is my question.
> I want to creat three tables one by one into one A4 page only. But it
> shows up total 2 pages. So do you have any method which I can use to set
> up row heights or force them to fill into just one page.

Use PdfPTable instead of Table.

Best regards,
Bruno

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Creating new pages / page numbers

2002-05-29 Thread Bruno

Quoting Paul Warren <[EMAIL PROTECTED]>:

> I am current creating PDF documents using absolute positioning of text
> and graphics, as described in chapter 10.
> 
> I'm a little confused about how to start a new page, and how to get the
> current page number.  At the moment I am calling:
> 
>   document.newPage();
> 
> which works, but only if something was actually written to the previous
> page.  This is not a great problem, but is there anyway to force a new
> page?  

Just add something (preferrable something that doesn't show up
when you print it) to the page.

> Is there a way to get the current page number?  document.getPageNumber()
> always returns 0.

You have to ask the (Pdf)Writer for the pagenumber, not the
Document-object. This is logical if you think about it: several
writer can listen to one and the same document. There is no way
a document can know which pagenumber (of which writer) you need.

Best regards,
Bruno

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] About PDF text Justify

2002-05-29 Thread Shyam Patil


Hi 



How to Justify the text in the PDF file. 



Thx in advance 



Shyam


[iText-questions] Forcing pagebreaks

2002-05-29 Thread Zielke, Andreas

Hi *,

I've just started to play around with iText. My short-term goal is to convert 
ASCII-files into PDF-files. As I'd like to keep the initial formatting, I chose 
Courier as font and made every line of input into a "Paragraph"-object, after
stripping linebreaks (\r\n or \n). I'm doing fine with most of the input, but 
the ASCII-data contains 0x0C (form feed) characters, too.
I've already created an empty paragraph

Font courier = FontFactory.getFont(FontFactory.COURIER, 10);
Paragraph emptyPara = new Paragraph("",courier);

which I also use as a replacement for input lines which only contain 
linebreaks.
So at first I tried this after reading 0x0C chars:

int pageNumber = pdfDocument.getPageNumber();
while (pageNumber == pdfDocument.getPageNumber()) {
pdfDocument.add(emptyPara);
}

But this seems to be an endless loop; though I don't understand why.
Next I tried more or less the same thing with PageEvents, but this try did
just the same thing - falling into an (presumably) endless loop.

Any suggestions how to do this right?

Cheers,
  Andreas


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Correct rending of Arabic fonts

2002-05-29 Thread SAY Ferdinand

Hi.  I tried to use arabic fonts (Traditional Arabic Bold) in iText library
but iText is not displaying correctly.  I manually reverse the string (right
to left), still only the letters of the arabic words are reverse but the way
it is written is still incorrect. Will iText support correct display of
Arabic characters in the future?

Regards,
Ferdie Say



IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] question

2002-05-29 Thread Hui Li

Hi,
I am using Itext PDF right now. Here is my question.
I want to creat three tables one by one into one A4 page only. But it
shows up total 2 pages. So do you have any method which I can use to set
up row heights or force them to fill into just one page.
 
Thank You!
 
Hui Li
 
  _  

 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the
system manager. This message contains confidential information and is
intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. If you are
not the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited. 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] 'Error Locating Object Handler' problem

2002-05-29 Thread Ramakrishna Kuppa
Title: RE: [iText-questions] 'Error Locating Object Handler' problem





Also check this out:
Unable to Locate Object Handler When Extension in URL Is Greater than 50 Characters (Q263847)
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q263847


Perhaps the problem might go out with the installation of the service pack!


-Original Message-
From: Gyula Szalai [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 8:47 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [iText-questions] 'Error Locating Object Handler' problem


Hi all,


We have made some research on the 
'Error Locating Object Handler' problem and 
I'd like to share my experience with you in the
hope that it may help somone who has faced the 
same thing.


The problem occurs with Acrobat Reader 4.0 and MSIE 5.0


The possible reasons of this problem can be:


1.) The URL of the generated PDF (usually a servlet's URL)
is too long. Our one was 468 chars long and it didn't work,
so we shortened it to about 120 by renaming and/or eliminating
parameters and the problem went away, however an other PDF
generation still produced the issue: see reason 2.


2.) There is a DLL called nppdf32.dll that needs to reside
either in 
Program Files\Internet Explorer\Plugins
- and -
Program Files\Adobe\Acrobat 4.0\Reader\browser


In our environment it was missing from the latter folder.


So, if you can, avoid this configuration.


HTH,
Gyula


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Gyula
> Szalai
> Sent: Thursday, May 23, 2002 4:56 PM
> To: Paulo Soares; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] 'Error Locating Object Handler' problem
> 
> 
> thanks Paulo,
> 
> I realized the same. It's some kind of
> m$ mistery, as usual :)
> Anyway we just disabled browser integration
> and then re-enabled, and it seems to be solved.
> (probably for a while...)
> 
> gY
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Paulo
> > Soares
> > Sent: Thursday, May 23, 2002 11:23 AM
> > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> > Subject: RE: [iText-questions] 'Error Locating Object Handler' problem
> > 
> > 
> > That's an IE problem and the size of the pdf also changes the behavior.
> > 
> > Best Regards,
> > Paulo Soares
> > 
> > > -Original Message-
> > > From: Gyula Szalai [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 23, 2002 12:35
> > > To:   [EMAIL PROTECTED]
> > > Subject:  [iText-questions] 'Error Locating Object Handler' problem
> > > 
> > > Hi all,
> > > 
> > > We have a problem with generating PDF with
> > > iText:
> > > 
> > > some of the generated PDFs (but not all!) don't 
> > > open in the browser (MSIE5.0sp1) but a window 
> > > pops up with the following title:
> > > "Error Locating Object Handler" and some other text.
> > > 
> > > I read that it's related to some windoze and/or
> > > acrobat plugin bug, but in this case all generated 
> > > PDFs should rise the same problem.
> > > 
> > > did anybody seen anything like this?
> > > 
> > > thanks in advance,
> > > Gyula
> > > 
> > > ___
> > > 
> > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > > 
> > > ___
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


___


Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm


___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions





[iText-questions] Creating new pages / page numbers

2002-05-29 Thread Paul Warren

I am current creating PDF documents using absolute positioning of text
and graphics, as described in chapter 10.

I'm a little confused about how to start a new page, and how to get the
current page number.  At the moment I am calling:

  document.newPage();

which works, but only if something was actually written to the previous
page.  This is not a great problem, but is there anyway to force a new
page?  

Is there a way to get the current page number?  document.getPageNumber()
always returns 0.

I suspect that I'm misunderstanding what this function is supposed to
do...

Paul

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] 'Error Locating Object Handler' problem

2002-05-29 Thread Gyula Szalai

Hi all,

We have made some research on the 
'Error Locating Object Handler' problem and 
I'd like to share my experience with you in the
hope that it may help somone who has faced the 
same thing.

The problem occurs with Acrobat Reader 4.0 and MSIE 5.0

The possible reasons of this problem can be:

1.) The URL of the generated PDF (usually a servlet's URL)
is too long. Our one was 468 chars long and it didn't work,
so we shortened it to about 120 by renaming and/or eliminating
parameters and the problem went away, however an other PDF
generation still produced the issue: see reason 2.

2.) There is a DLL called nppdf32.dll that needs to reside
either in 
Program Files\Internet Explorer\Plugins
- and -
Program Files\Adobe\Acrobat 4.0\Reader\browser

In our environment it was missing from the latter folder.

So, if you can, avoid this configuration.

HTH,
Gyula

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Gyula
> Szalai
> Sent: Thursday, May 23, 2002 4:56 PM
> To: Paulo Soares; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] 'Error Locating Object Handler' problem
> 
> 
> thanks Paulo,
> 
> I realized the same. It's some kind of
> m$ mistery, as usual :)
> Anyway we just disabled browser integration
> and then re-enabled, and it seems to be solved.
> (probably for a while...)
> 
> gY
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Paulo
> > Soares
> > Sent: Thursday, May 23, 2002 11:23 AM
> > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> > Subject: RE: [iText-questions] 'Error Locating Object Handler' problem
> > 
> > 
> > That's an IE problem and the size of the pdf also changes the behavior.
> > 
> > Best Regards,
> > Paulo Soares
> > 
> > > -Original Message-
> > > From: Gyula Szalai [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 23, 2002 12:35
> > > To:   [EMAIL PROTECTED]
> > > Subject:  [iText-questions] 'Error Locating Object Handler' problem
> > > 
> > > Hi all,
> > > 
> > > We have a problem with generating PDF with
> > > iText:
> > > 
> > > some of the generated PDFs (but not all!) don't 
> > > open in the browser (MSIE5.0sp1) but a window 
> > > pops up with the following title:
> > > "Error Locating Object Handler" and some other text.
> > > 
> > > I read that it's related to some windoze and/or
> > > acrobat plugin bug, but in this case all generated 
> > > PDFs should rise the same problem.
> > > 
> > > did anybody seen anything like this?
> > > 
> > > thanks in advance,
> > > Gyula
> > > 
> > > ___
> > > 
> > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > > 
> > > ___
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Re: talk about using itext in my application

2002-05-29 Thread Bruno

Quoting [EMAIL PROTECTED]:

> Hello Bruno,
>  
> I have developed a Java application called the TimingAnalyzer.
> It is a CAD type program for electronic design engineers.
>  
> www.timinganalyzer.net  
>  
> I have some difficulties in theory understanding what is needed
> to get a publishing quality image of the diagrams. I tried to 
> use a 3rd party EPS generator and Postscript generator. Both
> extend the java.awt.graphics and as it turns out I need support
> for some of the java2D methods.

iText supports most methods of the Graphics2D object.

> Can I use your program to generate scalable pdf images of
> my diagrams? 

Yes, but you may want to look at other SVG-generating software too.
  
> If I sell my program, does this violate your
> license agreement?  

No, you can sell a commercial program that uses iText as
long as you don't change the copyrights of iText and as
long as you point the buyer to the source code of iText
(your own program may remain closed source).
You can read more about it in the MPL.

> Can the pdf versions of the diagrams be converted to eps or ps?

PDF to PS is possible but I don't know which tools to use.
I forward your mail to the mailing list, so that other people
can help you on your way.
  
> Thanks for your time,
> Dan Fabrizio


Bruno

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Re: evaluating itext

2002-05-29 Thread Bruno

Quoting Sanjay Amatya <[EMAIL PROTECTED]>:

> hi i am evaluating your software iText for use. i would like to know
> if your library can be used to merge data with an existing PDF file.

Yes and no, only in a limited way:
http://www.lowagie.com/iText/faq.html#template
http://www.lowagie.com/iText/faq.html#parsepdf

> for example if
> i have a contact.pdf file with following tags: name (text), phone (text),
> gender (male or female: check-box). if i want to create a new PDF file
> merging data for an invidividual with the existing contact.pdf, can i
> achieve this with iText?

If you know the exact positions of your 'name-boxes', you can import
an existing page, add it to a new document and paint some text (from
your database) over the imported page at absolute positions.

I don't have an example.

Bruno

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Tables and positions

2002-05-29 Thread Bruno

Quoting pdf pdf <[EMAIL PROTECTED]>:

> Hi!
> I have two questions.
> 1. Can i put a table inside a footer?

If you are refering to the HeaderFooter object:
this will not lead to a nice result.

> if it is not posible.
> 2. Can i put a table in absolute position?

Yes, use PdfPTable and add it in a PageEvent.

Bruno

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] XML and cyrillic

2002-05-29 Thread Bruno

Quoting [EMAIL PROTECTED]:

> Hello list-members,
> 
> Is it possible to generate pdf document with greek, cyrillic or any language
> 
> characters with the iText xml API?
> 
> 
> ...
> 
>   Euro :  € 
>   Some cyrillic characters: И я 
> 
> 
> This example is efficient with the euro character but isn't with the
> cyrillic.
> And I know that comicbd support the cyrillic characters.
> 
> Anyone have any ideas?

Support for other encodings in XML is not written yet.
You can use a (rather dangerous) trick to solve the
problem (if your JVM is used for one purpose only):
set the encoding in FontFactory to the one you want
to use. Development of XML functionality is frozen
for the moment.

Bruno

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] XML and cyrillic

2002-05-29 Thread yannick

Hello list-members,

Is it possible to generate pdf document with greek, cyrillic or any language 
characters with the iText xml API?


...

  Euro :  € 
  Some cyrillic characters: И я 


This example is efficient with the euro character but isn't with the cyrillic.
And I know that comicbd support the cyrillic characters.

Anyone have any ideas?

Thanks,

Yannick.

 


-- 
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Tables and positions

2002-05-29 Thread pdf pdf

Hi!
I have two questions.
1. Can i put a table inside a footer?
if it is not posible.
2. Can i put a table in absolute position?

Thanks from Madrid.
Antonio.


_
Envíe y reciba su correo de Hotmail desde el móvil: http://mobile.msn.com


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions