[iText-questions] iText Problem

2013-06-11 Thread Gajanand Shendge
I got this exception while generating PDF of my JFrame.

com.lowagie.text.exceptions.IllegalPdfSyntaxException: Unbalanced
save/restore state operators

Following is the code snipshot of generating pdf.

In that this is  the instance of Jframe

Document document = new Document();

try {

//PdfWriter writer = PdfWriter.getInstance(document,new
FileOutputStream(f1.getSelectedFile()+.pdf));

PdfWriter writer = PdfWriter.getInstance(document,new
FileOutputStream(d:+File.separator+VIKAS_PDF+File.separator+datewisefolder+.pdf));

document.open();

PdfContentByte contentByte = writer.getDirectContent();



PdfTemplate template = contentByte.createTemplate(690,850);

Graphics2D g2 = template.createGraphics(680,840);

this.print(g2);

g2.dispose();

contentByte.addTemplate(template,25,-37);


if(document.isOpen()){

 try{document.close();

 }

 catch(Exception
e){JOptionPane.showMessageDialog(this,e);System.out.println(In finally
+e);

 }

}
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText Problem

2013-06-11 Thread iText Info

Op 11/06/2013 8:59, Gajanand Shendge schreef:
com.lowagie.text.exceptions.IllegalPdfSyntaxException: Unbalanced 
save/restore state operators

Was your post an answer or a question?
It's not clear.

Also: you're using a version of iText that is 4 years old (and thus no 
longer supported).

Please upgrade.
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText : problem with footers

2009-07-06 Thread ...tharas
Hello all,

I am using itext-1.3.1.jar for generating PDF reports. I have a problem
while trying to display footers.

My code is as below:


Document doc = new Document(PageSize.A4, leftMargin, rightMargin, topMargin,
bottomMargin);

try {

doc.addAuthor(XYZ);

doc.addSubject(My Subject);

doc.addCreationDate();



Table footerTable = new Table(2);

//footer.setBorder(0);

//footer.setDefaultCellBorder(0);

footerTable.addCell(new Phrase(XYZ Limited , new
RtfFont(Helvetica, footerStaticFontSize)));

footerTable.addCell(new Phrase(An XYZ initiative, new RtfFont(Helvetica,
footerStaticFontSize)));



//Create the RtfHeaderFooter and set it as the footer to use

doc.setFooter(new RtfHeaderFooter(footerTable));

doc.open();



Paragraph paragraph = new Paragraph(dateFormat.format(date), new
RtfFont(Helvetica, dateFontSize));

paragraph = new Paragraph(My Title , new
RtfFont(Helvetica, titleFontSize, RtfFont.BOLD));

paragraph.setAlignment(Paragraph.ALIGN_CENTER);

doc.add(paragraph);



paragraph = new Paragraph(\nREPORT ON EMPLOYEES, new
RtfFont(Helvetica, headingFontSize, RtfFont.BOLD));

paragraph.setAlignment(Paragraph.ALIGN_CENTER);

doc.add(paragraph);

}

catch(Exception e){

throw new Exception(e);

}

doc.close();



With this code, the PDF footer part is shown as Rectangle: 0.0x0.0. From
one site, I could understand that somewhere the toString() method is being
called. But could not get a solution to problem. Please help.


Roshni.
--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] iText : problem with footers

2009-07-06 Thread Paulo Soares
itext-1.3.1.jar is too old to be supported unless you have a maintenance 
contract. Nevertheless, why are you using RTF classes if the objective is to 
produce PDF?

Paulo 

 -Original Message-
 From: ...tharas [mailto:thar...@gmail.com] 
 Sent: Monday, July 06, 2009 1:06 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] iText : problem with footers
 
 Hello all,
 
 I am using itext-1.3.1.jar for generating PDF reports. I have 
 a problem while trying to display footers. 
 My code is as below:
 
 
 Document doc = new Document(PageSize.A4, leftMargin, 
 rightMargin, topMargin, bottomMargin);
 try {
 doc.addAuthor(XYZ);
 doc.addSubject(My Subject);
 doc.addCreationDate(); 
 Table footerTable = new Table(2);
 //footer.setBorder(0);
 //footer.setDefaultCellBorder(0);
 footerTable.addCell(new Phrase(XYZ Limited , new 
 RtfFont(Helvetica, footerStaticFontSize)));
 footerTable.addCell(new Phrase(An XYZ initiative, new 
 RtfFont(Helvetica, footerStaticFontSize)));
 //Create the RtfHeaderFooter and set it as the footer to use
 doc.setFooter(new RtfHeaderFooter(footerTable));
 doc.open(); 
 Paragraph paragraph = new Paragraph(dateFormat.format(date), 
 new RtfFont(Helvetica, dateFontSize));
 paragraph = new Paragraph(My Title , new 
 RtfFont(Helvetica, titleFontSize, RtfFont.BOLD));
 paragraph.setAlignment(Paragraph.ALIGN_CENTER);
 doc.add(paragraph);
 paragraph = new Paragraph(\nREPORT ON EMPLOYEES, new 
 RtfFont(Helvetica, headingFontSize, RtfFont.BOLD));
 paragraph.setAlignment(Paragraph.ALIGN_CENTER);
 doc.add(paragraph);
 }
 catch(Exception e){
 throw new Exception(e);
 }
 doc.close();
 With this code, the PDF footer part is shown as Rectangle: 
 0.0x0.0. From one site, I could understand that somewhere 
 the toString() method is being called. But could not get a 
 solution to problem. Please help.
 
 
 Roshni.


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] iText : problem with footers

2009-07-06 Thread Alexis Pigeon
Hi tharas,

2009/7/6 ...tharas thar...@gmail.com



 Hello all,

 I am using itext-1.3.1.jar for generating PDF reports. I have a problem
 while trying to display footers.

[...]

Some comments :
- iText 1.3.1 is more than 4 years old, you should NOT expect any support
for such an old version. At least no free support.
- You use the Table class. It's deprecated and not supported anymore. You
should use PdfPTable instead (though this class might not be existing back
then)
- You say you generate PDF documents, so why are you using RtfHeaderFooter,
which is specific to RTF documents generation?

Cheers,
alexis
--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] iText - Problem in filling Ukrainian text in textfields

2008-02-27 Thread Paulo Soares
Already asked and already answered.

Paulo 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of abhishek agarwal
 Sent: Wednesday, February 27, 2008 8:53 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] iText - Problem in filling 
 Ukrainian text in textfields
 
 
 
   Hi All,
   
   I have created template forms using Adobe professional 
 containing a number of text fields with font set to one of 
 the Ukrainian fonts. I now stamp the pdf template with data 
 at run time but the Ukranian letters are lost and not printed 
 when the stamping is done and only English letters are printed.
   Please help as what could be wrong in my approach and 
 how can I rectify this.
   
   Thanks in advance,
   Abhishek 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] iText - Problem in filling Ukrainian text in text fields

2008-02-27 Thread abhishek agarwal


Hi All,

I have created template forms using Adobe professional containing  a number of 
text fields with font set to one of the Ukrainian fonts. I now stamp  the pdf 
template with data at run time but the Ukranian letters are lost and not  
printed when the stamping is done and only English letters are  printed.
Please help as what could be wrong in my approach and how can I  rectify this.

Thanks in advance,
Abhishek   

-
 Unlimited freedom, unlimited storage. Get it now

   
-
 Bollywood, fun, friendship, sports and more. You name it,  we have it.-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText - Problem in filling Ukrainian text in textfields

2008-02-25 Thread Paulo Soares
It would be helpful to see your PDF.

Paulo 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of abhishek agarwal
 Sent: Monday, February 25, 2008 6:25 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] iText - Problem in filling 
 Ukrainian text in textfields
 
 Hi All,
 
 I have created template forms using Adobe professional 
 containing a number of text fields with font set to one of 
 the Ukrainian fonts. I now stamp the pdf template with data 
 at run time but the Ukranian letters are lost and not printed 
 when the stamping is done and only English letters are printed.
 Please help as what could be wrong in my approach and how can 
 I rectify this.
 
 Thanks in advance,
 Abhishek 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] iText - Problem in filling Ukrainian text in text fields

2008-02-24 Thread abhishek agarwal
Hi All,

I have created template forms using Adobe professional containing  a number of 
text fields with font set to one of the Ukrainian fonts. I now stamp  the pdf 
template with data at run time but the Ukranian letters are lost and not  
printed when the stamping is done and only English letters are  printed.
Please help as what could be wrong in my approach and how can I  rectify this.

Thanks in advance,
Abhishek 
   
-
 Unlimited freedom, unlimited storage. Get it now-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] iText Problem

2008-01-07 Thread hoss *
Dear Sir;

  i have a problem when  using iText to produced pdf , when i insert header
and footer on each pdf page the header will be override the content of the
page, so i need to know how i can shrunk the pdf content to insert the
header before the content.

Thanks
Hossam Rgaab
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText Problem

2008-01-07 Thread mister bean

It's hard to know what to recommend without knowing what your content is. If
your content is text, then increase the margins on the page until there is
no overlap. If it's an image, scale the image, using the scaleToFit methods
as described in the book.

---Mister Bean
 

hoss * wrote:
 
 Dear Sir;
 
   i have a problem when  using iText to produced pdf , when i insert
 header
 and footer on each pdf page the header will be override the content of the
 page, so i need to know how i can shrunk the pdf content to insert the
 header before the content.
 
 Thanks
 Hossam Rgaab
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/iText-Problem-tp14675009p14677817.html
Sent from the iText - General mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] IText problem with images

2007-07-19 Thread geronimof
Hi,

I am using itext to create dynamic web pdf. 
For some reason when i add the
 Image jpg = Image.getInstance(image.gif);
I get a ExceptionConverter: java.io.IOException: The document has no pages
error.

This works when i save it on a pdf locally, but it doesnt work when I try to do 
it dynamically on a web, using bytearrayoutputstream.

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/itext-questions@lists.sourceforge.net/topic.html

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] IText problem with images

2007-07-19 Thread Paulo Soares
It's probably throwing an exception that you are ignoring.

Paulo

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of [EMAIL PROTECTED]
 Sent: Thursday, July 19, 2007 4:12 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] IText problem with images
 
 Hi,
 
 I am using itext to create dynamic web pdf. 
 For some reason when i add the
  Image jpg = Image.getInstance(image.gif);
 I get a ExceptionConverter: java.io.IOException: The document 
 has no pages
 error.
 
 This works when i save it on a pdf locally, but it doesnt 
 work when I try to do it dynamically on a web, using 
 bytearrayoutputstream.


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] IText problem with images

2007-07-19 Thread geronimo ferreira
Thanks for the response but i found that the problem is the location of the 
image.

For some reason is not reading the image when i put the image inside the 
workspace(where i have all the source code), but it reads it if i put it 
outside of the workspace..

sincerely
geronimo.

Paulo Soares [EMAIL PROTECTED] wrote: It's probably throwing an exception 
that you are ignoring.

Paulo

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of [EMAIL PROTECTED]
 Sent: Thursday, July 19, 2007 4:12 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] IText problem with images
 
 Hi,
 
 I am using itext to create dynamic web pdf. 
 For some reason when i add the
  Image jpg = Image.getInstance(image.gif);
 I get a ExceptionConverter: java.io.IOException: The document 
 has no pages
 error.
 
 This works when i save it on a pdf locally, but it doesnt 
 work when I try to do it dynamically on a web, using 
 bytearrayoutputstream.


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. -
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] [iText] Problem in adding text watermark on a PDF

2006-11-27 Thread Patrick Kaegi
yes! you're right.

the problem only exists if we use our special font. we do it like this:

  String normalFontName = Frutiger-Cn;
  String normalFontFile = externals/fonts/Ftc_.ttf;
  String boldFontName = Frutiger-BlackCn;
  String boldFontFile = externals/fonts/Ftblc___.ttf;
  FontFactory.register(normalFontFile);
  Font normalFont = new Font(FontFactory.getFont(normalFontName));
  FontFactory.register(boldFontFile);
  Font boldFont = new Font(FontFactory.getFont(boldFontName));

if you do it like this with these fonts you can reproduce the 'bug'.

should I send you also the font files?

thanks for you help
patrick




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] [iText] Problem in adding text watermark on a PDF

2006-11-27 Thread Bruno Lowagie
Patrick Kaegi wrote:
 the problem only exists if we use our special font.

I haven't seen that kind of behavior before.

 should I send you also the font files?

Frutiger is not a free font. Please don't send it.
I think I have it somewhere at work.
I'll do my test with it tomorrow.
br,
Bruno

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] iText Problem with Table.setTableFitsPage()

2006-09-13 Thread Marcus Gotze
Hello all,

I created a pdf document with three tables in it.
The third table should appear on one page. So i set the
Table.setTableFitsPage() to true.
But when i create the document again, the table is split into two parts and
is displayed on two pages.

Thanks,
marcus


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: RE: RE: [iText-questions] iText problem with Linux(non-gui)

2005-02-21 Thread Paulo Soares
That's probably a corruption in your jdk or you need to compile iText
with 1.3. 

 -Original Message-
 From: arse alam [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 21, 2005 12:10 PM
 To: Paulo Soares
 Subject: Re: RE: RE: [iText-questions] iText problem with 
 Linux(non-gui)
 
 
 Sending PO.java and PO.class
 
 When i am Executing
 jdk1.3.1_12/bin/java  -Xms24m -Xmx96m -Xverify:none PO
 
 This exception occur:
 
 Exception in thread main java.lang.ClassFormatError: 
 Unknown constant tag in .class file at 
 java.lang.ClassLoader.defineClass0(Native Method) at 
 java.lang.ClassLoader.defineClass(ClassLoader.java:488) at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.
 java:106) at 
 java.net.URLClassLoader.defineClass(URLClassLoader.java:243) 
 at java.net.URLClassLoader.access$100(URLClassLoader.java:51) 
 at java.net.URLClassLoader$1.run(URLClassLoader.java:190) at 
 java.security.AccessController.doPrivileged(Native Method) at 
 java.net.URLClassLoader.findClass(URLClassLoader.java:183) at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:294) at 
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288) 
 at java.lang.ClassLoader.loadClass(ClassLoader.java:250) at 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) 
 at PO.main(PO.java:17) 
 
 
 On Mon, 21 Feb 2005 Paulo Soares wrote :
 The exception stack trace.
 
   -Original Message-
   From: arse alam [mailto:[EMAIL PROTECTED]
   Sent: Monday, February 21, 2005 5:54 AM
   To: Paulo Soares
   Subject: Re: RE: [iText-questions] iText problem with 
 Linux(non-gui)
  
   Hi Soares,
  
   Thank for reply.
  
   I did't mean, what do you want to ask.
   Please explain me.
  
  
  
  
   On Sat, 19 Feb 2005 Paulo Soares wrote :
   What's the full stack trace?
   
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of arse alam
 Sent: Saturday, February 19, 2005 12:39 PM
 To: itext-questions@lists.sourceforge.net
 Cc: [EMAIL PROTECTED]
 Subject: [iText-questions] iText problem with Linux(non-gui)

 Dear Sir/Madam

 I am using iText for PDF Generation.

 I it working fine in windows, but

 but this give Exceptions(null
 java.lang.reflect.InvocationTargetException) in Linux(non-gui)
 Please give me early solution.

 Error On:
 PdfWriter.getInstance(document, new 
 FileOutputStream(fileName));

 BaseFont.createFont(as__.ttf, BaseFont.CP1252,
 BaseFont.EMBEDDED);





 Thank You


 Arse Alam
 -









  http://clients.rediff.com/signature/track_sig.asp

  
  
  
  
http://clients.rediff.com/signature/track_sig.asp
  
 
 
 
 
  http://clients.rediff.com/signature/track_sig.asp  
 


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] iText problem with Linux(non-gui)

2005-02-19 Thread Paulo Soares
What's the full stack trace? 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of arse alam
 Sent: Saturday, February 19, 2005 12:39 PM
 To: itext-questions@lists.sourceforge.net
 Cc: [EMAIL PROTECTED]
 Subject: [iText-questions] iText problem with Linux(non-gui)
 
 Dear Sir/Madam
 
 I am using iText for PDF Generation.
 
 I it working fine in windows, but 
 
 but this give Exceptions(null 
 java.lang.reflect.InvocationTargetException) in Linux(non-gui)
 Please give me early solution.
 
 Error On:
 PdfWriter.getInstance(document, new FileOutputStream(fileName));
 
 BaseFont.createFont(as__.ttf, BaseFont.CP1252, 
 BaseFont.EMBEDDED); 
 
 
 
 
 
 Thank You
 
 
 Arse Alam
 -
 
 
 
 
 
 
 
 
 
  http://clients.rediff.com/signature/track_sig.asp  
 


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] iText problem

2004-07-08 Thread Vincenzo De Filippis



hi,
i have a problem with a method of itext code when i 
compile.

this is the part of class:

i have the problem when i call 
getParameterMap().

protected Element 
makeHTTPParameterInfoElement(final 
HttpServletRequest 
req){ 
Map mapParameters = 
null; 
 
mapParameters = new 
java.util.TreeMap(req.getParameterMap());//mapParameters = new 
java.util.TreeMap(req.getContentType());

Table tab = null;

tab = 
makeTableFromMap("HTTP parameter 
name","HTTP parameter 
value",mapParameters);return 
(Element) tab;}

thanks to everybody.
vins


RE: [iText-questions] iText problem

2004-07-08 Thread Paulo Soares



You are using an old servlet version. That method was 
introduced in J2EE 1.3. You can get the same info with getParameterNames() and 
getParameterValues().

Best Regards,
Paulo Soares

  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Vincenzo De FilippisSent: Thursday, July 08, 2004 1:14 
  PMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] iText problem
  
  hi,
  i have a problem with a method of itext code when 
  i compile.
  
  this is the part of class:
  
  i have the problem when i call 
  getParameterMap().
  
  protected Element 
  makeHTTPParameterInfoElement(final 
  HttpServletRequest 
  req){ 
  Map mapParameters = 
  null; 
   
  mapParameters = new 
  java.util.TreeMap(req.getParameterMap());//mapParameters = new 
  java.util.TreeMap(req.getContentType());
  
  Table tab = null;
  
  tab = 
  makeTableFromMap("HTTP parameter 
  name","HTTP parameter 
  value",mapParameters);return 
  (Element) tab;}
  
  thanks to everybody.
  vins


RE: [iText-questions] Itext problem

2003-03-14 Thread Paulo Soares
Are you sure you need to do it? There's a Unicode range that has full width
forms including roman characters. It starts at \uff00.

Best Regards,
Paulo Soares

 -Original Message-
 From: [EMAIL PROTECTED]
 [SMTP:[EMAIL PROTECTED]
 Sent: Friday, March 14, 2003 6:57
 To:   '[EMAIL PROTECTED]'
 Subject:  [iText-questions] Itext problem
 
 How could I change the traditional Chinese font widths?
 My source code is as the following:
  BaseFont bf = BaseFont.createt(/dir1/dir2/kaiu.ttf,
 BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
  int widths[] = bf.getWidths();  
for (int k = 0; k  widths.length; ++k) {  
if (widths[k] != 0)
  widths[k] = 1000; }
  bf.setForceWidthsOutput(true);  
   document.add(new Paragraph(A big text to show Helvetica with fixed
 width., new Font(bf)));  
}   
 catch (Exception de) {de.printStackTrace(); } 
document.close();
 
 But  it does not work ,the widths remain the same. 
 
 
 ---
 This SF.net email is sponsored by:Crypto Challenge is now open! 
 Get cracking and register here for some mind boggling fun and 
 the chance of winning an Apple iPod:
 http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] [Itext Problem] : Images not displayed correct

2002-06-14 Thread martin . hald

[Itext Problem] : Images not displayed correct
Hello together,

hope somebody can help me. I'm using Itext version 0.92.
now i've got the following problem when i'd like to create PDF from an HTML
file.
I'd like to write two images side by side.

 I'd tried the following html code:

test 1
table border=1 width=450
tr
tdimg src=neu.jpg width=200 height=200/img/td
tdimg src=neu.jpg width=200 height=200/img/td
/tr
/table

test2
p
spanimg src=neu.jpg width=200 height=200/img/span
spanimg src=neu1.jpg width=200 height=200/img/span
/p

test3
table border=1 width=400
colgroup
col width=200/col
col width=200/col
/colgroup
tr
tdimg src=neu.jpg width=200 height=200/img/td
tdimg src=neu.jpg width=200 height=200/img/td
/tr
/table
/body
/html

but that doesn't really work. I get an Output like this :
(Embedded image moved to file: pic32444.pcx)
Can somebody tell me how i got this 2 images side by side and in the right size ?

Thanks


pic32444.pcx
Description: Binary data