[iText-questions] Re: PdfPCell colspan

2002-06-24 Thread Cooremans, Rony

Why dont you do the folowing ?

PdfPCell cell = new PdfPCell(new Phrase(my phrase, font));
cell.setColspan(colspan);
ptable.addCell(cell);


Message: 1
From: Miller, Eric [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
 [EMAIL PROTECTED]
Date: Fri, 21 Jun 2002 13:46:25 -0600
Subject: [iText-questions] PdfPCell colspan

Without knowing anything about what it would take someone to implement
something like this, would anyone else find it useful to have an overidden
method for either PdfPTable.addCell() or PdfPCell.setPhrase() that included
the colspan?  As in:

pcell.setPhrase(new Phrase(my phrase, font), colspan)
or
ptable.addCell(cell, colspan)

I'm finding my PdfPTable code does a lot of changing colspans.
just curious
e miller







---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] itext implementation

2002-06-24 Thread Bruno

Quoting Jonathan Dawson [EMAIL PROTECTED]:

 Hello,
  I am a developer who uses iText to create dynamic PDFs for our
 Members.  We have used it for quite a while, and it works well.
  The biggest issue we have is its inefficiency.  The version we have is
 extremely CPU intensive and takes a long time to produce a PDF.  We were
 able to optimize the PDF output, increasing its speed by up to 400%, by
 pre-formatting the tables.  Anyhow, the output quality is very nice.

It would be nice if we could see how it's done.

Bruno


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] Current CVS

2002-06-24 Thread Erwin Achermann

Hi, i proposed this change when implementing the table-in-colspanned cells feature. 
This method is so 'internal' that no one outside the iText package should need to call 
it. It should be ensured that iText calls it when necessary internally. If the writers 
beeing in sub-packages cannot access it, then i missunderstood the term 'package 
protected' and it is indeed a bug then, however my pdfwriter accesses it correctly... 
and besides, i don't even know wether this particular change is due to my proposals :) 

Cheers
Erwin

 -Original Message-
 From: Mark Hall [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 22, 2002 9:18 AM
 To: Bruno
 Cc: itext-questions
 Subject: [iText-questions] Current CVS
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi
 
 I've got a problem with the current CVS version. The table object used
 to have a public void complete() method. In the current version this
 method is specified as void complete(). Unfortunately all Writers
 depend on this method being public, because they call it before
 processing Tables.
 I'm not sure whether there's been a design change here or if this is
 just a bug.
 
 Greetings,
 Mark
 - --
 The cause of the problem is:
 Webmasters kidnapped by evil cult.
 
 My GPG key is available at:
 http://www.edu.uni-klu.ac.at/~mhall/files/MarkHall.asc
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.7 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iQEVAwUBPRQkmkks8txBCICQAQIsWwgAjbsBki1LZ25MWEYPQmKNTVpH0uQdh5OB
 zedK2Ptu9xNFZSPc9HARN0xMDpNwm4Y+KEF225iToaOoaTf1XBQ6km8299zQrHl4
 LzTrKf1TkslnhNvlYR3NaifxuI5qwiDI4EavLoBieQibjSBbrR8ETFXi1woJp1Kb
 DzNqdqvPtV4oNlAcmTYPfY6jcTeYAt/XWBGOuY35LMcz1Q+Aseqmr7ZVWCyihNvR
 pCwSo9sYWdoSFb5lDy6WWXzNspoqLs51G+qPoM4idLV2QqffR5EqIm20rXLrxU2r
 HhG7jYjhxDK5MSLw64+gzj26bBZT+KJOFPX7K7N1pJu99WU1tHSJDA==
 =X4Ag
 -END PGP SIGNATURE-
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Current CVS

2002-06-24 Thread Bruno Lowagie

Mark Hall wrote:

 I've got a problem with the current CVS version. The table object used
 to have a public void complete() method.

Sorry, I received some new code and uploaded it to CVS without testing.
I made the complete method public again.

 I'm not sure whether there's been a design change here or if this is
 just a bug.

It is part of a design change, but for the moment the complete method
can be public. The person who wrote the code warned me that some
functionality could be broken, so I am going to test everything before
I make a new release.

Bruno



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] about OpenType font

2002-06-24 Thread KuMi
Hello all,

I would like to know if latest version (1.00) of iText support CJK OpenType
font other than fonts in Asian font pack.

Best regard,
KuMi



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Using JSP example

2002-06-24 Thread Bruno

Quoting m g [EMAIL PROTECTED]:

 
 Hello.
 
 I am new to itext and going through the tutorial.  I am trying to work with
 the pdf.jsp example written by Tal Liron and I am getting the following
 message.

First of all: it is never a good idea to generate PDF with JSP.
JSP doesn't handle binary data very will (encoding problems).

In your case, I think you have added newlines, spaces,...
to the original code without knowing it.
As you can see in the code, the content-length-header is set
because of an MSIE problem. Maybe you are adding extra content
(more than the length) by adding 'unvisible' characters...

Anyway, if you get the code from CVS the right way,
you should see something like this:
http://www.lowagie.com/iText/examples/pdf.jsp

best regards,
Bruno




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] XML + accentuate character

2002-06-24 Thread Bruno

Quoting Christophe Gadaix [EMAIL PROTECTED]:

 Hello,
 
 I'm a french developper and I use the XML parser to generate accentuate
 character (like é). But it seems it doesn't display the 'é'. The second
 effect is that it eats the next two second letters (ex : 'éatt' becomes
 't').
 I don't know if it is a font problem or if I don't code it correctly.

I asked around and we seem to have the same problem in some
of our projects. I'll try to come up with a solution soon.

Bruno



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] XML + accentuate character

2002-06-24 Thread Christophe Gadaix

Thank you Bruno. I hope it will be soon.
This XML module is so interesting. This is the ideal way I found to generate
dynamic PDF.

Christophe.

-Message d'origine-
De : Bruno [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 24 juin 2002 13:33
À : Christophe Gadaix
Cc : [EMAIL PROTECTED]
Objet : Re: [iText-questions] XML + accentuate character


Quoting Christophe Gadaix [EMAIL PROTECTED]:

 Hello,

 I'm a french developper and I use the XML parser to generate accentuate
 character (like é). But it seems it doesn't display the 'é'. The second
 effect is that it eats the next two second letters (ex : 'éatt' becomes
 't').
 I don't know if it is a font problem or if I don't code it correctly.

I asked around and we seem to have the same problem in some
of our projects. I'll try to come up with a solution soon.

Bruno





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] XML + accentuate character

2002-06-24 Thread Christophe Gadaix

Fred gives me the solution :
I used the UTF 8 encoding (?xml version=1.0 encoding=UTF-8?). I've
changed the encoding as following : ?xml version=1.0
encoding=iso-8859-1 ? and it works !


Thanks !


-Message d'origine-
De : Bruno [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 24 juin 2002 13:33
À : Christophe Gadaix
Cc : [EMAIL PROTECTED]
Objet : Re: [iText-questions] XML + accentuate character


Quoting Christophe Gadaix [EMAIL PROTECTED]:

 Hello,

 I'm a french developper and I use the XML parser to generate accentuate
 character (like é). But it seems it doesn't display the 'é'. The second
 effect is that it eats the next two second letters (ex : 'éatt' becomes
 't').
 I don't know if it is a font problem or if I don't code it correctly.

I asked around and we seem to have the same problem in some
of our projects. I'll try to come up with a solution soon.

Bruno





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] XML + accentuate character

2002-06-24 Thread Bruno Lowagie

Christophe Gadaix wrote:

Fred gives me the solution :
I used the UTF 8 encoding (?xml version=1.0 encoding=UTF-8?). I've
changed the encoding as following : ?xml version=1.0
encoding=iso-8859-1 ? and it works !

Yes, I was just going to mail you the same answer ;-)

Anyway, I found another bug in that area:
If you have this with the right encoding:
paragraph leading=14.0è è é/paragraph
no problem,

But if you have this:
paragraph leading=14.0#232; #232; #233;/paragraph
The spaces are 'eaten' away. I will try to solve this soon.

Bruno



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Nested tables

2002-06-24 Thread Susana Pereira

Hi, i started using iText a few days ago and unfortunately I’m still having 
some troubles using tables.

I need to create a Pdf page with several different tables within a 'big' 
table. I did it using nested tables. The problem is that each table must 
have an outside border but not an inside border.

Something like this:

table border=1
table border=1
cell border=0 a /cell
/table

table border=1
cell border=0 b /cell
/table

table border=1
cell border=0 c /cell
/table
/table

I already tried to use class Table and class PdfPTable but can’t produce the 
desired output.

Thanks.

S Pereira.




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Re: PdfPCell colspan

2002-06-24 Thread Matt Benson

I understood the original complaint to be that he was
calling setColspan over and over.  I believe that the
advice Paulo would give would be to subclass PdfPCell
and call setColspan in the constructor.

-Matt

--- Cooremans, Rony
[EMAIL PROTECTED] wrote:
 Why dont you do the folowing ?
 
 PdfPCell cell = new PdfPCell(new Phrase(my phrase,
 font));
 cell.setColspan(colspan);
 ptable.addCell(cell);
 
 
 Message: 1
 From: Miller, Eric [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]'
  [EMAIL PROTECTED]
 Date: Fri, 21 Jun 2002 13:46:25 -0600
 Subject: [iText-questions] PdfPCell colspan
 
 Without knowing anything about what it would take
 someone to implement
 something like this, would anyone else find it
 useful to have an overidden
 method for either PdfPTable.addCell() or
 PdfPCell.setPhrase() that included
 the colspan?  As in:
 
 pcell.setPhrase(new Phrase(my phrase, font),
 colspan)
 or
 ptable.addCell(cell, colspan)
 
 I'm finding my PdfPTable code does a lot of changing
 colspans.
 just curious
 e miller
 
 
 
 
 
 
 

---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]

https://lists.sourceforge.net/lists/listinfo/itext-questions


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Re: PdfPCell colspan

2002-06-24 Thread Matt Benson

Yes, that is his point as I see it--he wants to
abbreviate/simplify his code.  Subclassing should
achieve that.

-Matt

--- Cooremans, Rony
[EMAIL PROTECTED] wrote:
 mm doesent that comes to the same in essence ?
 
 you add a cell and before you add it to the table
 you give it a certain
 colspan ?
 or do i see that wrong ?
 
 if you can do pcell.setPhrase(new Phrase(my phrase,
 font), colspan) like
 he suggested
 isent that the same as making a cell of the phrase ,
 setting colspan and
 then adding it to the table
 
 the only think that i see is that it would be
 shorter with his
 suggestion
 
 
 Matt Benson wrote:
 
  I understood the original complaint to be that he
 was
  calling setColspan over and over.  I believe that
 the
  advice Paulo would give would be to subclass
 PdfPCell
  and call setColspan in the constructor.
 
  -Matt
 
  --- Cooremans, Rony
  [EMAIL PROTECTED] wrote:
   Why dont you do the folowing ?
  
   PdfPCell cell = new PdfPCell(new Phrase(my
 phrase,
   font));
   cell.setColspan(colspan);
   ptable.addCell(cell);
  
  
   Message: 1
   From: Miller, Eric [EMAIL PROTECTED]
   To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]
   Date: Fri, 21 Jun 2002 13:46:25 -0600
   Subject: [iText-questions] PdfPCell colspan
  
   Without knowing anything about what it would
 take
   someone to implement
   something like this, would anyone else find it
   useful to have an overidden
   method for either PdfPTable.addCell() or
   PdfPCell.setPhrase() that included
   the colspan?  As in:
  
   pcell.setPhrase(new Phrase(my phrase, font),
   colspan)
   or
   ptable.addCell(cell, colspan)
  
   I'm finding my PdfPTable code does a lot of
 changing
   colspans.
   just curious
   e miller
  
  
  
  
  
  
  
  
 

---
   Sponsored by:
   ThinkGeek at http://www.ThinkGeek.com/
   ___
   iText-questions mailing list
   [EMAIL PROTECTED]
  
 

https://lists.sourceforge.net/lists/listinfo/itext-questions
 
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.yahoo.com
 
 --
 Rony Cooremans
 
 TRASYS N.V.
 MVG, LIN, AOSO,  afdeling Geotechniek
 Arianelaan 7, 1200 Brussel
 Tramstraat 52, 9052 Zwijnaarde
 Tel: 02/773.94.87
 Tel: 09/240.75.24
 
 
 e-mail Trasys: mailto:[EMAIL PROTECTED]
 e-mail LIN: mailto:[EMAIL PROTECTED]
 
 



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] (no subject)

2002-06-24 Thread amala kethineni

Hi ,

 I am creating a simple PDF document and my document
runs into 10 pages. I am using font size 8 and I want
the space between the lines as 8. With the code given
here ,
  the first page looks better with only 8 as leading
value but all other pages from 2 to 10 are defaulting
to 8x1.5=12 leading. What's wrong with this code ?

 
public ByteArrayOutputStream toPdf(StringBuffer
inBuffer, String headerBuffer, String footerBuffer,
String legendBuffer,boolean landscape)
{
//StringBuffer outBuffer = new StringBuffer();
ByteArrayOutputStream outputStream = new
ByteArrayOutputStream();

// creation of the document with a certain size and
certain margins
Document document = null;
if (landscape) {
document = new
Document(PageSize.LETTER.rotate(), 5, 5, 5, 5);
} else {
document = new Document(PageSize.LETTER, 50, 50,
50, 50);
}

try {
// creation of the different writers
//PdfWriter.getInstance(document, new
FileOutputStream(text.pdf));
PdfWriter.getInstance(document, outputStream);

// Use courier font 
Font standardFont = new Font(Font.COURIER, 8,
Font.NORMAL, new Color(0, 0, 0));


 // we add a Header that will show up on PAGE 1
HeaderFooter header = new HeaderFooter(new
Phrase(headerBuffer), false);
document.setHeader(header);
  
// we add a Footer that will show up on PAGE 2
HeaderFooter footer = new HeaderFooter(new
Phrase(footerBuffer), true);
document.setFooter(footer);

// Open the document for writing
document.open();

// Create a paragraph with our input StringBuffer   

Paragraph paragraph = new Paragraph(8,
inBuffer.toString(), standardFont); 
document.add(paragraph);

// we reset the page numbering
document.resetPageCount();
// we trigger a page break
document.newPage();
 // we add some more content
document.add(new
Paragraph(legendBuffer,standardFont));

}
//  catch(DocumentException e) {
catch(Exception e) {
// We need to actually throw this message up ...
System.err.println(e.getMessage());
}
   
// Close the document
document.close();

return outputStream;
}

 

 Thanks,
bala




__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] problem with space between the lines

2002-06-24 Thread amala kethineni

Hi ,

 I am creating a simple PDF document and my document
runs into 10 pages. I am using font size 8 and I want
the space between the lines as 8. With the code given
here ,
  the first page looks better with only 8 as leading
value but all other pages from 2 to 10 are defaulting
to 8x1.5=12 leading. What's wrong with this code ?

 
public ByteArrayOutputStream toPdf(StringBuffer
inBuffer, String headerBuffer, String footerBuffer,
String legendBuffer,boolean landscape)
{
//StringBuffer outBuffer = new StringBuffer();
ByteArrayOutputStream outputStream = new
ByteArrayOutputStream();

// creation of the document with a certain size and
certain margins
Document document = null;
if (landscape) {
document = new
Document(PageSize.LETTER.rotate(), 5, 5, 5, 5);
} else {
document = new Document(PageSize.LETTER, 50, 50,
50, 50);
}

try {
// creation of the different writers
//PdfWriter.getInstance(document, new
FileOutputStream(text.pdf));
PdfWriter.getInstance(document, outputStream);

// Use courier font 
Font standardFont = new Font(Font.COURIER, 8,
Font.NORMAL, new Color(0, 0, 0));


 // we add a Header that will show up on PAGE 1
HeaderFooter header = new HeaderFooter(new
Phrase(headerBuffer), false);
document.setHeader(header);
  
// we add a Footer that will show up on PAGE 2
HeaderFooter footer = new HeaderFooter(new
Phrase(footerBuffer), true);
document.setFooter(footer);

// Open the document for writing
document.open();

// Create a paragraph with our input StringBuffer   

Paragraph paragraph = new Paragraph(8,
inBuffer.toString(), standardFont); 
document.add(paragraph);

// we reset the page numbering
document.resetPageCount();
// we trigger a page break
document.newPage();
 // we add some more content
document.add(new
Paragraph(legendBuffer,standardFont));

}
//  catch(DocumentException e) {
catch(Exception e) {
// We need to actually throw this message up ...
System.err.println(e.getMessage());
}
   
// Close the document
document.close();

return outputStream;
}

 

 Thanks,
 bala




__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] Re: PdfPCell colspan

2002-06-24 Thread Matt Benson

It's the kind of obvious solution that is so obvious
it slips right by.  I wouldn't have thought of it
myself if I hadn't seen Paulo hand out similar answers
several times previously... :)  Glad I could help.

-Matt

--- Miller, Eric [EMAIL PROTECTED] wrote:
 Yes, I did want to abbreviate the code.  Subclassing
 did work, and I
 probably should have thought of that earlier. 
 Thanks for the help.
 e miller
 
  -Original Message-
  From:   Matt Benson [SMTP:[EMAIL PROTECTED]]
  Sent:   Monday, June 24, 2002 9:02 AM
  To: Cooremans, Rony
  Cc: [EMAIL PROTECTED]
  Subject:Re: [iText-questions] Re: PdfPCell
 colspan
  
  Yes, that is his point as I see it--he wants to
  abbreviate/simplify his code.  Subclassing should
  achieve that.
  
  -Matt
  
  --- Cooremans, Rony
  [EMAIL PROTECTED] wrote:
   mm doesent that comes to the same in essence ?
   
   you add a cell and before you add it to the
 table
   you give it a certain
   colspan ?
   or do i see that wrong ?
   
   if you can do pcell.setPhrase(new Phrase(my
 phrase,
   font), colspan) like
   he suggested
   isent that the same as making a cell of the
 phrase ,
   setting colspan and
   then adding it to the table
   
   the only think that i see is that it would be
   shorter with his
   suggestion
   
   
   Matt Benson wrote:
   
I understood the original complaint to be that
 he
   was
calling setColspan over and over.  I believe
 that
   the
advice Paulo would give would be to subclass
   PdfPCell
and call setColspan in the constructor.
   
-Matt
   
--- Cooremans, Rony
[EMAIL PROTECTED] wrote:
 Why dont you do the folowing ?

 PdfPCell cell = new PdfPCell(new Phrase(my
   phrase,
 font));
 cell.setColspan(colspan);
 ptable.addCell(cell);


 Message: 1
 From: Miller, Eric
 [EMAIL PROTECTED]
 To:
 '[EMAIL PROTECTED]'
 
 [EMAIL PROTECTED]
 Date: Fri, 21 Jun 2002 13:46:25 -0600
 Subject: [iText-questions] PdfPCell colspan

 Without knowing anything about what it would
   take
 someone to implement
 something like this, would anyone else find
 it
 useful to have an overidden
 method for either PdfPTable.addCell() or
 PdfPCell.setPhrase() that included
 the colspan?  As in:

 pcell.setPhrase(new Phrase(my phrase, font),
 colspan)
 or
 ptable.addCell(cell, colspan)

 I'm finding my PdfPTable code does a lot of
   changing
 colspans.
 just curious
 e miller








   
  
 

---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/

 ___
 iText-questions mailing list
 [EMAIL PROTECTED]

   
  
 

https://lists.sourceforge.net/lists/listinfo/itext-questions
   
   
 __
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World
 Cup
http://fifaworldcup.yahoo.com
   
   --
   Rony Cooremans
   
   TRASYS N.V.
   MVG, LIN, AOSO,  afdeling Geotechniek
   Arianelaan 7, 1200 Brussel
   Tramstraat 52, 9052 Zwijnaarde
   Tel: 02/773.94.87
   Tel: 09/240.75.24
   
   
   e-mail Trasys: mailto:[EMAIL PROTECTED]
   e-mail LIN:
 mailto:[EMAIL PROTECTED]
   
   
  
  
  
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.yahoo.com
  
  
 

---
  Sponsored by:
  ThinkGeek at http://www.ThinkGeek.com/
  ___
  iText-questions mailing list
  [EMAIL PROTECTED]
 
https://lists.sourceforge.net/lists/listinfo/itext-questions


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] problem with space between the lines

2002-06-24 Thread Paulo Soares

If you don't create the Paragraph with the same constructor why would you
expect to obtain the same results? Where's the explicit leading 8 in the
second constructor?

Best Regards,
Paulo Soares

- Original Message -
From: amala kethineni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 16:48
Subject: [iText-questions] problem with space between the lines


 Hi ,

  I am creating a simple PDF document and my document
 runs into 10 pages. I am using font size 8 and I want
 the space between the lines as 8. With the code given
 here ,
   the first page looks better with only 8 as leading
 value but all other pages from 2 to 10 are defaulting
 to 8x1.5=12 leading. What's wrong with this code ?


 public ByteArrayOutputStream toPdf(StringBuffer
 inBuffer, String headerBuffer, String footerBuffer,
 String legendBuffer,boolean landscape)
 {
 //StringBuffer outBuffer = new StringBuffer();
 ByteArrayOutputStream outputStream = new
 ByteArrayOutputStream();

 // creation of the document with a certain size and
 certain margins
 Document document = null;
 if (landscape) {
 document = new
 Document(PageSize.LETTER.rotate(), 5, 5, 5, 5);
 } else {
 document = new Document(PageSize.LETTER, 50, 50,
 50, 50);
 }

 try {
 // creation of the different writers
 //PdfWriter.getInstance(document, new
 FileOutputStream(text.pdf));
 PdfWriter.getInstance(document, outputStream);

 // Use courier font
 Font standardFont = new Font(Font.COURIER, 8,
 Font.NORMAL, new Color(0, 0, 0));


 // we add a Header that will show up on PAGE 1
 HeaderFooter header = new HeaderFooter(new
 Phrase(headerBuffer), false);
 document.setHeader(header);

 // we add a Footer that will show up on PAGE 2
 HeaderFooter footer = new HeaderFooter(new
 Phrase(footerBuffer), true);
 document.setFooter(footer);

 // Open the document for writing
 document.open();

 // Create a paragraph with our input
 StringBuffer

   Paragraph paragraph = new Paragraph(8,
 inBuffer.toString(), standardFont);
 document.add(paragraph);

 // we reset the page numbering
 document.resetPageCount();
 // we trigger a page break
 document.newPage();
  // we add some more content
 document.add(new
 Paragraph(legendBuffer,standardFont));

 }
 // catch(DocumentException e) {
 catch(Exception e) {
 // We need to actually throw this message up ...
 System.err.println(e.getMessage());
 }

 // Close the document
 document.close();

 return outputStream;
 }



  Thanks,
  bala




 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com


 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] (no subject)

2002-06-24 Thread New, Cecil (GEAE)

So your images should always go into the PDF at the highest res you will need to
print at.

This may make them large, but when the PDF prints it will print them as good as
possible.

So unless you are trying to reduce download times or something, don't make two
PDF's... you just need the one.

-Original Message-
From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 23, 2002 10:57 PM
To: Shahzad Latif; [EMAIL PROTECTED]
Subject: Re: [iText-questions] (no subject)


At 2:02 AM + 6/24/02, Shahzad Latif wrote:
Looking at the tutorial and your classes, I have successfully 
created a PDF and am pretty happy to see the end result and ease of 
programming. Thanks a lot. Indeed a great contribution. Got a 
question: Is it possible to control the resolution of the PDF, i.e., 
I want to create a PDF of 300 dpi as well as 600 dpi. Your response 
will be the end to my project and I would highly appreciate it. 
Thanks in advance.


A PDF is resolution INDEPENDENT - it has no dpi setting.

Raster/Bitmap images INSIDE a PDF will have a dpi setting, 
but that's just a single object not the file at large.   And such a 
dpi setting would be adjusted based on the final output device anyway.


Leonard
-- 
---
Leonard Rosentholmailto:[EMAIL PROTECTED]
Chief Technical Officer  http://www.pdfsages.com
PDF Sages, Inc.  215-629-3700 (voice)
  215-629-0789 (fax)


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Parsing PDF Bookmarks (Outlines)

2002-06-24 Thread Thomas Kivlehan

I've already read the iText FAQ and mail-archive, and
I suspect the answer to my question is no but I'd
like to make sure before deciding that iText can't
help me and look elsewhere:

Can iText be used to read/parse the bookmarks (outline
objects) out of an existing PDF file?  I've tried to
come up with ways of geting a PdfContentByte object
from a PdfReader object and then calling the
getOutlineRoot method, but it only appears possible to
do this whith a PdfWriter object.  Is there some other
approach I can take?  Your help is sincerely
appreciated.

Thanks,

Tom


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] about OpenType font

2002-06-24 Thread Kumata Mitsugu

Hello Pauro,

Thank you for answering my question.
But I don't really understand it.
I tried your sample of 'cff_font.java', and generated PDF has subsetted
font.
Next, I replaced font of 'liz.otf' with 'KozMinStd-Heavy' (Japanese OpneType
font) , but I got an error.

Does your answer mean that OpenType font of European languages are OK, but
not CJK OpneType font?

Best Regards,
KuMi


 I was expecting this question. The answer is no. I don't think is too
 difficult to get the right CID from the font but the problem is that no
 subseting is made for type1 fonts and CFF fonts are nothing more than one or
 more type1 fonts wrapped in another package. I don't see the logic of
 embedding the full character set of a CJK font, the size of which start at
 4M. By the way, I don't expect to support anytime soon type1 subseting. It's
 postscript and I developed a special hatred for stack-based languages from
 the days of HP calculators and Forth.
 
 Best Regards,
 Paulo Soares
 
 - Original Message -
 From: KuMi [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 24, 2002 11:14
 Subject: [iText-questions] about OpenType font
 
 
 Hello all,
 
 I would like to know if latest version (1.00) of iText support CJK
 OpenType
 font other than fonts in Asian font pack.
 
 Best regard,
 KuMi
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Parsing PDF Bookmarks (Outlines)

2002-06-24 Thread Leonard Rosenthol

Can iText be used to read/parse the bookmarks (outline
objects) out of an existing PDF file?

Yes it can - BUT you'll need to write all the bookmark 
specific code yourself.

iText has all the PDF parsing and object management classes 
that you'll need, but doesn't know anything about the Outline tree 
inside of an existing PDF.  You'll have to write all that stuff to 
navigate the object tree.


Leonard
-- 
---
Leonard Rosentholmailto:[EMAIL PROTECTED]
Chief Technical Officer  http://www.pdfsages.com
PDF Sages, Inc.  215-629-3700 (voice)
  215-629-0789 (fax)


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions