Re: [iText-questions] Tables for vertical alignment?

2015-08-31 Thread blowagie
The iText mailing-list has been abandoned in favor of StackOverflow. See
http://itextpdf.com/support



--
View this message in context: 
http://itext.2136553.n4.nabble.com/Tables-for-vertical-alignment-tp4660877p4660878.html
Sent from the iText mailing list archive at Nabble.com.

--
___
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] Tables for vertical alignment?

2015-08-30 Thread gman1963
I am having vertical alignment issues when generating PDF documents.  The
data which is dynamic in format must fit on N sheets of 8.5X11.  Each 33
lines of data must fit on the upper or lower 1/2 of the page with a
perforation in the middle of the page.  Will tables/cells help me achieve
the proper vertical alignment I desire?  I was considering a 1 column table
and each 1/2 page of data could be a cell.  I was hoping I could use
absolute position on each cell ( 1/2 page).

Document document = new Document(PageSize.A4, 0, 0, 0, 0);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Font dataFont = new Font(Font.COURIER, 12);
Font headerFont = new Font(Font.COURIER, 7);

try {
PdfWriter pdfWriter = PdfWriter.getInstance(document, 
baos);
document.open();
PdfContentByte cb = pdfWriter.getDirectContent();

ListBPEVRPage pages = 
STXMLGenerator.getRegDocument((STRegTransaction)
getRegTransaction());
int formCount = 0;

bpevrPage:
for (BPEVRPage page:pages) {
for (Form form:page.getFormsList()) {
while (form.getLinesList().size() 33) {
Line line = new Line();
LineSection lineSection = new 
LineSection();

lineSection.setLineSectionType(LineSection.DATA);

lineSection.setLineSectionData( );

line.addLineSection(lineSection);
form.addLine(line);
}
if (formCount=2  formCount%2==0){
document.newPage();
logger.fine(ADDING NEW PAGE);
}
for (Line line:form.getLinesList()) {
Paragraph para = new 
Paragraph();
para.setLeading(0, 0.85f);
para.setIndentationLeft(12f);
para.setIndentationRight(12f);
for (LineSection 
section:line.getLineSections()) {
logger.fine(formCount 
+ formCount+ line section data 1 header 2
+section.getLineSectionType() +   + section.getLineSectionData());
if 
(section.getLineSectionType()==LineSection.DATA) {
if 
(STDocumentTypeFactory.CA_REGDOC_NODMVCOPY.equals(docType) 
section.getLineSectionData().contains(DMV_FILE_COPY_TOKEN)) {
break 
bpevrPage;
}
Phrase phrase = 
new Phrase(section.getLineSectionData(), dataFont);

para.add(phrase);
} else if 
(section.getLineSectionType()==LineSection.HEADER) {
Phrase phrase = 
new Phrase(section.getLineSectionData(),
headerFont);

para.add(phrase);
} else if
(section.getLineSectionType()==LineSection.CUSTOMER_BARCODE) {
// CODE 39
Paragraph 
paraCustomer = new Paragraph();

paraCustomer.setSpacingBefore(18);  //set spacing prior bar code 1/4
inch

paraCustomer.setSpacingAfter(0);

paraCustomer.setIndentationLeft((float) 166);
Barcode39 
code39Customer = new Barcode39();

code39Customer.setBarHeight((float) 36);

code39Customer.setSize((float) 4.75);

code39Customer.setCode(section.getLineSectionData());
 

Re: [iText-questions] tables in columns (multiple pages) event schedule PDF file

2014-07-03 Thread Randy E. Hoover
I think this is exactly what I need thank you very much.I will let you know
Thank you


Sent from my Verizon Wireless 4G LTE shoe phone


 Original message 
From: iText mailing list
Date:07/01/2014 11:25 PM (GMT-08:00)
To: Post all your questions about iText here
Subject: Re: [iText-questions] tables in columns (multiple pages) event 
schedule PDF file

On 7/1/2014 10:40 PM, Randy E. Hoover wrote:
i figured out using iTextSharp very quickly and was reading from MS SQL DB 
right away and creating tables in the PDF like i wanted to - except i need to 
create 2 columns and multiple pages (4 in total) ... i tried using multi 
columns with tables but was not successful with going down the left side column 
and then back up to the top of the 2nd column and then paging and doing the 
exact same thing ... any suggestions or is iTextSharp not capable of this? 
originally i wrote this event schedule app in VB  6 (yrs ago) writing to excel 
(perfect format for rows/columns) but my client wants this to run on computers 
without office ... any suggestions or examples would be appreciated.

Are you saying you want something like this:
http://examples.itextpdf.com/results/part1/chapter04/column_table.pdf
From page 4 on, a table is split into two columns.

This is what the code looks like:
http://itextpdf.com/examples/iia.php?id=91

For the iTextSharp version of the example, see:
http://tinyurl.com/itextsharpIIA2C04
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
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] tables in columns (multiple pages) event schedule PDF file

2014-07-02 Thread iText mailing list

On 7/1/2014 10:40 PM, Randy E. Hoover wrote:


i figured out using iTextSharp very quickly and was reading from MS 
SQL DB right away and creating tables in the PDF like i wanted to - 
except i need to create 2 columns and multiple pages (4 in total) ... 
i tried using multi columns with tables but was not successful with 
going down the left side column and then back up to the top of the 2nd 
column and then paging and doing the exact same thing ... any 
suggestions or is iTextSharp not capable of this? originally i wrote 
this event schedule app in VB  6 (yrs ago) writing to excel (perfect 
format for rows/columns) but my client wants this to run on computers 
without office ... any suggestions or examples would be appreciated.




Are you saying you want something like this:
http://examples.itextpdf.com/results/part1/chapter04/column_table.pdf
From page 4 on, a table is split into two columns.

This is what the code looks like:
http://itextpdf.com/examples/iia.php?id=91

For the iTextSharp version of the example, see:
http://tinyurl.com/itextsharpIIA2C04
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
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] tables in columns (multiple pages) event schedule PDF file

2014-07-01 Thread Randy E. Hoover
i figured out using iTextSharp very quickly and was reading from MS SQL DB 
right away and creating tables in the PDF like i wanted to - except i need to 
create 2 columns and multiple pages (4 in total) ... i tried using multi 
columns with tables but was not successful with going down the left side column 
and then back up to the top of the 2nd column and then paging and doing the 
exact same thing ... any suggestions or is iTextSharp not capable of this? 
originally i wrote this event schedule app in VB  6 (yrs ago) writing to excel 
(perfect format for rows/columns) but my client wants this to run on computers 
without office ... any suggestions or examples would be appreciated.

Randy Hoover
ran...@projectcadd.orgmailto:ran...@projectcadd.org
www.projectcadd.orghttp://www.projectcadd.org/
cel: 619.228.6348
fax: 619.589.2233

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
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] Tables and borders

2011-07-01 Thread hhn000
Yeah, that's what I ended up doing, I just feel it should be cleaner or
smarter (I really like the idea of setting borders, etc all in one place,
table.DefaultCell - now I have it in my own method, also doable), this is
not meant in a bad way, this is a two platform library, which in it self
have some limitations, there are some things that could be made different in
the C# implementation, but it's important that the code look basically the
same on both platforms.

Well, I encountered a server breaking bug in another PDF library, which is
why I switched, compared to that iTextSharp just needs some learning how
things work, so good stuff :-)

On Thu, Jun 30, 2011 at 16:50, Emiel Ackermann
emiel.ackerm...@beanpole.bewrote:

 **
 In Java, I would instantiate the cell and disable the border of the cell
 with:

 cell.setBorder(Rectangle.NO_BORDER);

 before returning it within your method


 private PdfPCell NewCell(string text, FaxFonts font, int colspan)
 {
 return new PdfPCell(new Phrase(text, _fonts[(int)font].Font)) {
 Colspan = colspan };
 }
 Op 30/06/2011 13:18, hhn000 schreef:

 It seems that the problem is that I'm using new PDFPCell to create the new
 cell instead of using AddCell(Phrase), so it doesn't know about the table.

 But if I create the new cell from table.DefaultCell, doesn't it create a
 copy of the table? which gets thrown away when adding the cell with
 AddCell(PDFPCell).

 The easiest solution would be if AddCell(Phrase) returned the newly added
 cell, so I could adjust the colspan... but then AddCell looks to need to
 know about it when adding the cell...

 Some kind of factory method that returns a PDFPCell suitable for addition
 with AddCell() without any unnecessary overhead would be nice.

 Did I miss something? Or do something in a wrong way?

 On Thu, Jun 30, 2011 at 09:42, hhn000 hhn...@gmail.com wrote:

 Does anyone have any ideas about the problem? I have checked the source,
 but I can't see any difference between AddCell(string) and AddCell(new
 PDFPCell(new Phrase(string, font). If so, the only change is the Colspan, I
 haven't checked the generation from the table, but there doesn't seem to be
 any obvious reason why that would affect the borders (at least to me without
 reading the code).

 Any help would be much appreciated.


 On Wed, Jun 29, 2011 at 11:14, hhn000 hhn...@gmail.com wrote:

 Ok, I'm adding the rows using the following code:

 public void DrawBlock(ITextColumns block)

 {
 var table = new PdfPTable(block.Widths);
 table.WidthPercentage = 100f;
 table.DefaultCell.Border = Rectangle.NO_BORDER;

  AddRows(table, block.Spans1, block.Rows1, block.Fonts);
 AddRows(table, block.Spans2, block.Rows2, block.Fonts);

 _document.Add(table);
 }

 private void AddRows(PdfPTable table, int[] spans, Liststring[]
 rows, FaxFonts[] fonts)
 {
 foreach (var row in rows)
 {
 var j = 0;
 for (var i = 0; i  spans.Length; i++)
 if (spans[i]  0)
 {
 table.AddCell(NewCell(row[j], fonts[i],
 spans[i]));
 j++;
 }
 }
 }

 private PdfPCell NewCell(string text, FaxFonts font, int colspan)
 {
 return new PdfPCell(new Phrase(text, _fonts[(int)font].Font))
 { Colspan = colspan };
 }

 In AddRows spans look like { 1, 1, 1, 1, 1, 1 } or { 4, 0, 0, 0, 1, 1 }
 Each row like { col1, col2, col3, col4, col5, col6 } or {
 col1, col2, col3, col4 } for the above spans.

 IIRC i was using table.AddCell(row[i]) when it didn't show the borders
 earlier.


 On Wed, Jun 29, 2011 at 10:47, 1T3XT BVBA i...@1t3xt.info wrote:

 On 29/06/2011 9:24, hhn000 wrote:
 
  Does anyone have any idea of what I'm doing wrong?
  We don't have sufficient information to answer that question.
 1. You say that you initially turned borders off and it worked.
 2. Then you turned them on and it worked.
 3. Now you turned them back off and it no longer works.
 We don't know what else you changed in 2.
 Maybe you've started working with PdfPCell objects instead of just the
 addCell() method.
 Only you know, so we don't have the answer: you have.


 --
 All of the data generated in your IT infrastructure is seriously
 valuable.
 Why? It contains a definitive record of application performance,
 security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 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 

Re: [iText-questions] Tables and borders

2011-07-01 Thread 1T3XT BVBA
On 1/07/2011 8:50, hhn000 wrote:
 Yeah, that's what I ended up doing, I just feel it should be cleaner 
 or smarter (I really like the idea of setting borders, etc all in 
 one place, table.DefaultCell - now I have it in my own method, also 
 doable)
Yes, but suppose you have a table with plenty of normal cells (that 
need the default behavior), and only a couple of special cells (that 
need to be different from the default).
How would you override the default cell for these special cells?
All our own applications use the default cell for quick results. We use 
PdfPCell (and its properties) whenever we need to make a difference.
Sometimes, we use the copy constructor of PdfPCell to create an empty 
cell with the same properties as the default cell:
PdfPCell cell = new PdfPCell(table.getDefaultCell());
This way, we don't have to copy all the properties of the default cell 
manually (that's not the correct work, but you probably know what I mean).

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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] Tables and borders

2011-07-01 Thread hhn000
Yes, I do. and it's not very different from a factory method that copies the
table.DefaultCell. I think I just need to read more :-).

On Fri, Jul 1, 2011 at 08:59, 1T3XT BVBA i...@1t3xt.info wrote:

 On 1/07/2011 8:50, hhn000 wrote:
  Yeah, that's what I ended up doing, I just feel it should be cleaner
  or smarter (I really like the idea of setting borders, etc all in
  one place, table.DefaultCell - now I have it in my own method, also
  doable)
 Yes, but suppose you have a table with plenty of normal cells (that
 need the default behavior), and only a couple of special cells (that
 need to be different from the default).
 How would you override the default cell for these special cells?
 All our own applications use the default cell for quick results. We use
 PdfPCell (and its properties) whenever we need to make a difference.
 Sometimes, we use the copy constructor of PdfPCell to create an empty
 cell with the same properties as the default cell:
 PdfPCell cell = new PdfPCell(table.getDefaultCell());
 This way, we don't have to copy all the properties of the default cell
 manually (that's not the correct work, but you probably know what I
 mean).


 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 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

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
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] Tables and borders

2011-06-30 Thread hhn000
Does anyone have any ideas about the problem? I have checked the source, but
I can't see any difference between AddCell(string) and AddCell(new
PDFPCell(new Phrase(string, font). If so, the only change is the Colspan, I
haven't checked the generation from the table, but there doesn't seem to be
any obvious reason why that would affect the borders (at least to me without
reading the code).

Any help would be much appreciated.

On Wed, Jun 29, 2011 at 11:14, hhn000 hhn...@gmail.com wrote:

 Ok, I'm adding the rows using the following code:

 public void DrawBlock(ITextColumns block)

 {
 var table = new PdfPTable(block.Widths);
 table.WidthPercentage = 100f;
 table.DefaultCell.Border = Rectangle.NO_BORDER;

 AddRows(table, block.Spans1, block.Rows1, block.Fonts);
 AddRows(table, block.Spans2, block.Rows2, block.Fonts);

 _document.Add(table);
 }

 private void AddRows(PdfPTable table, int[] spans, Liststring[]
 rows, FaxFonts[] fonts)
 {
 foreach (var row in rows)
 {
 var j = 0;
 for (var i = 0; i  spans.Length; i++)
 if (spans[i]  0)
 {
 table.AddCell(NewCell(row[j], fonts[i], spans[i]));
 j++;
 }
 }
 }

 private PdfPCell NewCell(string text, FaxFonts font, int colspan)
 {
 return new PdfPCell(new Phrase(text, _fonts[(int)font].Font)) {
 Colspan = colspan };
 }

 In AddRows spans look like { 1, 1, 1, 1, 1, 1 } or { 4, 0, 0, 0, 1, 1 }
 Each row like { col1, col2, col3, col4, col5, col6 } or {
 col1, col2, col3, col4 } for the above spans.

 IIRC i was using table.AddCell(row[i]) when it didn't show the borders
 earlier.


 On Wed, Jun 29, 2011 at 10:47, 1T3XT BVBA i...@1t3xt.info wrote:

 On 29/06/2011 9:24, hhn000 wrote:
 
  Does anyone have any idea of what I'm doing wrong?
 We don't have sufficient information to answer that question.
 1. You say that you initially turned borders off and it worked.
 2. Then you turned them on and it worked.
 3. Now you turned them back off and it no longer works.
 We don't know what else you changed in 2.
 Maybe you've started working with PdfPCell objects instead of just the
 addCell() method.
 Only you know, so we don't have the answer: you have.


 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 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



--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
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] Tables and borders

2011-06-30 Thread hhn000
It seems that the problem is that I'm using new PDFPCell to create the new
cell instead of using AddCell(Phrase), so it doesn't know about the table.

But if I create the new cell from table.DefaultCell, doesn't it create a
copy of the table? which gets thrown away when adding the cell with
AddCell(PDFPCell).

The easiest solution would be if AddCell(Phrase) returned the newly added
cell, so I could adjust the colspan... but then AddCell looks to need to
know about it when adding the cell...

Some kind of factory method that returns a PDFPCell suitable for addition
with AddCell() without any unnecessary overhead would be nice.

Did I miss something? Or do something in a wrong way?

On Thu, Jun 30, 2011 at 09:42, hhn000 hhn...@gmail.com wrote:

 Does anyone have any ideas about the problem? I have checked the source,
 but I can't see any difference between AddCell(string) and AddCell(new
 PDFPCell(new Phrase(string, font). If so, the only change is the Colspan, I
 haven't checked the generation from the table, but there doesn't seem to be
 any obvious reason why that would affect the borders (at least to me without
 reading the code).

 Any help would be much appreciated.


 On Wed, Jun 29, 2011 at 11:14, hhn000 hhn...@gmail.com wrote:

 Ok, I'm adding the rows using the following code:

 public void DrawBlock(ITextColumns block)

 {
 var table = new PdfPTable(block.Widths);
 table.WidthPercentage = 100f;
 table.DefaultCell.Border = Rectangle.NO_BORDER;

 AddRows(table, block.Spans1, block.Rows1, block.Fonts);
 AddRows(table, block.Spans2, block.Rows2, block.Fonts);

 _document.Add(table);
 }

 private void AddRows(PdfPTable table, int[] spans, Liststring[]
 rows, FaxFonts[] fonts)
 {
 foreach (var row in rows)
 {
 var j = 0;
 for (var i = 0; i  spans.Length; i++)
 if (spans[i]  0)
 {
 table.AddCell(NewCell(row[j], fonts[i],
 spans[i]));
 j++;
 }
 }
 }

 private PdfPCell NewCell(string text, FaxFonts font, int colspan)
 {
 return new PdfPCell(new Phrase(text, _fonts[(int)font].Font))
 { Colspan = colspan };
 }

 In AddRows spans look like { 1, 1, 1, 1, 1, 1 } or { 4, 0, 0, 0, 1, 1 }
 Each row like { col1, col2, col3, col4, col5, col6 } or {
 col1, col2, col3, col4 } for the above spans.

 IIRC i was using table.AddCell(row[i]) when it didn't show the borders
 earlier.


 On Wed, Jun 29, 2011 at 10:47, 1T3XT BVBA i...@1t3xt.info wrote:

 On 29/06/2011 9:24, hhn000 wrote:
 
  Does anyone have any idea of what I'm doing wrong?
 We don't have sufficient information to answer that question.
 1. You say that you initially turned borders off and it worked.
 2. Then you turned them on and it worked.
 3. Now you turned them back off and it no longer works.
 We don't know what else you changed in 2.
 Maybe you've started working with PdfPCell objects instead of just the
 addCell() method.
 Only you know, so we don't have the answer: you have.


 --
 All of the data generated in your IT infrastructure is seriously
 valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 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




--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
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] Tables and borders

2011-06-30 Thread Emiel Ackermann
In Java, I would instantiate the cell and disable the border of the cell 
with:


cell.setBorder(Rectangle.NO_BORDER);

before returning it within your method

private PdfPCell NewCell(string text, FaxFonts font, int colspan)
{
return new PdfPCell(new Phrase(text, 
_fonts[(int)font].Font)) { Colspan = colspan };

}
Op 30/06/2011 13:18, hhn000 schreef:
It seems that the problem is that I'm using new PDFPCell to create the 
new cell instead of using AddCell(Phrase), so it doesn't know about 
the table.


But if I create the new cell from table.DefaultCell, doesn't it create 
a copy of the table? which gets thrown away when adding the cell with 
AddCell(PDFPCell).


The easiest solution would be if AddCell(Phrase) returned the newly 
added cell, so I could adjust the colspan... but then AddCell looks to 
need to know about it when adding the cell...


Some kind of factory method that returns a PDFPCell suitable for 
addition with AddCell() without any unnecessary overhead would be nice.


Did I miss something? Or do something in a wrong way?

On Thu, Jun 30, 2011 at 09:42, hhn000 hhn...@gmail.com 
mailto:hhn...@gmail.com wrote:


Does anyone have any ideas about the problem? I have checked the
source, but I can't see any difference between AddCell(string) and
AddCell(new PDFPCell(new Phrase(string, font). If so, the only
change is the Colspan, I haven't checked the generation from the
table, but there doesn't seem to be any obvious reason why that
would affect the borders (at least to me without reading the code).

Any help would be much appreciated.


On Wed, Jun 29, 2011 at 11:14, hhn000 hhn...@gmail.com
mailto:hhn...@gmail.com wrote:

Ok, I'm adding the rows using the following code:

public void DrawBlock(ITextColumns block)

{
var table = new PdfPTable(block.Widths);
table.WidthPercentage = 100f;
table.DefaultCell.Border = Rectangle.NO_BORDER;

AddRows(table, block.Spans1, block.Rows1,
block.Fonts);
AddRows(table, block.Spans2, block.Rows2,
block.Fonts);

_document.Add(table);
}

private void AddRows(PdfPTable table, int[] spans,
Liststring[] rows, FaxFonts[] fonts)
{
foreach (var row in rows)
{
var j = 0;
for (var i = 0; i  spans.Length; i++)
if (spans[i]  0)
{
table.AddCell(NewCell(row[j],
fonts[i], spans[i]));
j++;
}
}
}

private PdfPCell NewCell(string text, FaxFonts font,
int colspan)
{
return new PdfPCell(new Phrase(text,
_fonts[(int)font].Font)) { Colspan = colspan };
}

In AddRows spans look like { 1, 1, 1, 1, 1, 1 } or { 4, 0, 0,
0, 1, 1 }
Each row like { col1, col2, col3, col4, col5, col6
} or { col1, col2, col3, col4 } for the above spans.

IIRC i was using table.AddCell(row[i]) when it didn't show the
borders earlier.


On Wed, Jun 29, 2011 at 10:47, 1T3XT BVBA i...@1t3xt.info
mailto:i...@1t3xt.info wrote:

On 29/06/2011 9:24, hhn000 wrote:

 Does anyone have any idea of what I'm doing wrong?
We don't have sufficient information to answer that question.
1. You say that you initially turned borders off and it
worked.
2. Then you turned them on and it worked.
3. Now you turned them back off and it no longer works.
We don't know what else you changed in 2.
Maybe you've started working with PdfPCell objects instead
of just the
addCell() method.
Only you know, so we don't have the answer: you have.


--
All of the data generated in your IT infrastructure is
seriously valuable.
Why? It contains a definitive record of application
performance, security
threats, fraudulent activity, and more. Splunk takes this
data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
mailto:iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many 

[iText-questions] Tables and borders

2011-06-29 Thread hhn000
Hi,

I'm using iTetSharp 5.0.6.

While creating some tables for a document (actually a list of items
formatted using a PDFPTable), I initially turned off the borders on the
tables' DefaultCell, then turned it back on, for debugging purposes, and now
they stay on even though I set the table's DefaultCell.Border to 0 or
Rectagle.NO_BORDER

This is the code I use to create each table:

var table = new PdfPTable(block.Widths);
table.WidthPercentage = 100f;
table.DefaultCell.Border = Rectangle.NO_BORDER;

// insert data into the cells

_document.Add(table);

block.Widths is an array of floats, the column widths in points.

Does anyone have any idea of what I'm doing wrong?
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
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] Tables and borders

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 9:24, hhn000 wrote:

 Does anyone have any idea of what I'm doing wrong?
We don't have sufficient information to answer that question.
1. You say that you initially turned borders off and it worked.
2. Then you turned them on and it worked.
3. Now you turned them back off and it no longer works.
We don't know what else you changed in 2.
Maybe you've started working with PdfPCell objects instead of just the 
addCell() method.
Only you know, so we don't have the answer: you have.

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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] Tables and borders

2011-06-29 Thread hhn000
Ok, I'm adding the rows using the following code:

public void DrawBlock(ITextColumns block)
{
var table = new PdfPTable(block.Widths);
table.WidthPercentage = 100f;
table.DefaultCell.Border = Rectangle.NO_BORDER;

AddRows(table, block.Spans1, block.Rows1, block.Fonts);
AddRows(table, block.Spans2, block.Rows2, block.Fonts);

_document.Add(table);
}

private void AddRows(PdfPTable table, int[] spans, Liststring[]
rows, FaxFonts[] fonts)
{
foreach (var row in rows)
{
var j = 0;
for (var i = 0; i  spans.Length; i++)
if (spans[i]  0)
{
table.AddCell(NewCell(row[j], fonts[i], spans[i]));
j++;
}
}
}

private PdfPCell NewCell(string text, FaxFonts font, int colspan)
{
return new PdfPCell(new Phrase(text, _fonts[(int)font].Font)) {
Colspan = colspan };
}

In AddRows spans look like { 1, 1, 1, 1, 1, 1 } or { 4, 0, 0, 0, 1, 1 }
Each row like { col1, col2, col3, col4, col5, col6 } or {
col1, col2, col3, col4 } for the above spans.

IIRC i was using table.AddCell(row[i]) when it didn't show the borders
earlier.

On Wed, Jun 29, 2011 at 10:47, 1T3XT BVBA i...@1t3xt.info wrote:

 On 29/06/2011 9:24, hhn000 wrote:
 
  Does anyone have any idea of what I'm doing wrong?
 We don't have sufficient information to answer that question.
 1. You say that you initially turned borders off and it worked.
 2. Then you turned them on and it worked.
 3. Now you turned them back off and it no longer works.
 We don't know what else you changed in 2.
 Maybe you've started working with PdfPCell objects instead of just the
 addCell() method.
 Only you know, so we don't have the answer: you have.


 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 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

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
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] Tables and FormFields: Is this a bug?

2011-01-04 Thread Johannes Becker

Hi all,

thanks to help of you (especially 1T3XT BVBA) I'm now able to create tables 
with PdfFormFields in them.

But now I'm having a strange side-effect:
The code attached generates the attached pdf. As you can see, the PdfFormFields 
of the last table
are drawn on the second page, not in the table as I would expect.

My questions:
- Am I doing this the wrong way? If so, what is my problem here?
- Is this a bug? If so, is there a workaround?

Thanks
Jonny
/* in_action/chapter15/SenderReceiver.java */
package com.foo;

import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Random;

import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.ExceptionConverter;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Rectangle;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfFormField;
import com.lowagie.text.pdf.PdfPCell;
import com.lowagie.text.pdf.PdfPCellEvent;
import com.lowagie.text.pdf.PdfPTable;
import com.lowagie.text.pdf.PdfWriter;
import com.lowagie.text.pdf.TextField;
 
/**
 * This example was written by Bruno Lowagie. It is part of the book 'iText in
 * Action' by Manning Publications. 
 * ISBN: 1932394796
 * http://www.1t3xt.com/docs/book.php 
 * http://www.manning.com/lowagie/
 */
 
public class SenderReceiver1 implements PdfPCellEvent {
 
protected PdfFormField parent;
 
protected String partialFieldName;
 
protected PdfWriter writer;
 
protected boolean required;
 
public SenderReceiver1(PdfWriter writer, PdfFormField parent, String 
name,
boolean required) {
this.writer = writer;
this.parent = parent;
this.partialFieldName = name;
this.required = required;
}
 
/**
 * @see 
com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell,
 *  com.lowagie.text.Rectangle, 
com.lowagie.text.pdf.PdfContentByte[])
 */
public void cellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] 
cb) {
TextField tf = new TextField(writer, new 
Rectangle(rect.getLeft(2), rect
.getBottom(2), rect.getRight(2), 
rect.getTop(2)), partialFieldName);
if (required)
tf.setOptions(TextField.REQUIRED);
tf.setFontSize(12);
try {
parent.addKid(tf.getTextField());
} catch (Exception e) {
throw new ExceptionConverter(e);
}
}
 
public static void main(String[] args) {
System.out.println(Chapter 15: example Sender Receiver);
System.out.println(- Creates a PDF file with an AcroForm);
System.out.println(- jars needed: iText.jar);
System.out.println(- files generated in /results 
subdirectory:);
System.out.println(   sender_receiver.pdf);
// step 1
Document document = new Document();
try {
// step 2
PdfWriter writer = PdfWriter.getInstance(document,
new 
FileOutputStream(C:/Temp/senderreceiver_ + new Random().nextInt() + .pdf));
// step 3
document.open();
// step 4
document.add(new Paragraph(Sender));
PdfFormField sender = PdfFormField.createEmpty(writer);
sender.setFieldName(sender);
document.add(createTable(writer, sender));
writer.addAnnotation(sender);

document.add(new Paragraph(Sender1));
PdfFormField sender1 = PdfFormField.createEmpty(writer);
sender1.setFieldName(sender1);
document.add(createTable(writer, sender1));
writer.addAnnotation(sender1);

document.add(new Paragraph(Sender2));
PdfFormField sender2 = PdfFormField.createEmpty(writer);
sender2.setFieldName(sender2);
document.add(createTable(writer, sender2));
writer.addAnnotation(sender2);

document.add(new Paragraph(Sender3));
PdfFormField sender3 = PdfFormField.createEmpty(writer);
sender3.setFieldName(sender3);
document.add(createTable(writer, sender3));
writer.addAnnotation(sender3);

document.add(new Paragraph(Sender4));
PdfFormField sender4 = 

Re: [iText-questions] Tables and FormFields: Is this a bug?

2011-01-04 Thread 1T3XT BVBA
Op 4/01/2011 14:45, Johannes Becker schreef:
 Hi all,

 thanks to help of you (especially 1T3XT BVBA) I'm now able to create 
 tables with PdfFormFields in them.

 But now I'm having a strange side-effect:
 The code attached generates the attached pdf. As you can see, the 
 PdfFormFields of the last table
 are drawn on the second page, not in the table as I would expect.
You're using a mighty old version of iText.
I can tell because you're still using com.lowagie classes.
Does the problem also exist in the most recent iText version?

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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] Tables and FormFields: Is this a bug?

2011-01-04 Thread Johannes Becker
Hi,

thanks for the quick reply.

  Does the problem also exist in the most recent iText version?

Yes it does (iText 5.0.5).

Thanks
Jonny


Am 04.01.2011 17:37, schrieb 1T3XT BVBA:
 Op 4/01/2011 14:45, Johannes Becker schreef:
 Hi all,

 thanks to help of you (especially 1T3XT BVBA) I'm now able to create
 tables with PdfFormFields in them.

 But now I'm having a strange side-effect:
 The code attached generates the attached pdf. As you can see, the
 PdfFormFields of the last table
 are drawn on the second page, not in the table as I would expect.
 You're using a mighty old version of iText.
 I can tell because you're still using com.lowagie classes.
 Does the problem also exist in the most recent iText version?

 --
 Learn how Oracle Real Application Clusters (RAC) One Node allows customers
 to consolidate database storage, standardize their database environment, and,
 should the need arise, upgrade to a full multi-node Oracle RAC database
 without downtime or disruption
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 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



--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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] Tables and FormFields: Is this a bug?

2011-01-04 Thread 1T3XT BVBA
Op 4/01/2011 17:51, Johannes Becker schreef:
 Hi,

 thanks for the quick reply.

   Does the problem also exist in the most recent iText version?
 Yes it does (iText 5.0.5).
OK, I'll test it to see if you've found a bug.
(It looks like one, but I need to make sure.)

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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] Tables and FormFields: Is this a bug?

2011-01-04 Thread 1T3XT BVBA

Op 4/01/2011 17:51, Johannes Becker schreef:

Hi,

thanks for the quick reply.


  Does the problem also exist in the most recent iText version?

Yes it does (iText 5.0.5).

It doesn't in the SNAPSHOT version of iText 5.0.6.
See attached code sample as well as the resulting PDF,
so whatever problem there was: it's already fixed ;-)


senderreceiver_1766675841.pdf
Description: Adobe PDF document
/* in_action/chapter15/SenderReceiver.java */
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Random;

import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.ExceptionConverter;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.PdfContentByte;
import com.itextpdf.text.pdf.PdfFormField;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPCellEvent;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.text.pdf.TextField;
 
/**
 * This example was written by Bruno Lowagie. It is part of the book 'iText in
 * Action' by Manning Publications. 
 * ISBN: 1932394796
 * http://www.1t3xt.com/docs/book.php 
 * http://www.manning.com/lowagie/
 */
 
public class SenderReceiver implements PdfPCellEvent {
 
protected PdfFormField parent;
 
protected String partialFieldName;
 
protected PdfWriter writer;
 
protected boolean required;
 
public SenderReceiver(PdfWriter writer, PdfFormField parent, String 
name,
boolean required) {
this.writer = writer;
this.parent = parent;
this.partialFieldName = name;
this.required = required;
}
 
/**
 * @see 
com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell,
 *  com.lowagie.text.Rectangle, 
com.lowagie.text.pdf.PdfContentByte[])
 */
public void cellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] 
cb) {
TextField tf = new TextField(writer, new 
Rectangle(rect.getLeft(2), rect
.getBottom(2), rect.getRight(2), 
rect.getTop(2)), partialFieldName);
if (required)
tf.setOptions(TextField.REQUIRED);
tf.setFontSize(12);
try {
parent.addKid(tf.getTextField());
} catch (Exception e) {
throw new ExceptionConverter(e);
}
}
 
public static void main(String[] args) {
System.out.println(Chapter 15: example Sender Receiver);
System.out.println(- Creates a PDF file with an AcroForm);
System.out.println(- jars needed: iText.jar);
System.out.println(- files generated in /results 
subdirectory:);
System.out.println(   sender_receiver.pdf);
// step 1
Document document = new Document();
try {
// step 2
PdfWriter writer = PdfWriter.getInstance(document,
new FileOutputStream(senderreceiver_ 
+ new Random().nextInt() + .pdf));
// step 3
document.open();
// step 4
document.add(new Paragraph(Sender));
PdfFormField sender = PdfFormField.createEmpty(writer);
sender.setFieldName(sender);
document.add(createTable(writer, sender));
writer.addAnnotation(sender);

document.add(new Paragraph(Sender1));
PdfFormField sender1 = PdfFormField.createEmpty(writer);
sender1.setFieldName(sender1);
document.add(createTable(writer, sender1));
writer.addAnnotation(sender1);

document.add(new Paragraph(Sender2));
PdfFormField sender2 = PdfFormField.createEmpty(writer);
sender2.setFieldName(sender2);
document.add(createTable(writer, sender2));
writer.addAnnotation(sender2);

document.add(new Paragraph(Sender3));
PdfFormField sender3 = PdfFormField.createEmpty(writer);
sender3.setFieldName(sender3);
document.add(createTable(writer, sender3));
writer.addAnnotation(sender3);

document.add(new Paragraph(Sender4));
PdfFormField sender4 = PdfFormField.createEmpty(writer);
sender4.setFieldName(sender4);

Re: [iText-questions] Tables and FormFields: Is this a bug?

2011-01-04 Thread Johannes Becker
Hi,

thanks again for the quick reply.

  so whatever problem there was: it's already fixed ;-)
Good job.

Since I'm stuck to an old version, might there be a
workaround (i.e. wrapping my tables in some other object)?

Thanks
Jonny


Am 04.01.2011 18:10, schrieb 1T3XT BVBA:
 /* in_action/chapter15/SenderReceiver.java */
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.util.Random;

 import com.itextpdf.text.Document;
 import com.itextpdf.text.DocumentException;
 import com.itextpdf.text.ExceptionConverter;
 import com.itextpdf.text.Paragraph;
 import com.itextpdf.text.Rectangle;
 import com.itextpdf.text.pdf.PdfContentByte;
 import com.itextpdf.text.pdf.PdfFormField;
 import com.itextpdf.text.pdf.PdfPCell;
 import com.itextpdf.text.pdf.PdfPCellEvent;
 import com.itextpdf.text.pdf.PdfPTable;
 import com.itextpdf.text.pdf.PdfWriter;
 import com.itextpdf.text.pdf.TextField;

 /**
   * This example was written by Bruno Lowagie. It is part of the book 'iText 
 in
   * Action' by Manning Publications.
   * ISBN: 1932394796
   *http://www.1t3xt.com/docs/book.php
   *http://www.manning.com/lowagie/
   */

 public class SenderReceiver implements PdfPCellEvent {



--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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] Tables and FormFields: Is this a bug?

2011-01-04 Thread 1T3XT BVBA
Op 4/01/2011 18:59, Johannes Becker schreef:
 Hi,

 thanks again for the quick reply.

 so whatever problem there was: it's already fixed ;-)
 Good job.

 Since I'm stuck to an old version, might there be a
 workaround (i.e. wrapping my tables in some other object)?
Not that I know of. I didn't test with iText 5.0.5, but it would 
surprise me if the fix was introduced recently.
I vaguely remember that this was fixed longer ago, but I don't remember 
how it was fixed.

Why are you stuck with the old version?
If it's because you want to avoid paying a license: I'm sorry, then 
you're out of luck.
If it's because you still need to run the application in JDK 1.4, then 
you could contact consultancy and ask them to make an offer to make a 
custom fix for you: http://www.itextpdf.com/contact.php#consultancy

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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] tables and tagged PDF

2007-10-22 Thread Johannes Hahn
Hi all!

I'm trying to extend my existing iText code in order to get a legal 
tagged PDF. I had no problems creating a simple (tagged) text document 
by adding marked content and writing text to the direct content as 
described in the appendix F in the iText in action manual.
But my document contains some complex table structure which I cannot 
easily create using the low level contructs of iText. The high level 
api, which I use to construct my tables, however, does not allow me to 
add tags. So my question is if there's any possibility to combine the 
construction of marked content sequences with the high level contructs 
in order to add pdf tags to the content in (nested) table cells? Would 
it for example be possible to implement an PdfCellEvent that accesses 
the text canvas of the cell and uses it to add the pdf structure 
elements to the direct content?
If not, is there any other possibility to create tagged content in 
tables without having to draw the table all by myself?

Thanks for help!

Regards,
Johannes

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] tables text and margin

2007-07-16 Thread Bruno Lowagie
Corwin noname wrote:
 How to get highest character to touch the top border of the cell? Is it 
 possible to do that?

I assume you have used setDescender(true);
(although you didn't say anything about the solution you
were using), but did you setAscender(true);
And what about the leading of the cell?
Did you take that into account?

What I meant with my counter-question was:
the information you are giving us is very vague.
That makes it almost impossible for us to answer
the question.

br,
Bruno

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] tables text and margin

2007-07-16 Thread Bruno Lowagie

Corwin noname wrote:
How to get highest character to touch the top border of the cell? Is it 
possible to do that?


I just checked the book and it should be setUseAscender instead
of setAscender. I hope you already found this out yourself.
In any case: reading chapter 6 of the book would have saved
you from having to ask the question. What surprised me reading
your question was that you found setUseDescender, but failed
to find setUseAscender...

Document document = new Document();
PdfWriter.getInstance(document, new FileOutputStream(cellheight.pdf));
document.open();
PdfPTable myTable = new PdfPTable(1);
PdfPCell cell = new PdfPCell();
cell.addElement(new Chunk(abcdefghijklmnopqrstuvwxuz));
cell.setPadding(0);
cell.setUseAscender(true);
cell.setUseDescender(true);
myTable.addCell(cell);
document.add(myTable);
document.close();

br,
Bruno


cellheight.pdf
Description: Adobe PDF document
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] tables text and margin

2007-07-15 Thread Corwin noname
Thank you Bruno.Now I know why sealing in the houses are so high :)But I still 
don’t know how to get the top border to touch the top of the text. Or I 
rephrase the question:How to get highest character to touch the top border of 
the cell? Is it possible to do that?ThanksDmitri  I need to insert text into 
a table so top and bottom of the text touches   the cells borders.At 
the moment I have managed the text touch the bottom border but I have   
failed to do this with the top of the text.  Suppose that you are an 
architect, and I ask you to build a house so that my feet touch the floor and 
my hands touch the ceiling in every room. The same should be true for my wife 
and kids. What would be the first thing you'd ask me?  Make the analogy with 
your question, and provide the answer the architect needs to meet the 
requirement.  br, Bruno  
- This 
SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE 
version of DB2 express and take control of your XML. No limits. Just data. 
Click to get it now. http://sourceforge.net/powerbar/db2/ 
___ 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/
_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] tables text and margin

2007-07-14 Thread Bruno Lowagie
Corwin noname wrote:
 I need to insert text into a table so top and bottom of the text touches 
 the cells borders.
 
 At the moment I have managed the text touch the bottom border but I have 
 failed to do this with the top of the text.

Suppose that you are an architect, and I ask you to build
a house so that my feet touch the floor and my hands touch
the ceiling in every room. The same should be true for my
wife and kids. What would be the first thing you'd ask me?

Make the analogy with your question, and provide the answer
the architect needs to meet the requirement.

br,
Bruno

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] tables text and margin

2007-07-12 Thread Corwin noname


I need to insert text into a table so top and bottom of the
text touches the cells borders.

At the moment I have managed the text touch the bottom
border but I have failed to do this with the top of the text.

 

Any ideas how it can be done?

 

Thanks

Dmitri
_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] Tables in header footer

2006-12-15 Thread Bruno Lowagie
Alexis Pigeon wrote:
 Hi Raffaele,
 
 On 14/12/06, GAMBELLI Raffaele [EMAIL PROTECTED] wrote:
 Is there anybody out there :-)?
 
 Bruno Lowagie (and Paulo Soares too I think), the main contributors of
 iText and the ones that provide 99% of the answers on the mailing
 list, are currently at Javapolis (www.javapolis.com), and can't answer
 as fast as they usually do.
 
 Please be patient, I'm sure you'll get an answer as soon as they get back.

Thanks for forwarding the information, Alexis.
Paulo and I were both at JavaPolis.
In a few moments, I'll be leaving for the Christmas Market
at my son's school. So please be patient, we'll be back at
full force on the mailing list next week.
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/


Re: [iText-questions] Tables in header footer

2006-12-15 Thread zhu hui

i have add a table into several particular pages using pageevent related
objects and methods. just by set the top margins of the page which i want to
add that table to. and by the page number info and margin height info, it
can work to meet my project' need, hehe~~^_^

On 12/16/06, Bruno Lowagie [EMAIL PROTECTED] wrote:


Alexis Pigeon wrote:
 Hi Raffaele,

 On 14/12/06, GAMBELLI Raffaele [EMAIL PROTECTED] wrote:
 Is there anybody out there :-)?

 Bruno Lowagie (and Paulo Soares too I think), the main contributors of
 iText and the ones that provide 99% of the answers on the mailing
 list, are currently at Javapolis (www.javapolis.com), and can't answer
 as fast as they usually do.

 Please be patient, I'm sure you'll get an answer as soon as they get
back.

Thanks for forwarding the information, Alexis.
Paulo and I were both at JavaPolis.
In a few moments, I'll be leaving for the Christmas Market
at my son's school. So please be patient, we'll be back at
full force on the mailing list next week.
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/

-
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] Tables in header footer

2006-12-14 Thread GAMBELLI Raffaele
Is there anybody out there :-)?

I add another question:

I would like to have the capability to put in the header  footer a Table and 
setting it in a absolute position like PdfPTable does.
I cannot use PdfPTable with normal Cell, in fact PdfPTable knows only PdfPCell, 
and it seems that there isn't a way to convert a Table to PdfPTable, is it 
correct?

Thank you very much.

Bye

Raffaele

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
GAMBELLI Raffaele
Sent: mercoledì 13 dicembre 2006 11.44
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Tables in header  footer


Hi all,

I have a very simple question:

If I want to insert a table inside my header  footer, I should override the 
onEndPage(PdfWriter writer, Document document) method as seen in this 
http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent/pageevents/EndPage.java

In fact, I think that I cannot use the HeaderFooter class with the 
setHeader(HeaderFooter header) method of the Document class.

Am I wrong?

Thank you very much, it is only a doubt...

Bye

Raffaele





-
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/

-
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] Tables in header footer

2006-12-14 Thread Alexis Pigeon
Hi Raffaele,

On 14/12/06, GAMBELLI Raffaele [EMAIL PROTECTED] wrote:
 Is there anybody out there :-)?

Bruno Lowagie (and Paulo Soares too I think), the main contributors of
iText and the ones that provide 99% of the answers on the mailing
list, are currently at Javapolis (www.javapolis.com), and can't answer
as fast as they usually do.

Please be patient, I'm sure you'll get an answer as soon as they get back.

Regards,
alexis

-
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] Tables in header footer

2006-12-14 Thread GAMBELLI Raffaele
Ok!
I'm sorry and scuse me.

Raffaele

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Alexis Pigeon
Sent: giovedì 14 dicembre 2006 11.47
To: Post all your questions about iText here
Subject: Re: [iText-questions] Tables in header  footer


Hi Raffaele,

On 14/12/06, GAMBELLI Raffaele [EMAIL PROTECTED] wrote:
 Is there anybody out there :-)?

Bruno Lowagie (and Paulo Soares too I think), the main contributors of
iText and the ones that provide 99% of the answers on the mailing
list, are currently at Javapolis (www.javapolis.com), and can't answer
as fast as they usually do.

Please be patient, I'm sure you'll get an answer as soon as they get back.

Regards,
alexis

-
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/

-
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] Tables in header footer

2006-12-14 Thread Paulo Soares
Don't use Table, don't use HeaderFooter. Neither of them can be used in a page 
event.
 
Paulo



From: [EMAIL PROTECTED] on behalf of GAMBELLI Raffaele
Sent: Thu 14-Dec-06 10:56
To: Post all your questions about iText here
Subject: Re: [iText-questions] Tables in header  footer



Is there anybody out there :-)?

I add another question:

I would like to have the capability to put in the header  footer a Table and 
setting it in a absolute position like PdfPTable does.
I cannot use PdfPTable with normal Cell, in fact PdfPTable knows only PdfPCell, 
and it seems that there isn't a way to convert a Table to PdfPTable, is it 
correct?

Thank you very much.

Bye

Raffaele

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
GAMBELLI Raffaele
Sent: mercoledì 13 dicembre 2006 11.44
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Tables in header  footer


Hi all,

I have a very simple question:

If I want to insert a table inside my header  footer, I should override the 
onEndPage(PdfWriter writer, Document document) method as seen in this 
http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent/pageevents/EndPage.java

In fact, I think that I cannot use the HeaderFooter class with the 
setHeader(HeaderFooter header) method of the Document class.

Am I wrong?

Thank you very much, it is only a doubt...

Bye

Raffaele





-
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/

-
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/




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.

winmail.dat-
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] Tables in header footer

2006-12-13 Thread GAMBELLI Raffaele
Hi all,

I have a very simple question:

If I want to insert a table inside my header  footer, I should override the 
onEndPage(PdfWriter writer, Document document) method as seen in this 
http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent/pageevents/EndPage.java

In fact, I think that I cannot use the HeaderFooter class with the 
setHeader(HeaderFooter header) method of the Document class.

Am I wrong?

Thank you very much, it is only a doubt...

Bye

Raffaele





-
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] Tables in PDF

2006-10-12 Thread Vishal Lavti
Hi All,
I have been struggling to write a code to use row-span in PdfPTable.
1. Nested Tables splits the cell and this is not the desired. Has anyone
achieved doing this in any other way?
2. Is there any way to show two tables in one horizontal in PDF document. I
guess this will help me in solving the rowspan. I can add two tables
separately one with a column and other with 2 rows. Both the table shall
have same height. I want to achieve following functionality.
-
|   |   | |
|   |cell1|cell2  |
| Detail1   |---|---|
|   |cell3|cell4  |
|   |   | |
|
|   |row-3,cell6  |cell7  |
|   |   | |
|Detail 2   |---|---|
|   |row-3,cell9  |cell10 |
|   |   | |
-


My question was, Is there a way to add two tables in horizontal way. In
above example, One table will be with 1 row and 1 column containing text
Detail1 and second table will be with 2 rows and 2 columns and content of
the cell will be cell1,cell2,cell3 and cell4
So If I display two tables like this with no spacing between both the
tables then I can achieve row-span in PdfPTable.

3. If anyone has done this, please share the code/example to do this.

Thanks in advance.
Vishal Lavti

Internet address: [EMAIL PROTECTED]


-
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


[iText-questions] Tables and paragraph indentation

2006-08-08 Thread Doležel Petr



Please,
I have a pdf 
document with some paragraphs. Some paragraphs has attribute left indentation 
set on. Everything work well.
Butnext I 
createa PdfPTable with some cells (2 cells in 2 rows), add it into a 
Paragraph, and nextI add this Paragraph with my Table into a 
Document.
After I include this 
Table into my document, every older paragraphs below the Table are showed as not 
indentated, but left indentation is still set. It is an 
error.

-
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


[iText-questions] tables and repeating header rows on the next page

2006-06-15 Thread Adrian Maier
Hello,

I am generating a large table that can span across several pages. And
I'm looking for a solution to repeat the page header on each page.
The problem is that I'm not using PdfPTable ( which has a setHeaderRows
method)  but the Table class.  I need to generate either pdf or rtf .

Does anyone happen to know how can i repeat the header rows when
using the Table class ?

Thanks,
Adrian Maier


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


Re: [iText-questions] tables and repeating header rows on the next page

2006-06-15 Thread bruno
Adrian Maier wrote:

Hello,

I am generating a large table that can span across several pages. And
I'm looking for a solution to repeat the page header on each page.
The problem is that I'm not using PdfPTable ( which has a setHeaderRows
method)  but the Table class.  I need to generate either pdf or rtf .

Does anyone happen to know how can i repeat the header rows when
using the Table class ?

Look for the method endHeaders.
Use it after you have added the cells that define the header row(s).
br,
Bruno


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


Re: [iText-questions] tables and repeating header rows on the next page

2006-06-15 Thread Adrian Maier
On 15/06/06, bruno [EMAIL PROTECTED] wrote:
 Adrian Maier wrote:
 I am generating a large table that can span across several pages. And
 I'm looking for a solution to repeat the page header on each page.
 The problem is that I'm not using PdfPTable ( which has a setHeaderRows
 method)  but the Table class.  I need to generate either pdf or rtf .
 
 Does anyone happen to know how can i repeat the header rows when
 using the Table class ?
 
 Look for the method endHeaders.
 Use it after you have added the cells that define the header row(s).

Simply adding  table.setHeaders()  after  having added the header's cells
has no effect. Is there something else that needs to be done?

This is the code :

float[] widths = {0.15f, 0.2f, 0.15f, 0.2f, 0.15f, 0.2f};
Table table = new Table(6); 
table.setWidths(widths);
table.setWidth(100);
table.setBorderWidth(0);
table.setDefaultCellBorderColor(Color.BLACK);   
table.setCellsFitPage(true);
if (isPDF) { table.setSpaceInsideCell(3);
} else { table.setSpaceInsideCell(10); }
table.setPadding(2);

String[] colonnes={Responsable,Commande,Procédure,Prestataire,Début
de la mission,Cout};
for (int i=0; icolonnes.length; i++) {
cell = new Cell(new Paragraph(colonnes[i], fntNormal));
cell.setBackgroundColor(getTableHeaderColor());
table.addCell(cell);
}
table.endHeaders();

// ... add table contents 
document.add(table);


Best wishes,
Adrian Maier


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


Re: [iText-questions] Tables and footers

2006-06-13 Thread bruno
Jeff Mogielnicki wrote:

1) Should I be using the Table object or use PDFpTable and writeSelectedRows()?
  

It's better to use PdfPTable than Table in your case.
You don't necessarily have to use writeSelectedRows.
You can add a PdfPTable to a document the same way
you add a Table.

2) Has this behavior been seen before?

That specific behavior: no. Other problems with Table: yes.

Schoolsoft.se is using Table for making complex time tables.
Every row is a time slot. They can't use PdfPTable, because
they need rowspan. The workaround with nested tables would
make their code needlessly complex.
They have tested the new Table code intensively and reported
different problems by sending me small standalone apps that
reproduce the problem. Most of the issues were solved in
iText1.4.1. A less trivial problem was solved afterwards.
The fix is in the CVS.
My first adise would be to upgrade to iText1.4.1 and check
if the problem persists.
br,
Bruno


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


[iText-questions] Tables and footers

2006-06-12 Thread Jeff Mogielnicki
Hi,

I have a report that has a header and footer on every page.  The
report displays multiple tables, of which a single table can span
multiple pages.  The table is created using the com.lowagie.text.Table
object.  The report was working fine under iText-0.90.jar.  I recently
upgraded to itext-1.4.jar with no code changes.  Everything works fine
except for a problem when a table ends at the bottom of a page. When
this happens, 2 page feeds get put in the document and a footer
appears at the top of the third page, overwriting subsequent table
data.  The code lets iText split the tables when spanning a page.

 My questions are:
1) Should I be using the Table object or use PDFpTable and writeSelectedRows()?
2) Has this behavior been seen before?

Any and all help is appreciated,
-Jeff


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


[iText-questions] Tables with SubTables generates empty rows

2006-03-14 Thread Dante Notari
Hi,
I have a table with a subtable. The main table has only one row,
however the Table.size() returns 21. For some reason it has generated
many rows.
There are a series of methods used (getTable, getDataCell, getLabelCell
which return the Element with some formatting).

I have other tables with sub table and they have as well empty rows in
the main table at the end.

--- snip - begin
Table lMainTable = getTable(1);
lMainTable.addCell(getHeaderCell(Personal Information));

Table lDetailTable = getTable(3);

// image
Cell ltempCell = new Cell();
ltempCell.setBorderWidth(0);
ltempCell.setRowspan(10);
ltempCell.addElement(Image.getInstance(placeholder.gif));
lDetailTable.addCell(ltempCell);

lDetailTable.addCell(getLabelCell(First Name));
lDetailTable.addCell(getDataCell(dFirstName));
lDetailTable.addCell(getLabelCell(Last Name));
lDetailTable.addCell(getDataCell(dLastName));
lDetailTable.addCell(getLabelCell(Job Title));
lDetailTable.addCell(getDataCell(dJobTitle));
lMainTable.addCell(getTableCell(lDetailTable));
document.add(lMainTable);
--- snip - end

Any ideas ?
Thanks,
Dante

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Tables with SubTables generates empty rows

2006-03-14 Thread Paulo Soares

Table is not supported anymore, use a PdfPTable instead.

- Original Message - 
From: Dante Notari [EMAIL PROTECTED]

To: itext-questions@lists.sourceforge.net
Sent: Wednesday, March 15, 2006 5:34 AM
Subject: [iText-questions] Tables with SubTables generates empty rows


Hi,
I have a table with a subtable. The main table has only one row,
however the Table.size() returns 21. For some reason it has generated
many rows.
There are a series of methods used (getTable, getDataCell, getLabelCell
which return the Element with some formatting).

I have other tables with sub table and they have as well empty rows in
the main table at the end.

--- snip - begin
Table lMainTable = getTable(1);
lMainTable.addCell(getHeaderCell(Personal Information));

Table lDetailTable = getTable(3);

// image
Cell ltempCell = new Cell();
ltempCell.setBorderWidth(0);
ltempCell.setRowspan(10);
ltempCell.addElement(Image.getInstance(placeholder.gif));
lDetailTable.addCell(ltempCell);

lDetailTable.addCell(getLabelCell(First Name));
lDetailTable.addCell(getDataCell(dFirstName));
lDetailTable.addCell(getLabelCell(Last Name));
lDetailTable.addCell(getDataCell(dLastName));
lDetailTable.addCell(getLabelCell(Job Title));
lDetailTable.addCell(getDataCell(dJobTitle));
lMainTable.addCell(getTableCell(lDetailTable));
document.add(lMainTable);
--- snip - end

Any ideas ?
Thanks,
Dante

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Tables and new pages

2006-01-18 Thread Bruno Lowagie

Please stay on the mailing list instead of replying to me personally..

[EMAIL PROTECTED] wrote:


Bruno,

Cheers for getting back to me, I changed to the PdfPTable and alot of the
options were gone, but it sovled the issue. Is there anyway to set the
cellpadding/defaultcellborder etc like in the table object?


There's a method getDefaultCell()
Do something like getDefaultCell().setBorder(Rectangle.TOP);
and you change the default border:
br,
Bruno


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Tables and new pages

2006-01-17 Thread Gavin
Hi all,

I need some help sorting out a formatting issue when creating an pdf.

Basically i'm creating a table, setting all the settings, then from a database 
going through each result and creating the cells to display the data.

What I am doing is looping through the results, and each time adding 4 new 
cells to the table, which works perfectly fine, but if the results continue 
onto a new page, the first 2 rows or sets of cells overlap each other.

Below is the code that generates the pdf document, the results are collected 
into an Arraylist of file objects.

[code]
try
{
PdfWriter writer = PdfWriter.GetInstance
(basedoc, new FileStream(Server.MapPath() + /_files/ + IPAddress.Replace
(.,) + .pdf, FileMode.Create));
writer.SetEncryption
(PdfWriter.STRENGTH40BITS, null, null, PdfWriter.AllowPrinting);

basedoc.Open();

Font items_font = new Font(1, 10f);
basedoc.Header = new HeaderFooter(new 
Phrase(File Review Report - , items_font), new Phrase(  :  + 
DateTime.Now.ToShortDateString(), items_font));

Table main = new Table(4, 2);
main.DefaultCellBorder = 0;
main.Border = 0;
main.Cellpadding = 0;
main.Cellspacing = 0;
main.Padding = 0;

main.SetWidths(new int[4]{ 50, 300, 
100, 75});

Font Header_Font = new Font(1, 20f);
Font List_Font = new Font(1, 10f);

Table Header = new Table(2);

Header.DefaultCellBorder = 0;
Header.Border = 0;
Header.Cellpadding = 0;
Header.Cellspacing = 0;
Header.Padding = 0;

Paragraph Paragraph_HDR_MainText = new 
Paragraph(File Review Report -  + AccountName, Header_Font);
Paragraph Paragraph_HDR_SmallText = new 
Paragraph(Created:  + DateTime.Now.ToShortDateString(), List_Font);
Cell Header_MainText = new Cell();
Header_MainText.Add
(Paragraph_HDR_MainText);
Header_MainText.Add
(Paragraph_HDR_SmallText);

iTextSharp.text.Image logo = 
iTextSharp.text.Image.GetInstance(Server.MapPath(logo.gif));
logo.ScaleToFit(45f, 45f);
logo.Alignment = 
iTextSharp.text.Image.ALIGN_RIGHT;
Cell Header_Logo = new Cell();
Header_Logo.Add(logo);

Header.AddCell(Header_MainText);
Header.AddCell(Header_Logo);

Paragraph spacer_content = new Paragraph
(s , new Font(1, 20f, 1, iTextSharp.text.Color.WHITE));
Cell spacer = new Cell(spacer_content);
spacer.Colspan = 4;

main.AddCell(spacer);

basedoc.Add(Header);

Phrase header_1_phrase = new Phrase
(Barcode, List_Font);
Cell header_1 = new Cell
(header_1_phrase);

Phrase header_2_phrase = new Phrase
(Reference, List_Font);
Cell header_2 = new Cell
(header_2_phrase);

Phrase header_3_phrase = new Phrase
(Holder, List_Font);
Cell header_3 = new Cell
(header_3_phrase);

Phrase header_4_phrase = new Phrase
(Review Date, List_Font);
Cell header_4 = new Cell
(header_4_phrase);

main.AddCell(header_1);
main.AddCell(header_2);
main.AddCell(header_3);
main.AddCell(header_4);

Paragraph spacer_content1 = new 
Paragraph(s , new Font(1, 5f, 1, 

RE: [iText-questions] Tables and new pages

2006-01-17 Thread Paulo Soares
Use a PdfPTable. 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Gavin
 Sent: Tuesday, January 17, 2006 1:34 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Tables and new pages
 
 Hi all,
 
 I need some help sorting out a formatting issue when creating an pdf.
 
 Basically i'm creating a table, setting all the settings, 
 then from a database 
 going through each result and creating the cells to display the data.
 
 What I am doing is looping through the results, and each time 
 adding 4 new 
 cells to the table, which works perfectly fine, but if the 
 results continue 
 onto a new page, the first 2 rows or sets of cells overlap each other.
 
 Below is the code that generates the pdf document, the 
 results are collected 
 into an Arraylist of file objects.
 
 [code]
 try
   {
   PdfWriter writer = 
 PdfWriter.GetInstance
 (basedoc, new FileStream(Server.MapPath() + /_files/ + 
 IPAddress.Replace
 (.,) + .pdf, FileMode.Create));
   writer.SetEncryption
 (PdfWriter.STRENGTH40BITS, null, null, PdfWriter.AllowPrinting);
 
   basedoc.Open();
   
   Font items_font = new 
 Font(1, 10f);
   basedoc.Header = new 
 HeaderFooter(new 
 Phrase(File Review Report - , items_font), new Phrase(  :  + 
 DateTime.Now.ToShortDateString(), items_font));
 
   Table main = new Table(4, 2);
   main.DefaultCellBorder = 0;
   main.Border = 0;
   main.Cellpadding = 0;
   main.Cellspacing = 0;
   main.Padding = 0;
 
   main.SetWidths(new 
 int[4]{ 50, 300, 
 100, 75});
 
   Font Header_Font = new 
 Font(1, 20f);
   Font List_Font = new 
 Font(1, 10f);
 
   Table Header = new Table(2);
 
   Header.DefaultCellBorder = 0;
   Header.Border = 0;
   Header.Cellpadding = 0;
   Header.Cellspacing = 0;
   Header.Padding = 0;
 
   Paragraph 
 Paragraph_HDR_MainText = new 
 Paragraph(File Review Report -  + AccountName, Header_Font);
   Paragraph 
 Paragraph_HDR_SmallText = new 
 Paragraph(Created:  + DateTime.Now.ToShortDateString(), List_Font);
   Cell Header_MainText = 
 new Cell();
   Header_MainText.Add
 (Paragraph_HDR_MainText);
   Header_MainText.Add
 (Paragraph_HDR_SmallText);
 
   iTextSharp.text.Image logo = 
 iTextSharp.text.Image.GetInstance(Server.MapPath(logo.gif));
   logo.ScaleToFit(45f, 45f);
   logo.Alignment = 
 iTextSharp.text.Image.ALIGN_RIGHT;
   Cell Header_Logo = new Cell();
   Header_Logo.Add(logo);
 
   Header.AddCell(Header_MainText);
   Header.AddCell(Header_Logo);
 
   Paragraph 
 spacer_content = new Paragraph
 (s , new Font(1, 20f, 1, iTextSharp.text.Color.WHITE));
   Cell spacer = new 
 Cell(spacer_content);
   spacer.Colspan = 4;
 
   main.AddCell(spacer);
 
   basedoc.Add(Header);
 
   Phrase header_1_phrase 
 = new Phrase
 (Barcode, List_Font);
   Cell header_1 = new Cell
 (header_1_phrase);
   
   Phrase header_2_phrase 
 = new Phrase
 (Reference, List_Font);
   Cell header_2 = new Cell
 (header_2_phrase);
   
   Phrase header_3_phrase 
 = new Phrase
 (Holder, List_Font);
   Cell header_3 = new Cell
 (header_3_phrase);
   
   Phrase header_4_phrase 
 = new Phrase
 (Review Date, List_Font);
   Cell header_4 = new Cell
 (header_4_phrase);
 
   main.AddCell(header_1

Re: [iText-questions] Tables and new pages

2006-01-17 Thread bruno

Gavin wrote:


Hi all,

I need some help sorting out a formatting issue when creating an pdf.

Basically i'm creating a table, setting all the settings, then from a database 
going through each result and creating the cells to display the data.


What I am doing is looping through the results, and each time adding 4 new 
cells to the table, which works perfectly fine, but if the results continue 
onto a new page, the first 2 rows or sets of cells overlap each other.



Are you using iText 1.3.6?
If not, please do an upgrade and tell us if the problem persists.
If you can't upgrade: please don't use class Table, use PdfPTable instead.
br,
Bruno


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Tables and the border

2005-11-21 Thread Mark Babcock








Why is it that when I print a table and I have the table
border set to not show I always get a border when I print?








Re: [iText-questions] Tables and the border

2005-11-21 Thread bruno

Mark Babcock wrote:

Why is it that when I print a table and I have the table border set to 
not show I always get a border when I print?



Because the cell have borders too?
br,
Bruno


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] tables and cells

2005-10-13 Thread S G
i'm generating a table that needs to be tightly
formatted. i.e. fixed widths and text inside
the cells have to fit.

i'm using pdfptable

1. as i'm adding cells, can i find the height of
the table so far?

2. if the text inside a cell does not fit - i need to
make the font smaller on a per cell basis. if the cell
gets too small...then split across multiple lines etc.

how do i do this...i assume cellevents...but haven't
been able to figure it out exactly.

3. is there a way to set up the table structure
(widths, format etc). and then add content on the same
object on a per page basis.

for example:
   - set up table object
   - for each page do
 set table.cell(1,1).setText(???);

thanks.





__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Tables Question

2005-05-18 Thread Constantinos Sofianos
Hi All,
I am new to this list, but would like to dive in with a new question 
regarding tables:

Is it possible to omit only one portion of a cell border?  For example I 
would like to have a table with 4 rows and two columns.
I only want the outside border  of each column to be visible. Is this 
possible with iText?  

Note to the Developers: my client is prepared to pay for any new 
development even while the new development stays as part of the open 
source project.

Best Regards
Costa
--
Alchimea Network Applications
w: +27 11 292 5512
m: +27 82 750 7327

---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Tables Question

2005-05-18 Thread Steve Appling
The border on each side of a cell can be turned on or off using 
setBorder.  Individual border sides can even be different widths or 
colors.  All of the border related methods for Cells and PdfPCells are 
in the base class Rectangle. 

Constantinos Sofianos wrote:
Hi All,
I am new to this list, but would like to dive in with a new question 
regarding tables:

Is it possible to omit only one portion of a cell border?  For example 
I would like to have a table with 4 rows and two columns.
I only want the outside border  of each column to be visible. Is this 
possible with iText? 
Note to the Developers: my client is prepared to pay for any new 
development even while the new development stays as part of the open 
source project.

Best Regards
Costa


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Tables Question

2005-05-18 Thread Doug James
You can also use the Rectangle.disableBorderSide(int side) method that
receives a Rectangle constant integer as a parameter.

Doug

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Appling
Sent: Wednesday, May 18, 2005 7:49 AM
To: Constantinos Sofianos
Cc: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Tables Question

The border on each side of a cell can be turned on or off using
setBorder.  Individual border sides can even be different widths or
colors.  All of the border related methods for Cells and PdfPCells are
in the base class Rectangle. 

Constantinos Sofianos wrote:

 Hi All,

 I am new to this list, but would like to dive in with a new question 
 regarding tables:

 Is it possible to omit only one portion of a cell border?  For example

 I would like to have a table with 4 rows and two columns.
 I only want the outside border  of each column to be visible. Is this 
 possible with iText?
 Note to the Developers: my client is prepared to pay for any new 
 development even while the new development stays as part of the open 
 source project.

 Best Regards
 Costa




---
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be
the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 07/29/2003)
***


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12alloc_id344op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Tables Question

2005-05-18 Thread Constantinos Sofianos
many thanks. this helps a lot.
costa
Doug James wrote:
You can also use the Rectangle.disableBorderSide(int side) method that
receives a Rectangle constant integer as a parameter.
Doug
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Appling
Sent: Wednesday, May 18, 2005 7:49 AM
To: Constantinos Sofianos
Cc: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Tables Question
The border on each side of a cell can be turned on or off using
setBorder.  Individual border sides can even be different widths or
colors.  All of the border related methods for Cells and PdfPCells are
in the base class Rectangle. 

Constantinos Sofianos wrote:
 

Hi All,
I am new to this list, but would like to dive in with a new question 
regarding tables:

Is it possible to omit only one portion of a cell border?  For example
   

 

I would like to have a table with 4 rows and two columns.
I only want the outside border  of each column to be visible. Is this 
possible with iText?
Note to the Developers: my client is prepared to pay for any new 
development even while the new development stays as part of the open 
source project.

Best Regards
Costa
   



---
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be
the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 07/29/2003)
***
 

--
Alchimea Network Applications
e:  [EMAIL PROTECTED]
w: +27 11 292 5512
m: +27 82 750 7327

---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] tables in paragraphs + setKeepTogether

2005-03-23 Thread Paulo Soares
If you are talking about Table anything (wrong) can happen.

- Original Message - 
From: todwith1d [EMAIL PROTECTED]
To: iText-questions@lists.sourceforge.net
Sent: Tuesday, March 22, 2005 8:24 PM
Subject: [iText-questions] tables in paragraphs + setKeepTogether


 Hi All

 Is there is an issue with tables in paragraphs disappearing with
 setKeepTogether = true?

 Has anyone else experienced this?  Work arounds?

 Thanks
 TD


 ---
 This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
 Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
 for the chance to win $25,000 and application distribution. Enter today at
 http://ads.osdn.com/?ad_id=6882alloc_id=15148op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.net email is sponsored by Microsoft Mobile  Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r)  Windows Mobile(tm) platforms, applications  content.  Register
by 3/29  save $300 http://ads.osdn.com/?ad_id=6883alloc_id=15149op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] tables in paragraphs + setKeepTogether

2005-03-22 Thread todwith1d
Hi All 

Is there is an issue with tables in paragraphs disappearing with
setKeepTogether = true?

Has anyone else experienced this?  Work arounds? 

Thanks 
TD


---
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882alloc_id=15148op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] tables in tables

2004-11-10 Thread John Sims

There is no setExtendLastRow method in any of the itext classes. I'm using 1.02b "Paulo Soares" [EMAIL PROTECTED] 11/9/2004 5:32:15 PM 
Usage:PdfPCell cell = new PdfPCell();cell.setPadding(0);table.setWidthPercentage(100);table.setExtendLastRow(false);cell.addElement(table);- Original Message - From: "John Sims" [EMAIL PROTECTED]To: [EMAIL PROTECTED]; [EMAIL PROTECTED]Sent: Tuesday, November 09, 2004 21:17Subject: Re: [iText-questions] tables in tables I have a PdfPTable but can't find a method to control row expansion (eg. table.setRowExpansion(false);)  Is there a method?  thanks, -john   "Paulo Soares" [EMAIL PROTECTED] 11/9/2004 3:57:44 PM   You need a PdfPTable to be able to control the last row expansion.  - Original Message -  From: "John Sims" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 20:23 Subject: [iText-questions] tables in tablesI'm creating tables within tables. The top level table has three columns  (one column for each sub-table). The top level table only has one row  (ie. one row of tables). Each of the three sub-tables has a different  number of rows. The last row of the two smaller sub-tables (smaller in  terms of the number of rows) is being expanded/padded vertically to fill  the entire height of the largest table/cell. Is there a method on the  cell and/or table that controls this? I want the border of the two  smaller sub-tables to reflect the correct size and not make the last row  look like there's a bunch of blank lines.thanks,  -john --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions  ---This SF.Net email is sponsored by:Sybase ASE Linux Express Edition - download now for FREELinuxWorld Reader's Choice Award Winner for best database on Linux.http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click___iText-questions mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] tables in tables

2004-11-10 Thread Paulo Soares



You must use the version 
at http://itextpdf.sf.net or wait a couple 
of days until that version goes into the official release.

  
  
  From: John Sims [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
  November 10, 2004 2:33 PMTo: Paulo Soares; 
  [EMAIL PROTECTED]Subject: Re: [iText-questions] 
  tables in tables
  There is no setExtendLastRow method in any of the itext 
  classes. I'm using 1.02b "Paulo Soares" 
  [EMAIL PROTECTED] 11/9/2004 5:32:15 PM 
  Usage:PdfPCell cell = new 
  PdfPCell();cell.setPadding(0);table.setWidthPercentage(100);table.setExtendLastRow(false);cell.addElement(table);- 
  Original Message - From: "John Sims" [EMAIL PROTECTED]To: 
  [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Sent: Tuesday, November 09, 
  2004 21:17Subject: Re: [iText-questions] tables in tables 
  I have a PdfPTable but can't find a method to control row expansion 
  (eg. table.setRowExpansion(false);)  Is there a 
  method?  thanks, -john  
   "Paulo Soares" [EMAIL PROTECTED] 11/9/2004 3:57:44 PM 
You need a PdfPTable to be able to control the 
  last row expansion.  - Original Message -  
  From: "John Sims" [EMAIL PROTECTED] To: 
  [EMAIL PROTECTED] Sent: Tuesday, November 
  09, 2004 20:23 Subject: [iText-questions] tables in tables 
 I'm creating tables within tables. The top level table 
  has three columns  (one column for each sub-table). The 
  top level table only has one row  (ie. one row of tables). 
  Each of the three sub-tables has a different  number of 
  rows. The last row of the two smaller sub-tables (smaller in 
   terms of the number of rows) is being expanded/padded vertically 
  to fill  the entire height of the largest table/cell. Is 
  there a method on the  cell and/or table that controls 
  this? I want the border of the two  smaller sub-tables to reflect 
  the correct size and not make the last row  look like 
  there's a bunch of blank lines.
  thanks,  -john 
  --- This SF.Net 
  email is sponsored by: Sybase ASE Linux Express Edition - download now 
  for FREE LinuxWorld Reader's Choice Award Winner for best database on 
  Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click 
  ___ iText-questions 
  mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions 
   
  ---This 
  SF.Net email is sponsored by:Sybase ASE Linux Express Edition - download 
  now for FREELinuxWorld Reader's Choice Award Winner for best database on 
  Linux.http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click___iText-questions 
  mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] tables in tables

2004-11-09 Thread John Sims


I'm creating tables within tables. The top level table has three columns (one columnfor each sub-table). The top level table only has one row (ie. one row of tables). Each of the three sub-tables has a different number of rows. The last row of thetwo smaller sub-tables (smaller in terms of the number of rows) is being expanded/padded vertically to fill the entire height of the largest table/cell. Is there a method on the cell and/or table that controls this? I want the border of the two smaller sub-tables to reflect the correct size and not make the last row look like there's a bunch of blank lines.

thanks,
-john


Re: [iText-questions] tables in tables

2004-11-09 Thread Paulo Soares
You need a PdfPTable to be able to control the last row expansion.

- Original Message - 
From: John Sims [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 20:23
Subject: [iText-questions] tables in tables


 I'm creating tables within tables. The top level table has three columns
 (one column for each sub-table). The top level table only has one row
 (ie. one row of tables). Each of the three sub-tables has a different
 number of rows. The last row of the two smaller sub-tables (smaller in
 terms of the number of rows) is being expanded/padded vertically to fill
 the entire height of the largest table/cell. Is there a method on the
 cell and/or table that controls this? I want the border of the two
 smaller sub-tables to reflect the correct size and not make the last row
 look like there's a bunch of blank lines.
  
 thanks,
 -john
 


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] tables in tables

2004-11-09 Thread John Sims


I have a PdfPTable but can't find a method to control row expansion (eg. table.setRowExpansion(false);)

Is there a method?

thanks,
-john "Paulo Soares" [EMAIL PROTECTED] 11/9/2004 3:57:44 PM 
You need a PdfPTable to be able to control the last row expansion.- Original Message - From: "John Sims" [EMAIL PROTECTED]To: [EMAIL PROTECTED]Sent: Tuesday, November 09, 2004 20:23Subject: [iText-questions] tables in tables I'm creating tables within tables. The top level table has three columns (one column for each sub-table). The top level table only has one row (ie. one row of tables). Each of the three sub-tables has a different number of rows. The last row of the two smaller sub-tables (smaller in terms of the number of rows) is being expanded/padded vertically to fill the entire height of the largest table/cell. Is there a method on the cell and/or table that controls this? I want the border of the two smaller sub-tables to reflect the correct size and not make the last row look like there's a bunch of blank lines.  thanks, -john ---This SF.Net email is sponsored by:Sybase ASE Linux Express Edition - download now for FREELinuxWorld Reader's Choice Award Winner for best database on Linux.http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click___iText-questions mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] tables in tables

2004-11-09 Thread Paulo Soares
Usage:

PdfPCell cell = new PdfPCell();
cell.setPadding(0);
table.setWidthPercentage(100);
table.setExtendLastRow(false);
cell.addElement(table);


- Original Message - 
From: John Sims [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 21:17
Subject: Re: [iText-questions] tables in tables


 I have a PdfPTable but can't find a method to control row expansion (eg.
 table.setRowExpansion(false);)
  
 Is there a method?
  
 thanks,
 -john
 
  Paulo Soares [EMAIL PROTECTED] 11/9/2004 3:57:44 PM 
 
 You need a PdfPTable to be able to control the last row expansion.
 
 - Original Message - 
 From: John Sims [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 09, 2004 20:23
 Subject: [iText-questions] tables in tables
 
 
  I'm creating tables within tables. The top level table has three
 columns
  (one column for each sub-table). The top level table only has one
 row
  (ie. one row of tables). Each of the three sub-tables has a
 different
  number of rows. The last row of the two smaller sub-tables (smaller
 in
  terms of the number of rows) is being expanded/padded vertically to
 fill
  the entire height of the largest table/cell. Is there a method on
 the
  cell and/or table that controls this? I want the border of the two
  smaller sub-tables to reflect the correct size and not make the last
 row
  look like there's a bunch of blank lines.
   
  thanks,
  -john
  
 
 
 ---
 This SF.Net email is sponsored by:
 Sybase ASE Linux Express Edition - download now for FREE
 LinuxWorld Reader's Choice Award Winner for best database on Linux.
 http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Tables spanning multiple pages

2004-09-27 Thread Paulo Soares
Use a PdfPTable and the version at itextpdf.sf.net.

Best Regards,
Paulo Soares

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 27, 2004 19:02
Subject: [iText-questions] Tables spanning multiple pages


 Hello.

 I have a strange bug when I use the iText library to generate tables that
 span multiple pages.  I am using the fitsOnPage method to determine if a
 table is the correct size to fit on a page, and if not, I create a new
 table and add the row to it and then add that table to the document.

 It works quite well with tables spanning 3 pages or less, but it seems
 when the tables get larger than that I often get instances where one row
 will appear on one page and then the new table will come in the next page.

 E.G.  Page 1 contains x rows of table
 Page 2 contains x rows of table
 Page 3 contains 1 table row
 Page 4 contains x table rows
 Page 4 contains x table rows.

 Has anyone run into a problem like this and have any recommendations on
 how to fix this?

 Thanks.


 ---
 This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
 Project Admins to receive an Apple iPod Mini FREE for your judgement on
 who ports your project to Linux PPC the best. Sponsored by IBM.
 Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Tables with blank empty space cell at the base

2004-06-11 Thread Richard Christiansen
First of all, thanks for a wonderful product.  Your classes provide a 
quick and reliable PDF solution for web applications - and that's not a 
small feat!

I have a quick question about tables which refers to the example below:
http://www.lowagie.com/iText/examples/Chap0512.pdf
Although the cells all stay on the same page, there remains that empty 
box at the base of the table beneath the table data.  Is there some way 
to avoid this?

Thanks in advance,
-Rich Christiansen

---
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Tables side-by-side

2004-03-11 Thread Paulo Soares
If you really need complete layout control the solution is to use
PdfPTable and place them at absolute positions side by side. Nested
tables in PdfPTable are completely independent and can be a solution if
the combined table size doesn't exceed a page length.

Best Regards,
Paulo Soares

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Ben Rometsch
 Sent: Wednesday, March 10, 2004 11:17 AM
 To: [EMAIL PROTECTED]
 Subject: [iText-questions] Tables side-by-side
 
 Hi,
 
 Is it possible to have 2 tables sit horizontally side by 
 side? If I add 
 2 tables to a document, they always stack on top of each other, 
 irrespective of width...
 
 Having a table with 1 row and 2 columns and then inserting a nested 
 table into each cell is no use to me, as I need to be able to have 
 totally different sized cells in each table...
 
 Or is there a better solution?
 
 Thanks,
 Ben
 
 -- 
 == Solid State Group ==
 Web www.solidstategroup.com
 Email   [EMAIL PROTECTED]
 MSN [EMAIL PROTECTED]
 
 
 
 ---
 This SF.Net email is sponsored by: IBM Linux Tutorials
 Free Linux tutorial presented by Daniel Robbins, President and CEO of
 GenToo technologies. Learn everything from fundamentals to system
 administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70alloc_id638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Tables side-by-side

2004-03-10 Thread Ben Rometsch
Hi,

Is it possible to have 2 tables sit horizontally side by side? If I add 
2 tables to a document, they always stack on top of each other, 
irrespective of width...

Having a table with 1 row and 2 columns and then inserting a nested 
table into each cell is no use to me, as I need to be able to have 
totally different sized cells in each table...

Or is there a better solution?

Thanks,
Ben
--
== Solid State Group ==
Web www.solidstategroup.com
Email   [EMAIL PROTECTED]
MSN [EMAIL PROTECTED]


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Tables...?

2004-01-27 Thread Bernard Herrok









Hi,

When I write an item to a cell and the something later
writes on the same cell, it clears the content of the cell.

Is there a way to overwrite an existing value and
formatting in a cell?

Thanks







Bernard Herrok | Application Developer | Spotlight Stores P/L
Ph +61 3 9684 7657 | Fax +61 3 9684 7272 | Mob +61 0423 037 686
Email [EMAIL PROTECTED] | www.spotlight.com.au



Disclaimer---

This email (including all attachments) may
contain personal information 
and is intended solely for the named addressee. It is confidential and 
may be subject to legal or other professional privilege. Any 
confidentiality or privilege is not waived or lost because this email 
has been sent to you by mistake. If you have received it in error, 
please let us know by reply email, delete it from your system and 
destroy any copies.

---










image001.jpg

[iText-questions] tables

2004-01-09 Thread Turetsky, Seth
Don't think this post went through

-Original Message-
From: Turetsky, Seth 
Sent: Friday, January 09, 2004 8:57 AM
To: [EMAIL PROTECTED]
Subject: tables


How would I do this with nested tables(or is there another way):
3 columns across the document, all with a varying amount of subtables inside
them.  The problem is that the subtables always want to line up horizontally
with the other subtables in the other columns, so there are gaps in between
the subtables in each column.

hope this makes sense

thanks,
seth

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] tables

2004-01-09 Thread Turetsky, Seth
How would I do this with nested tables(or is there another way):
3 columns across the document, all with a varying amount of subtables inside
them.  The problem is that the subtables always want to line up horizontally
with the other subtables in the other columns, so there are gaps in between
the subtables in each column.

hope this makes sense

thanks,
seth

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] tables

2004-01-09 Thread Paulo Soares
Title: RE: [iText-questions] tables






A picture would help. Are you using Table or PdfPTable?


Best Regards,

Paulo Soares


-Original Message-

From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Turetsky, Seth

Sent: Friday, January 09, 2004 13:57

To: [EMAIL PROTECTED]

Subject: [iText-questions] tables


How would I do this with nested tables(or is there another way):

3 columns across the document, all with a varying amount of subtables inside

them. The problem is that the subtables always want to line up horizontally

with the other subtables in the other columns, so there are gaps in between

the subtables in each column.


hope this makes sense


thanks,

seth


==

This message is for the sole use of the intended recipient. If you received

this message in error please delete it and notify us. If this message was

misdirected, CSFB does not waive any confidentiality or privilege. CSFB

retains and monitors electronic communications sent through its network.

Instructions transmitted over this system are not binding on CSFB until they

are confirmed by us. Message transmission is not guaranteed to be secure.

==




---

This SF.net email is sponsored by: Perforce Software.

Perforce is the Fast Software Configuration Management System offering

advanced branching capabilities and atomic changes on 50+ platforms.

Free Eval! http://www.perforce.com/perforce/loadprog.html

___

iText-questions mailing list

[EMAIL PROTECTED]

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





Re: [iText-questions] tables within a header

2003-07-27 Thread Rolando Cuevas


From: Paulo Soares [EMAIL PROTECTED]
To: Rolando Cuevas 
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: Re: [iText-questions] tables within a header
Date: Wed, 23 Jul 2003 21:52:06 +0100

You don't need (and shouldn't use) fitsPage to set the tabe width. Use
table.setTotalWidth(document.right() - document.left()) and place the table
at position document.left().
Table width is working right.
The problem is with table height value. I use tableheight to set document 
top margin. This is done to avoid header content overlapping with document 
content.
Sometimes the execution sequence
writer.fitspage(oTable); oTable.getTotalHeight() gives one value
and
document.add(oTable); oTable.getTotalHeight() gives another value

The value that appears to be right is the value obtained after 
document.add(). I  previously posted an example where the two values are 
different.

If you had any suggestion on how to obtain table height I'd really 
appreciate it.

Thanks,
Rolando.
- Original Message -
From: Rolando Cuevas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 18:48
Subject: Re: [iText-questions] tables within a header


 From: Yuan Chang [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [iText-questions] tables within a header
 Date: Wed, 23 Jul 2003 11:41:32 +0100
 
 Could anyone give me an example of how i could have a table within the
 header on my pdf page?
 

 Included in this mail is sample code for using pdfptables in headers.
 The
 sample prints a table header having three columns. First with company
 name,
 middle with date and right with pag number. It could be used as an
 starting
 point.
 Classes should probably be better organized, but this is only an
 example.

 The code sets document margins according to the table, beware that this
 is
 not always accurate. getTotalHeight() does not always returns the same
 value
 after document.add() and writer.fitsPage().
 at the eventhelper and pagenumchunk are in the same class. By the way
 does
 anyone knows a way to get the height of a pdfptable ? The way I use is
 first
 writer.fitsPage(oTable) and then table.getTotalHeight(). This has to be
 before adding the table to the document, since its height determines doc

 margins.

 If you want to use the pagenumchunk do not comment out the line
 this.setGenericTag(test)
 Even though the generic tag is not used in the code, without it the
 printed
 page number is always zero.
 The itext version I use is 1.00.

 Hope this helps,
 Rolando

 package prueba;

 import java.awt.Color;
 import java.io.*;

 import com.lowagie.text.*;
 import com.lowagie.text.pdf.*;

 public class headerWithTable {

 //--
 public class PageNumChunk extends Chunk {
 private PdfWriter   m_oPdfWriter;
 /** Creates a new instance of PageNumChunk */
 public PageNumChunk(PdfWriter oPdfWriter ) {
 m_oPdfWriter = oPdfWriter;
 this.content = new StringBuffer();
 this.font = new Font();
 this.setGenericTag(test); // has to be set otherwise page
 number
 is allways zero
 }

 /**
 * Returns the content of this CODEChunk/CODE.
 *
 * @return a CODEString/CODE
 */

 public String content() {
 content.delete(0, content.length());
 content.append(m_oPdfWriter.getPageNumber());

 System.out.println( \n
 m_oPdfWriter.getPageNumber()
 +m_oPdfWriter.getPageNumber());
 System.out.println(  Chunk pageNum
 +content.toString()+\n);
 return content.toString();
 }


 }

 //---
 public class TPdfEvent extends PdfPageEventHelper {
 PdfPTable m_oHeader=null;

 float m_fLeftX;
 float m_fRightX;

 float m_fHeaderTop;
 float m_fHeaderX;

 boolean   m_bActive=false;
 boolean   m_bMarginsSet = false;

 /** Creates a new instance of TPdfEvent */
 public TPdfEvent() {
 }

 public void setActive(boolean bActive) {

 m_bActive= bActive;
 System.out.println(m_bActive = +
 String.valueOf(m_bActive));

 }


 public void setLeftRightXCoords(float fLeftX, float fRightX) {
 m_fLeftX = fLeftX;
 m_fRightX= fRightX;
 m_bMarginsSet = true;

 }
 public void setHeader(PdfPTable oHeader, float fHeaderTop) {
 if(m_bMarginsSet) {
 System.out.println(setHeader() begin);
 m_oHeader   = oHeader;
 m_fHeaderTop= fHeaderTop;
 System.out.println(m_fHeaderTop  =
 +m_fHeaderTop);

 float fHeaderWidth  = (m_fRightX - m_fLeftX) *
 m_oHeader.getWidthPercentage() / 100;
 m_fHeaderX  = 0;
 switch (m_oHeader.getHorizontalAlignment()) {
 case Element.ALIGN_LEFT

[iText-questions] tables within a header

2003-07-23 Thread Yuan Chang
Could anyone give me an example of how i could have a table within the
header on my pdf page?

I'm currently trying to use the HeaderFooter object to display a title,
but i'm having difficulty in setting the vertical alignment of the text
with in the rectangular border (how do you do this? There does not seem
to be a method for this) as a result some of the text is outside the
border.

I thought a table would be much better, since i also need to add other
objects to the header. I basically want to insert into the header all
the things i can do with in the normal page.

Any suggestions would be much appreciated.

Kind regards,

Yuan Chang

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] tables within a header

2003-07-23 Thread Paulo Soares
You don't need (and shouldn't use) fitsPage to set the tabe width. Use
table.setTotalWidth(document.right() - document.left()) and place the table
at position document.left().

Best Regards,
Paulo Soares

- Original Message -
From: Rolando Cuevas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 18:48
Subject: Re: [iText-questions] tables within a header




 From: Yuan Chang [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [iText-questions] tables within a header
 Date: Wed, 23 Jul 2003 11:41:32 +0100
 
 Could anyone give me an example of how i could have a table within the
 header on my pdf page?
 

 Included in this mail is sample code for using pdfptables in headers.
 The
 sample prints a table header having three columns. First with company
 name,
 middle with date and right with pag number. It could be used as an
 starting
 point.
 Classes should probably be better organized, but this is only an
 example.

 The code sets document margins according to the table, beware that this
 is
 not always accurate. getTotalHeight() does not always returns the same
 value
 after document.add() and writer.fitsPage().
 at the eventhelper and pagenumchunk are in the same class. By the way
 does
 anyone knows a way to get the height of a pdfptable ? The way I use is
 first
 writer.fitsPage(oTable) and then table.getTotalHeight(). This has to be
 before adding the table to the document, since its height determines doc

 margins.

 If you want to use the pagenumchunk do not comment out the line
 this.setGenericTag(test)
 Even though the generic tag is not used in the code, without it the
 printed
 page number is always zero.
 The itext version I use is 1.00.

 Hope this helps,
 Rolando

 package prueba;

 import java.awt.Color;
 import java.io.*;

 import com.lowagie.text.*;
 import com.lowagie.text.pdf.*;

 public class headerWithTable {

 //--
 public class PageNumChunk extends Chunk {
 private PdfWriter   m_oPdfWriter;
 /** Creates a new instance of PageNumChunk */
 public PageNumChunk(PdfWriter oPdfWriter ) {
 m_oPdfWriter = oPdfWriter;
 this.content = new StringBuffer();
 this.font = new Font();
 this.setGenericTag(test); // has to be set otherwise page
 number
 is allways zero
 }

 /**
 * Returns the content of this CODEChunk/CODE.
 *
 * @return a CODEString/CODE
 */

 public String content() {
 content.delete(0, content.length());
 content.append(m_oPdfWriter.getPageNumber());

 System.out.println( \n
 m_oPdfWriter.getPageNumber()
 +m_oPdfWriter.getPageNumber());
 System.out.println(  Chunk pageNum
 +content.toString()+\n);
 return content.toString();
 }


 }

 //---
 public class TPdfEvent extends PdfPageEventHelper {
 PdfPTable m_oHeader=null;

 float m_fLeftX;
 float m_fRightX;

 float m_fHeaderTop;
 float m_fHeaderX;

 boolean   m_bActive=false;
 boolean   m_bMarginsSet = false;

 /** Creates a new instance of TPdfEvent */
 public TPdfEvent() {
 }

 public void setActive(boolean bActive) {

 m_bActive= bActive;
 System.out.println(m_bActive = +
 String.valueOf(m_bActive));

 }


 public void setLeftRightXCoords(float fLeftX, float fRightX) {
 m_fLeftX = fLeftX;
 m_fRightX= fRightX;
 m_bMarginsSet = true;

 }
 public void setHeader(PdfPTable oHeader, float fHeaderTop) {
 if(m_bMarginsSet) {
 System.out.println(setHeader() begin);
 m_oHeader   = oHeader;
 m_fHeaderTop= fHeaderTop;
 System.out.println(m_fHeaderTop  =
 +m_fHeaderTop);

 float fHeaderWidth  = (m_fRightX - m_fLeftX) *
 m_oHeader.getWidthPercentage() / 100;
 m_fHeaderX  = 0;
 switch (m_oHeader.getHorizontalAlignment()) {
 case Element.ALIGN_LEFT:
 m_fHeaderX= m_fLeftX;
 break;
 case Element.ALIGN_RIGHT:
 m_fHeaderX= m_fRightX - fHeaderWidth;
 break;
 default:
 m_fHeaderX= (m_fRightX + m_fLeftX -
 fHeaderWidth) /
 2;
 }
 System.out.println(orig width % =
 +m_oHeader.getWidthPercentage());
 System.out.println(right margin = +m_fRightX);
 System.out.println(left  margin = +m_fLeftX);
 System.out.println(fHeaderWidth = +fHeaderWidth);
 System.out.println(m_fHeaderX   = +m_fHeaderX);

 m_oHeader.setTotalWidth(fHeaderWidth

[iText-questions] Tables

2003-06-26 Thread Sam Maina
Title: Message



Is it possible to 
create a Pdf Table without borders? I tried:
Table table = new 
Table(2);
table.setBorder(0);

I was hoping this 
would produce a table with no borders.


RE: [iText-questions] Tables

2003-06-26 Thread Paulo Soares
That only takes out the border from the table. You must also take out the
border from each cell.

Best Regards,
Paulo Soares

 -Original Message-
 From: Sam  Maina [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, June 26, 2003 15:05
 To:   [EMAIL PROTECTED]
 Subject:  [iText-questions] Tables
 
 Is it possible to create a Pdf Table without borders? I tried:
 Table table = new Table(2);
 table.setBorder(0);
  
 I was hoping this would produce a table with no borders.


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] TABLES CELL's...

2002-11-07 Thread Matías Salvador



When I use the addCell() method, it 
has two parameters, the Cell and the location, that isa Point object. 
These coordinates, X and Y, in which unit are they? Because I'm having 
a:

"java.lang.IndexOutOfBoundsException: reserve - incorrect column/size" , 
and don't know what am I putting wrong...

Thanks for any help you can give 
me...


Saludos/Regards,Matías Salvador Systems Analyst SISA Java Development Team Roca Av. 590 7th Floor C1067ABN - Buenos Aires 

  
  

  Current ICQ 
  status63907687
 
  ( +54.011.4345.0537 (131) 


online?icq=63907687=21
Description: Binary data


Re: [iText-questions] TABLES CELL's...

2002-11-07 Thread Matías Salvador
But if I have a Table with x columns, I need to tell the Table if I add a
Cell in my (2,4) or in my (1,1) position... don't I? How does it realises
where to put my cell?

Thanks!

- Original Message -
From: Matt Benson [EMAIL PROTECTED]
To: Matías_Salvador [EMAIL PROTECTED]; iText List
[EMAIL PROTECTED]
Sent: Thursday, November 07, 2002 5:15 PM
Subject: Re: [iText-questions] TABLES  CELL's...


 The easiest thing is to just use addCell(Cell).
 addCell(Cell, Point) and addCell(Cell, int, int) are
 for adding a Cell at a particular column and row in
 the Table.

 -Matt

 --- Matías_Salvador [EMAIL PROTECTED]
 wrote:
  When I use the addCell() method, it has two
  parameters, the Cell and the location, that is a
  Point object. These coordinates, X and Y, in which
  unit are they? Because I'm having a:
 
  java.lang.IndexOutOfBoundsException: reserve -
  incorrect column/size , and don't know what am I
  putting wrong...
 
  Thanks for any help you can give me...
 
 
  Saludos/Regards,
 
  Matías Salvador
  Systems Analyst
  SISA Java Development Team
  Roca Av. 590 7th Floor
  C1067ABN - Buenos Aires Current ICQ status 63907687
 
  ( +54.011.4345.0537 (131)
 

  ATTACHMENT part 2 application/octet-stream
 name=online?icq=63907687img=21



 __
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive greatest hits videos
 http://launch.yahoo.com/u2



---
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] TABLES CELL's...

2002-11-07 Thread Matías Salvador
I know what you mean, but if I have a big table not full, with empty cells,
and info with (x,y) locations... maybe there should be a way to locate the
data in the table...

- Original Message -
From: Matt Benson [EMAIL PROTECTED]
To: Matías_Salvador [EMAIL PROTECTED]; iText List
[EMAIL PROTECTED]
Sent: Thursday, November 07, 2002 5:39 PM
Subject: Re: [iText-questions] TABLES  CELL's...


 If you declare a Table with three columns, for
 example, the first Cell you add will go to position
 (1, 1).  The second will go to (2, 1).  The third, (3,
 1).  The fourth Cell you add will be in position (1,
 2), and so on.  You can use the other methods as well,
 so long as you keep in mind what the parameters mean.

 -Matt

 --- Matías_Salvador [EMAIL PROTECTED]
 wrote:
  But if I have a Table with x columns, I need to tell
  the Table if I add a
  Cell in my (2,4) or in my (1,1) position... don't I?
  How does it realises
  where to put my cell?
 
  Thanks!
 
  - Original Message -
  From: Matt Benson [EMAIL PROTECTED]
  To: Matías_Salvador
  [EMAIL PROTECTED]; iText List
  [EMAIL PROTECTED]
  Sent: Thursday, November 07, 2002 5:15 PM
  Subject: Re: [iText-questions] TABLES  CELL's...
 
 
   The easiest thing is to just use addCell(Cell).
   addCell(Cell, Point) and addCell(Cell, int, int)
  are
   for adding a Cell at a particular column and row
  in
   the Table.
  
   -Matt
  
   --- Matías_Salvador [EMAIL PROTECTED]
   wrote:
When I use the addCell() method, it has two
parameters, the Cell and the location, that is a
Point object. These coordinates, X and Y, in
  which
unit are they? Because I'm having a:
   
java.lang.IndexOutOfBoundsException: reserve -
incorrect column/size , and don't know what am
  I
putting wrong...
   
Thanks for any help you can give me...
   
   
Saludos/Regards,
   
Matías Salvador
Systems Analyst
SISA Java Development Team
Roca Av. 590 7th Floor
C1067ABN - Buenos Aires Current ICQ status
  63907687
   
( +54.011.4345.0537 (131)
   
  
ATTACHMENT part 2 application/octet-stream
   name=online?icq=63907687img=21
  
  
  
   __
   Do you Yahoo!?
   U2 on LAUNCH - Exclusive greatest hits videos
   http://launch.yahoo.com/u2
 
 
 
 
 ---
  This sf.net email is sponsored by: See the NEW Palm
  Tungsten T handheld. Power  Color in a compact
  size!
 
 http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
  ___
  iText-questions mailing list
  [EMAIL PROTECTED]
 
 https://lists.sourceforge.net/lists/listinfo/itext-questions


 __
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive greatest hits videos
 http://launch.yahoo.com/u2



---
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] tables in PDF

2002-10-01 Thread Paulo Soares

PdfPTable does colspan and nested tables have the same effect as rowspan. 2
header rows is not a problem and you can set the height of a cell to a fixed
value limiting in practice the number of lines.
For automatic width there are no silver bullets. You'll have to read all
your data, measure it and then create the table.

Best Regards,
Paulo Soares

 -Original Message-
 From: Karthikeyan Ramnath [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 9:08
 To:   [EMAIL PROTECTED]
 Subject:  [iText-questions] tables in PDF
 
 Hi all,
 We presently have an application that displays a  lot of data 
 as Tables in Java. So we wanted to add a functionality to save 
 it in PDF format, and hence I tripped on iText.
 The problem that I am facing is as follows.
 1. Certain tables, not all, have 2 header rows.
 2. How do I restrict the data within a cell to single line only.
 
 Having multiple header rows is easy to handle with the Table 
 class, which also supports colum spanning, but then the 
 PDFPTable does not support col/row spanning.
 Also while working with a Table object, I am unable to restrict 
 the data to a single line. ie. the numbers that are displayed 
 in certain cells are so long that they are wrapped into 
 multiple lines. How to I arrest this?
 Isn't there anyway I can ask the cell/table to resize to fit 
 the data thats contained within it?
 Kindly revert asap.
 Thanks in advance.
 Karthikeyan.R
 
 
 Get your own 800 number
 Voicemail, fax, email, and a lot more
 http://www.ureach.com/reg/tag
 
 
 ---
 This sf.net email is sponsored by: DEDICATED SERVERS only $89!
 Linux or FreeBSD, FREE setup, FAST network. Get your own server 
 today at http://www.ServePath.com/indexfm.htm
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This sf.net email is sponsored by: DEDICATED SERVERS only $89!
Linux or FreeBSD, FREE setup, FAST network. Get your own server 
today at http://www.ServePath.com/indexfm.htm
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Tables (both types) with PdfTemplate-based images

2002-08-13 Thread Paulo Soares

This modified code works for me using the iText version that is in the CVS.

Best Regards,
Paulo Soares

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 23:37
Subject: [iText-questions] Tables (both types) with PdfTemplate-based images


 I have been doing some testing, and have found some problems regarding
 PdfTemplate-based image support -- specifically within tables.

 1.  When I create a Table object with new Table(1), and add 5 cells to
 it, the application crashes due to an ArrayIndexOutOfBoundsException
 while the table converts itself to a PDFContentByte.  I am fairly
 certain this is due to the fact that the table crashes when it tries to
 span the page, since 4 such cells will fit on the page.  Each Cell has
 one element - a PdfTemplate containing the pixels from the Canvas
 subclass attached to this message.

 2.  When only 4 such cells are used, they display OK in Acrobat Reader 5
 using Win2000.  However, when one goes to print the PDF, the first three
 cells appear on the page correctly, with the fourth one at a seemingly
 random location.  Frequently it overlaps one of the first three and is
 smaller than the first three (although all cells are created in the same
 fashion).  With more complex documents, the PdfTemplate-based images
 tend to stack on top of each other when printed (and sometimes when
 scrolling in Acrobat).

 This wrong rendering occurs independent of the printer I use -
 PostScript or not (I have tried both with a HP Color LaserJet 4550N that
 supports PS level 3 as well as HP's PCL 6).

 3. Problem #2 occurs with PdfPTable as well.  PdfPTable drops cells it
 can't fit onto a page and so does not have the first exception.

 What's really interesting about this is that Raw images created using
 java.awt.BufferedImage do not have this problem, but instead are
 sometimes scaled down and then lose detail or such, so PdfTemplate
 really si the best solution if the PdfContentByte generation and
 positioning problems can be fixed.

 The other strange thing about this is that the problem usually happens
 when the table w/ images is on the second or subsequent pages of the
 document.


 __
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with Shop@Netscape!
 http://shopnow.netscape.com/

 Get your own FREE, personal Netscape Mail account today at
 http://webmail.netscape.com/





TemplatePanel.java
Description: Binary data


[iText-questions] Tables and Pages

2002-07-18 Thread David Gold

I am creating a document that contains four tables. The header of the
document is a PdfPTable consisting of 1 column and 1 row. Immediately under
that is another 1 column, 1 row PdfPTable with additional information. Next
is the main PdfPTable consisting of a number of cells. Finally, there is
another 1 column, 1row PdfPTable containing a footer. These 4 tables
together comprise an advertisement. What I need to do is force a page break
at the end of the 4th table, so I can add these 4 again to the next page.
Right now, I have logic that adjusts the bottom margin to cause this to
happen, but these ads can be varying sizes. Is there a method I can call to
force the page break after the footer? I've been searching the docs and
haven't seen anything.


Thanks,

David Gold


---
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



Re: [iText-questions] Tables and Pages

2002-07-18 Thread Matt Benson

Document.newPage() ?

-Matt

--- David Gold [EMAIL PROTECTED] wrote:
 I am creating a document that contains four tables.
 The header of the
 document is a PdfPTable consisting of 1 column and 1
 row. Immediately under
 that is another 1 column, 1 row PdfPTable with
 additional information. Next
 is the main PdfPTable consisting of a number of
 cells. Finally, there is
 another 1 column, 1row PdfPTable containing a
 footer. These 4 tables
 together comprise an advertisement. What I need to
 do is force a page break
 at the end of the 4th table, so I can add these 4
 again to the next page.
 Right now, I have logic that adjusts the bottom
 margin to cause this to
 happen, but these ads can be varying sizes. Is there
 a method I can call to
 force the page break after the footer? I've been
 searching the docs and
 haven't seen anything.
 
 
 Thanks,
 
 David Gold
 
 

---
 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


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


---
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



Re: [iText-questions] Tables and Pages

2002-07-18 Thread Paulo Soares

Document.newPage()

Best Regards,
Paulo Soares

- Original Message - 
From: David Gold [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 18, 2002 21:10
Subject: [iText-questions] Tables and Pages


 I am creating a document that contains four tables. The header of the
 document is a PdfPTable consisting of 1 column and 1 row. Immediately
 under
 that is another 1 column, 1 row PdfPTable with additional information.
 Next
 is the main PdfPTable consisting of a number of cells. Finally, there is
 another 1 column, 1row PdfPTable containing a footer. These 4 tables
 together comprise an advertisement. What I need to do is force a page
 break
 at the end of the 4th table, so I can add these 4 again to the next
 page.
 Right now, I have logic that adjusts the bottom margin to cause this to
 happen, but these ads can be varying sizes. Is there a method I can call
 to
 force the page break after the footer? I've been searching the docs and
 haven't seen anything.
 
 
 Thanks,
 
 David Gold
 
 
 ---
 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




---
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



[iText-questions] tables

2002-06-14 Thread Aristo . Togliatti

Hi all,

is it possible to put 2 tables one on the left and one on the right of the
page at the same height?

Thx,

A.



___

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

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



Re: [iText-questions] tables

2002-06-14 Thread Matt Benson

Yes, using PdfPTable...

-Matt

--- [EMAIL PROTECTED] wrote:
 Hi all,
 
 is it possible to put 2 tables one on the left and
 one on the right of the
 page at the same height?
 
 Thx,
 
 A.
 
 
 

___
 
 Don't miss the 2002 Sprint PCS Application
 Developer's Conference
 August 25-28 in Las Vegas -

http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
 
 ___
 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

___

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

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



[iText-questions] Tables and positions

2002-05-29 Thread pdf pdf

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

Thanks from Madrid.
Antonio.


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


___

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

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



Re: [iText-questions] Tables and positions

2002-05-29 Thread Bruno

Quoting pdf pdf [EMAIL PROTECTED]:

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

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

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

Yes, use PdfPTable and add it in a PageEvent.

Bruno

___

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

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



[iText-questions] Tables in Header

2002-02-20 Thread Pardey, Craig

Hi,

I have been using the iText API for a while now and have been quite
impressed with it.

The only thing I need to be able to do is to include a table in the header
or footer of a PDF document.  

It is mentioned in the headers and footers section of the tutorial, but the
link (to chapter 12 I think) doesn't provide any additional information on
how to actually do it.

Is this possible and if so, how?  

Regards,
Craig Pardey


--
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--

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