Hi,
My HTML page has got an <Object> tag to embed Flash objects (ex) pyramids ,
charts etc and as of now i write a java code to generate a Pyramid and
convert the pyramid to a Lowagie image and then add it to the PDF.But is
there any other better approach provided by lowagie to do this process??

Awaiting for valuable suggestions .


Sathish

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:itext-questions-request@;lists.sourceforge.net]
Sent: Monday, October 28, 2002 6:09 PM
To: [EMAIL PROTECTED]
Subject: iText-questions digest, Vol 1 #813 - 6 msgs


Send iText-questions mailing list submissions to
        [EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/itext-questions
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of iText-questions digest..."


Today's Topics:

   1. Flash and PDF (SATHISH Sreedharan)
   2. get heigth row (igor)
   3. improved page break capabilities for table (Gerald Fehringer)
   4. RE: get heigth row (Ashishb)
   5. Regarding zoom position (anshul patni)
   6. Re: Flash and PDF (Leonard Rosenthol)

--__--__--

Message: 1
From: SATHISH Sreedharan <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'"
         <[EMAIL PROTECTED]>
Date: Mon, 28 Oct 2002 02:30:20 -0500
Subject: [iText-questions] Flash and PDF

Hi All,
Have any one tried integrating a Macromedia Flash object and  PDF.

I have a HTML page that has a Flash embedded as an object.How do i get this
displayed as a PDF??

Awaiting your response at the earliest,
Sathish

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:itext-questions-request@;lists.sourceforge.net]
Sent: Saturday, October 26, 2002 12:36 AM
To: [EMAIL PROTECTED]
Subject: iText-questions digest, Vol 1 #810 - 5 msgs


Send iText-questions mailing list submissions to
        [EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/itext-questions
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of iText-questions digest..."


Today's Topics:

   1. tabs (David Thielen)
   2. Re: tabs (Kyrill Alyoshin)
   3. RE: First line of para indent (Paulo Soares)
   4. RE: tabs (Paulo Soares)
   5. Re: First line of para indent (David Thielen)

-- __--__-- 

Message: 1
From: "David Thielen" <[EMAIL PROTECTED]>
To: "itext" <[EMAIL PROTECTED]>
Date: Fri, 25 Oct 2002 08:08:47 -0600
Subject: [iText-questions] tabs

This is a multi-part message in MIME format.

------=_NextPart_000_0105_01C27BFD.BEDC5BD0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi;

Is there a way to get the functionality of tabs in a para? Ie, if I want =
to put "hi \tab there" where the tab will start "there" at 0.5" in from =
the left of the para?

thanks - dave
------=_NextPart_000_0105_01C27BFD.BEDC5BD0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4919.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is there a way to get the functionality =
of tabs in=20
a para? Ie, if I want to put "hi \tab there" where the tab will start =
"there" at=20
0.5" in from the left of the para?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks - =
dave</FONT></DIV></BODY></HTML>

------=_NextPart_000_0105_01C27BFD.BEDC5BD0--



-- __--__-- 

Message: 2
Date: Fri, 25 Oct 2002 10:20:59 -0400 (EDT)
From: Kyrill Alyoshin <[EMAIL PROTECTED]>
Reply-To: Kyrill Alyoshin <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] tabs
To: [EMAIL PROTECTED]

It seems like users cannot wait for iText to start supporting 'tabs'. :-)

Kyrill 



-- __--__-- 

Message: 3
From: Paulo Soares <[EMAIL PROTECTED]>
To: 'David Thielen' <[EMAIL PROTECTED]>, itext
         <[EMAIL PROTECTED]>
Subject: RE: [iText-questions] First line of para indent
Date: Fri, 25 Oct 2002 16:18:50 +0100

Only with ColumnText.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: David Thielen [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 25, 2002 15:07
> To:   itext
> Subject:      [iText-questions] First line of para indent
> 
> Hi;
>  
> Is there a way to set a different left margin for the first line of a
> para? (ie indent or hanging)
>  
> thanks - dave


-- __--__-- 

Message: 4
From: Paulo Soares <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: [iText-questions] tabs
Date: Fri, 25 Oct 2002 16:22:04 +0100

I'm doing some changes (well, many) to support kerning, spacing and
character expansion/compression, maybe tabs will fit there.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Kyrill Alyoshin [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 25, 2002 15:21
> To:   [EMAIL PROTECTED]
> Subject:      Re: [iText-questions] tabs
> 
> It seems like users cannot wait for iText to start supporting 'tabs'. :-)
> 
> Kyrill 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future 
> of Java(TM) technology. Join the Java Community 
> Process(SM) (JCP(SM)) program now. 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-- __--__-- 

Message: 5
From: "David Thielen" <[EMAIL PROTECTED]>
To: "itext" <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] First line of para indent
Date: Fri, 25 Oct 2002 13:02:34 -0600

Is it better to do things as a column instead of a para? Because a column
can be a single column 1 page wide.

thanks - dave


----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "'David Thielen'" <[EMAIL PROTECTED]>; "itext"
<[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 9:18 AM
Subject: RE: [iText-questions] First line of para indent


> Only with ColumnText.
>
> Best Regards,
> Paulo Soares
>
> > -----Original Message-----
> > From: David Thielen [SMTP:[EMAIL PROTECTED]]
> > Sent: Friday, October 25, 2002 15:07
> > To: itext
> > Subject: [iText-questions] First line of para indent
> >
> > Hi;
> >
> > Is there a way to set a different left margin for the first line of a
> > para? (ie indent or hanging)
> >
> > thanks - dave
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>




-- __--__-- 

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


End of iText-questions Digest


--__--__--

Message: 2
From: "igor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Mon, 28 Oct 2002 08:27:48 +0100
Subject: [iText-questions] get heigth row

Dears!!
How can I calculate the row heigth (in point or cm or inchs) if I know the
size font???

thanks and best regards



--__--__--

Message: 3
From: "Gerald Fehringer" <[EMAIL PROTECTED]>
To: "Bruno" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Date: Mon, 28 Oct 2002 08:50:11 +0100
Subject: [iText-questions] improved page break capabilities for table

This is a multi-part message in MIME format.

------=_NextPart_000_0134_01C27E5F.06303250
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello Bruno!

Up till now Table only offered the possibility to keep the content of =
single rows together on one page (cellsFitPage). But in my project there =
is also need to extend that capability to several rows that make up a =
group.

Therefore I have done the following modifications:

a) com.lowagie.text.Cell:

 Added class variable

/** Does this <CODE>Cell</CODE> force a group change? */
 protected boolean groupChange =3D true;

and 2 methods

/**
 * Does this <CODE>Cell</CODE> force a group change?
 *
 * @return a value
 */
 public boolean groupChange() {
  return groupChange;
 }

/**
 * Sets group change.
 *
 * @param value the new value
 */
 public void setGroupChange(boolean value) {
  groupChange =3D value;
 }




b) com.lowagie.text.pdf.PdfCell:

Added class variable

/** This is the number of the group the cell is in. */
 private int groupnumber;

and 2 methods

/**
 * Gets the number of the group this cell is in..
 *
 * @return a number
 */
  public int groupnumber() {
  return groupnumber;
 }

/**
 * Sets the group number.
 */
  void setGroupNumber(int number) {
  groupnumber =3D number;
 }




c) com.lowagie.text.pdf.PdfTable: determine groupNumber/groupChange

 // constructors
=20
/**
 * Constructs a <CODE>PdfTable</CODE>-object.
 *
 * @param table a <CODE>Table</CODE>
 * @param left the left border on the page
 * @param right the right border on the page
 * @param top  the start position of the top of the table
 */
=20
 PdfTable(Table table, float left, float right, float top) {
  // constructs a Rectangle (the bottomvalue will be changed afterwards)
  super(left, top, right, top);
 =20
  // copying the attributes from class Table
  setBorder(table.border());
  setBorderWidth(table.borderWidth());
  setBorderColor(table.borderColor());
  setBackgroundColor(table.backgroundColor());
  setGrayFill(table.grayFill());
  this.columns =3D table.columns();
  this.cellpadding =3D table.cellpadding();
  this.cellspacing =3D table.cellspacing();
  float[] positions =3D table.getWidths(left, right - left);
 =20
  // initialisation of some parameters
  setLeft(positions[0]);
  setRight(positions[positions.length - 1]);
 =20
  Row row;
  int rowNumber =3D 0;
  int groupNumber =3D 0;
  boolean groupChange;
  int firstDataRow =3D table.firstDataRow();
  Cell cell;
  PdfCell currentCell;
  headercells =3D new ArrayList();
  cells =3D new ArrayList();
  int rows =3D table.size() + 1;
  float[] offsets =3D new float[rows];
  for (int i =3D 0; i < rows; i++) {
   offsets[i] =3D top;
  }
 =20
  // loop over all the rows
  for (Iterator rowIterator =3D table.iterator(); rowIterator.hasNext(); =
) {
   groupChange =3D false;
   row =3D (Row) rowIterator.next();
   if (row.isEmpty()) {
    if (rowNumber < rows - 1 && offsets[rowNumber + 1] > =
offsets[rowNumber]) offsets[rowNumber + 1] =3D offsets[rowNumber];
   }
   else {
    for(int i =3D 0; i < row.columns(); i++) {
     cell =3D (Cell) row.getCell(i);
     if (cell !=3D null) {
      currentCell =3D new PdfCell(cell, rowNumber, positions[i], =
positions[i + cell.colspan()], offsets[rowNumber], cellspacing, =
cellpadding);                       =20
      try {
       if (offsets[rowNumber] - currentCell.height() - cellpadding < =
offsets[rowNumber + currentCell.rowspan()]) {
        offsets[rowNumber + currentCell.rowspan()] =3D =
offsets[rowNumber] - currentCell.height() - cellpadding;
       }
      }
      catch(ArrayIndexOutOfBoundsException aioobe) {
       if (offsets[rowNumber] - currentCell.height() < offsets[rows - =
1]) {
        offsets[rows - 1] =3D offsets[rowNumber] - currentCell.height();
       }
      }
      if (rowNumber < firstDataRow) {
       currentCell.setHeader();
       headercells.add(currentCell);
      }
      currentCell.setGroupNumber(groupNumber);
      groupChange |=3D cell.groupChange();
      cells.add(currentCell);
     }
    }
   }
   rowNumber++;
   if( groupChange ) groupNumber++;
  }
 =20
  // loop over all the cells
  int n =3D cells.size();
  for (int i =3D 0; i < n; i++) {
   currentCell =3D (PdfCell) cells.get(i);
   try {
    currentCell.setBottom(offsets[currentCell.rownumber() + =
currentCell.rowspan()]);
   }
   catch(ArrayIndexOutOfBoundsException aioobe) {
    currentCell.setBottom(offsets[rows - 1]);
   }
  }
  setBottom(offsets[rows - 1]);
 }




d) com.lowagie.text.pdf.PdfDocument.add(Element) method adjusted:

currentRownumber replaced by currentGroupNumber
cell.rownumber() replaced by cell.groupnumber()



Hope these changes can be included in next release.


Thanks and kind regards,
Gerald.

------=_NextPart_000_0134_01C27E5F.06303250
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello Bruno!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Up till now Table only offered the =
possibility to=20
keep the content of single rows together on one page (cellsFitPage). But =
in my=20
project there is also need to extend that capability to several rows =
that make=20
up a group.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Therefore I have done the following=20
modifications:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D4>a) com.lowagie.text.Cell:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;Added class variable</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>/** Does this =
&lt;CODE&gt;Cell&lt;/CODE&gt;=20
force a group change? */<BR>&nbsp;protected boolean groupChange =3D=20
true;</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and 2 methods</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>/**<BR>&nbsp;* Does this=20
&lt;CODE&gt;Cell&lt;/CODE&gt; force a group =
change?<BR>&nbsp;*<BR>&nbsp;*=20
@return&nbsp;a value<BR>&nbsp;*/</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>&nbsp;public boolean =
groupChange()=20
{<BR>&nbsp;&nbsp;return groupChange;<BR>&nbsp;}</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>/**<BR>&nbsp;* Sets group=20
change.<BR>&nbsp;*<BR>&nbsp;* @param&nbsp;value&nbsp;the new=20
value<BR>&nbsp;*/</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>&nbsp;public void =
setGroupChange(boolean=20
value) {<BR>&nbsp;&nbsp;groupChange =3D =
value;<BR>&nbsp;}</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D4>b) =
com.lowagie.text.pdf.PdfCell:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Added class variable</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>/** This is the number of the =
group the=20
cell is in. */<BR>&nbsp;private int groupnumber;</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and 2 methods</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>/**<BR>&nbsp;* Gets the number =
of the group=20
this cell is in..<BR>&nbsp;*<BR>&nbsp;* @return&nbsp;a=20
number<BR>&nbsp;*/<BR>&nbsp;&nbsp;public int groupnumber()=20
{<BR>&nbsp;&nbsp;return groupnumber;<BR>&nbsp;}</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>/**<BR>&nbsp;* Sets the group=20
number.<BR>&nbsp;*/<BR>&nbsp;&nbsp;void setGroupNumber(int number)=20
{<BR>&nbsp;&nbsp;groupnumber =3D =
number;<BR>&nbsp;}</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D4>c) com.lowagie.text.pdf.PdfTable: =
determine=20
groupNumber/groupChange</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;// =
constructors<BR>&nbsp;<BR>/**<BR>&nbsp;*=20
Constructs a =
&lt;CODE&gt;PdfTable&lt;/CODE&gt;-object.<BR>&nbsp;*<BR>&nbsp;*=20
@param&nbsp;table&nbsp;a &lt;CODE&gt;Table&lt;/CODE&gt;<BR>&nbsp;*=20
@param&nbsp;left&nbsp;the left border on the page<BR>&nbsp;*=20
@param&nbsp;right&nbsp;the right border on the page<BR>&nbsp;*=20
@param&nbsp;top&nbsp;&nbsp;the start position of the top of the=20
table<BR>&nbsp;*/<BR>&nbsp;<BR>&nbsp;PdfTable(Table table, float left, =
float=20
right, float top) {<BR>&nbsp;&nbsp;// constructs a Rectangle (the =
bottomvalue=20
will be changed afterwards)<BR>&nbsp;&nbsp;super(left, top, right,=20
top);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;// copying the attributes from =
class=20
Table<BR>&nbsp;&nbsp;setBorder(table.border());<BR>&nbsp;&nbsp;setBorderW=
idth(table.borderWidth());<BR>&nbsp;&nbsp;setBorderColor(table.borderColo=
r());<BR>&nbsp;&nbsp;setBackgroundColor(table.backgroundColor());<BR>&nbs=
p;&nbsp;setGrayFill(table.grayFill());<BR>&nbsp;&nbsp;this.columns=20
=3D table.columns();<BR>&nbsp;&nbsp;this.cellpadding =3D=20
table.cellpadding();<BR>&nbsp;&nbsp;this.cellspacing =3D=20
table.cellspacing();<BR>&nbsp;&nbsp;float[] positions =3D =
table.getWidths(left,=20
right - left);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;// initialisation of some=20
parameters<BR>&nbsp;&nbsp;setLeft(positions[0]);<BR>&nbsp;&nbsp;setRight(=
positions[positions.length=20
- 1]);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;Row row;<BR>&nbsp;&nbsp;int =
rowNumber =3D=20
0;<BR><STRONG>&nbsp;&nbsp;int groupNumber =3D 0;<BR>&nbsp;&nbsp;boolean=20
groupChange;<BR></STRONG>&nbsp;&nbsp;int firstDataRow =3D=20
table.firstDataRow();<BR>&nbsp;&nbsp;Cell cell;<BR>&nbsp;&nbsp;PdfCell=20
currentCell;<BR>&nbsp;&nbsp;headercells =3D new =
ArrayList();<BR>&nbsp;&nbsp;cells=20
=3D new ArrayList();<BR>&nbsp;&nbsp;int rows =3D table.size() +=20
1;<BR>&nbsp;&nbsp;float[] offsets =3D new =
float[rows];<BR>&nbsp;&nbsp;for (int i =3D=20
0; i &lt; rows; i++) {<BR>&nbsp;&nbsp;&nbsp;offsets[i] =3D=20
top;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;// loop over all =
the=20
rows<BR>&nbsp;&nbsp;for (Iterator rowIterator =3D table.iterator();=20
rowIterator.hasNext(); ) {<BR>&nbsp;&nbsp;&nbsp;groupChange =3D=20
false;<BR>&nbsp;&nbsp;&nbsp;row =3D (Row)=20
rowIterator.next();<BR>&nbsp;&nbsp;&nbsp;if (row.isEmpty())=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (rowNumber &lt; rows - 1 &amp;&amp;=20
offsets[rowNumber + 1] &gt; offsets[rowNumber]) offsets[rowNumber + 1] =
=3D=20
offsets[rowNumber];<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;for(int i =3D 0; i &lt; row.columns(); i++) =

{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cell =3D (Cell)=20
row.getCell(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (cell !=3D null)=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentCell =3D new =
PdfCell(cell,=20
rowNumber, positions[i], positions[i + cell.colspan()], =
offsets[rowNumber],=20
cellspacing,=20
cellpadding);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (offsets[rowNumber] -=20
currentCell.height() - cellpadding &lt; offsets[rowNumber +=20
currentCell.rowspan()])=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offsets[rowNumber + =

currentCell.rowspan()] =3D offsets[rowNumber] - currentCell.height() -=20
cellpadding;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(=
ArrayIndexOutOfBoundsException=20
aioobe) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if =
(offsets[rowNumber] -=20
currentCell.height() &lt; offsets[rows - 1])=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offsets[rows - 1] =
=3D=20
offsets[rowNumber] -=20
currentCell.height();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;if=20
(rowNumber &lt; firstDataRow)=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentCell.setHeader();<B=
R>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;headercells.add(currentCell);=
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR><STRONG>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;currentCell.setGroupNumber(groupNumber);<BR>&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;groupChange=20
|=3D=20
cell.groupChange();<BR></STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cells=
.add(currentCell);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;rowNumber++;<BR><ST=
RONG>&nbsp;&nbsp;&nbsp;if(=20
groupChange )=20
groupNumber++;<BR></STRONG>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;/=
/ loop=20
over all the cells<BR>&nbsp;&nbsp;int n =3D =
cells.size();<BR>&nbsp;&nbsp;for (int=20
i =3D 0; i &lt; n; i++) {<BR>&nbsp;&nbsp;&nbsp;currentCell =3D (PdfCell) =

cells.get(i);<BR>&nbsp;&nbsp;&nbsp;try=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;currentCell.setBottom(offsets[currentCell.ro=
wnumber()=20
+=20
currentCell.rowspan()]);<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;catc=
h(ArrayIndexOutOfBoundsException=20
aioobe) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;currentCell.setBottom(offsets[rows =
-=20
1]);<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;setBottom(off=
sets[rows=20
- 1]);<BR>&nbsp;}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial size=3D4>d)=20
com.lowagie.text.pdf.PdfDocument.add(Element) method =
adjusted:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>currentRownumber replaced by=20
currentGroupNumber</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>cell.rownumber() replaced by=20
cell.groupnumber()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hope these changes can be included in =
next=20
release.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks and kind regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Gerald.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0134_01C27E5F.06303250--



--__--__--

Message: 4
From: "Ashishb" <[EMAIL PROTECTED]>
To: "igor" <[EMAIL PROTECTED]>,
   <[EMAIL PROTECTED]>
Subject: RE: [iText-questions] get heigth row
Date: Sat, 5 Oct 2002 17:06:38 +0900

Row height can be calculated by calculating the height for the text...for a
given font and font size.

Step 1. Create a basefont object for the font
Step 2. Calculated the heightPoint by adding the ASCENT and DESCENT values
of base font for a font size.

heightPoint = baseFont.getFontDescriptor(BaseFont.ASCENT, fontSize) -
baseFont.getFontDescriptor(BaseFont.DESCENT, fontSize);

Hope this helps.

Best Regards,
Ashish Bhatia

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:itext-questions-admin@;lists.sourceforge.net]On Behalf Of igor
Sent: Monday, October 28, 2002 4:28 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] get heigth row


Dears!!
How can I calculate the row heigth (in point or cm or inchs) if I know the
size font???

thanks and best regards



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



--__--__--

Message: 5
Date: Mon, 28 Oct 2002 00:26:56 -0800 (PST)
From: anshul patni <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [iText-questions] Regarding zoom position

Hello iText Users,

I would like to have some help from you all, I am
trying to display a jpeg image file in pdf file.But,
when the image is too large, the pdf is showing the
image with very less zoom say for ex. like 12% or so.
I would like to display everything in pdf in 100% zoom
factor. 

How can i set the zoom factor of the opening pdf
file??

Please reply and guide.
thanks and regards,


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/


--__--__--

Message: 6
Date: Mon, 28 Oct 2002 07:40:23 -0500
To: SATHISH Sreedharan <[EMAIL PROTECTED]>,
        "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
From: Leonard Rosenthol <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] Flash and PDF

At 2:30 AM -0500 10/28/02, SATHISH Sreedharan wrote:
>Have any one tried integrating a Macromedia Flash object and  PDF.

        In what way?


>I have a HTML page that has a Flash embedded as an object.How do i get this
>displayed as a PDF??
>

        So you want to convert a Flash animation to a PDF?  Or you 
want to convert the entire HTML page, with embedded flash to a PDF?


Leonard
-- 
---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:leonardr@;pdfsages.com>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-629-3700 (voice)
                                              215-629-0789 (fax)



--__--__--

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


End of iText-questions Digest


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to