[iText-questions] Emboss an image

2007-01-03 Thread brijesh kumar
dear team,

i have two images,one a signature and the other a logo. i am trying to emboss the signature image on top of the logo. is there anyway to do so using itext
Regards,

Brijesh


Free
Movies 100's of Free Feature Length Films - Meet Friends, Watch
Movies & Win!



-
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.php&p=sourceforge&CID=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] Help: Run time Exception

2007-01-03 Thread aman mahajan
  
Hi,

When i am trying to run one simple program "Hello world" as in the web page. It 
is giving me following exception. There are no Compilation error. only the 
following run time error.

java.lang.NoSuchMethodError: com.trend.iwss.jscan.appscan.runtime.PolicyProps: 
method ()V not found
 at com.trend.iwss.jscan.appscan.runtime.Session.(Session.java:58)
 at com.trend.iwss.jscan.appscan.runtime.Session.(Session.java:33)
 at com.lowagie.text.Document.(Unknown Source)
 at test1.main(test1.java:42)
Exception in thread "main" 


It can not be due to classpath issue as my program is being compiled properly.
Please give me some pointers.

Regards
Aman


-
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.php&p=sourceforge&CID=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] OutOfMemoryError exception, when merging of files reaches 60MB

2007-01-03 Thread Pravin Kumar Venkatraj
t;innerList", I add 
the "innerList" to the "outerList". Then, finally, add the "outerList" 
to the Document and close the Document.

What happens is that first, I can't seem to get the {List Header} item 
to start with number 4. It always wants to start at number 1, despite 
calling "setFirst(4)". Next, I was hoping that the List Items would be 
numbered "4.1" and "4.2" etc. Instead, they just start out being 
numbered as "1", "2" etc.

So, first, am I just way off base here? Am I trying to be too clever by 
using rtf to fake Word into displaying a Word doc? Second, it is 
possible to do what I want to do, which is have all that arbitrary 
content show up in between the list items? I haven't seen any examples 
of that, and no matter how I play around with things the items from "2" 
on down are no longer list items. They show up in my word document 
numbered correctly, but Word doesn't think they are list items, instead 
it just thinks that it is some text on a line that happens to start with 
the character "2", "3" etc.

Any help you could give would be greatly appreciated. I've been playing 
around with this for a couple days and I'm starting to get bug-eyed and 
now I think that I am so surrounded by my confusion that I just need a 
push in the right direction from an outside source :)

Thanks, Chris
-- next part --
An HTML attachment was scrubbed...
URL:
http://sourceforge.net/mailarchive/forum.php?forum=itext-questions/attachmen
ts/20070103/b683982a/attachment.html 
-- next part --
A non-text attachment was scrubbed...
Name: happy.gif
Type: image/gif
Size: 675 bytes
Desc: not available
Url :
http://sourceforge.net/mailarchive/forum.php?forum=itext-questions/attachmen
ts/20070103/b683982a/attachment.gif 

--

Message: 6
Date: Wed, 3 Jan 2007 11:20:27 -0500
From: "Smiley, Stuart A." <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] Rtf question about IText
To: <[EMAIL PROTECTED]>, "Post all your questions about iText
here"   
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Can you use Chapters instead of ListItems? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris
O'Connell
Sent: Wednesday, January 03, 2007 9:04 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Rtf question about IText


I'm new to IText and I think it is a great tool. I wish I had discovered it
6 months ago before I started using Apache FOP to create PDF's. Ugh...

Anyway, I now have to create a (what I thought was) a fairly simple report
in word. I figured I could use IText to generate a .rtf file and stream it
down to the browser with a content type of "application/vnd.ms-word",
causing the browser to pop open Word and my problems are solved...

Well, I can't quite figure out how to lay out the information that I need to
display. I'm close, but not quite there. I will simplify it, but this is
essentially what I want to put on the report:

4 List Header 
4.1 First List Item Header
text here. more stuff. description of the first list item
[table]
{page break]
4.2 Second List Item Header
text here. stuff and stuff. description of the second list item.
[table]
[page break]


And just repeat that pattern for a while. The way I'm trying to do this is
first create a Document and an RtfWriter2. Then, I create what I call the
'outerList' and then create a ListItem which is a Paragraph with the text
"List Header". Then add that item to the "outerList". Then, I create another
List, calling it "innerList". I then add ListItems to the inner list. After
I'm done adding the items to the "innerList", I add the "innerList" to the
"outerList". Then, finally, add the "outerList" to the Document and close
the Document.

What happens is that first, I can't seem to get the {List Header} item to
start with number 4. It always wants to start at number 1, despite calling
"setFirst(4)". Next, I was hoping that the List Items would be numbered
"4.1" and "4.2" etc. Instead, they just start out being numbered as "1", "2"
etc.

So, first, am I just way off base here? Am I trying to be too clever by
using rtf to fake Word into displaying a Word doc? Second, it is possible to
do what I want to do, which is have all that arbitrary content show up in
between the list items? I haven't seen any examples of that, and no matter
how I play around with things the items from "2" on down are no longer list
items. They show up in my word document numbered correctly, but Word doesn't
think they are list item

[iText-questions] Set font face/size in form field inputs?

2007-01-03 Thread Paul Jungwirth
Hello,

I'm trying to use a PdfStamper to set some form fields. For one of the
fields, sometimes the input is long, and sometimes it is short. I'd
like to count the characters in the input and change the field's font
face/size accordingly. But I can only see the setField() method. Is
there any way to obtain the form field and set its font face/size?

Thanks,
Paul

-- 
_
Pulchritudo splendor veritatis.

-
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.php&p=sourceforge&CID=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] Adding form fields with PdfStamper?

2007-01-03 Thread Paul Jungwirth
Hello,

I want to use PdfStamper to read a PDF document and add a couple
buttons to the first page. But it appears that you can only create new
form fields with a PdfWriter. Is there any way to add buttons to an
existing PDF?

Thanks,
Paul

-- 
_
Pulchritudo splendor veritatis.

-
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.php&p=sourceforge&CID=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] RTF: scaleToFit() and scalePercent() of Image class work for RTF?

2007-01-03 Thread jgmaux

Hi,

ScaleToFit() and scalePercent() of Image class work for RTF?

I created the image from JPEG. The methods worked for PDF.
However, they seems not working for RTF.
My iText version is 1.4.8

Thanks.


 *
 *


-
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.php&p=sourceforge&CID=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] Footer Elements with different alignment properties

2007-01-03 Thread R . Greg
Here's what I want:

- A footer
- With user-defined, centered text
- And a right-aligned page number

I've managed to create a multi-line footer, but both the text and the page
number are right-aligned.  Is it just wishful thinking at this point, or can I
somehow modify the footer's data, perhaps by creating my own HeaderFooter class,
to get the desired results?

Ideally, the user-defined text will be centered on the same line as the page
number.  It would be acceptable for them to be on different lines, if I can at
least get the formatting like I want it.


-
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.php&p=sourceforge&CID=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] PdfGraphics2D and specific Paint

2007-01-03 Thread Bill Ensley
There is no technical hurdle to this, but the trouble is at some point that
unknown paint needs to be converted into instructions for PDF.
 
I think that PdfGraphics2D does a fairly elegant job of handling unknown
paints already.
 
If you come up with something, please share it.  If its good it will
probably make it into the distribution.
 
-Bill Ensley
Bear Printing


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of NCA
Sent: Wednesday, January 03, 2007 8:56 AM
To: Post all your questions about iText here
Subject: [iText-questions] PdfGraphics2D and specific Paint


Hello,
Is it possible to wrap a specific Paint in the PdfGraphics2D with a specific
class or function to draw a shape, as it is done for the GradientPaint ?
 
ex : 
 
g2.setPaint ( new MyPaint () );
 
=>
 
private void setPaint(boolean invert, double xoffset, double yoffset,
boolean fill) 
{
...
else if (paint instanceof GradientPaint)
{
...
}
...
else
{
// first search for a specific wraper 
PaintWrapper wrapper = searchWrapper ( paint );
 
if ( wrapper != null )
wrapper.paint ( cb, paint );
else
{
// default, unchanged
}
}
}
 
Thanks, for your answer.
 

-
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.php&p=sourceforge&CID=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] Rtf question about IText

2007-01-03 Thread David Thielen
Try www.windwardreports.com   - makes
it trivial

 

 

 

David Thielen

www.windwardreports.com

303-499-2544 x1185

 

Cubicle Wars - http://www.windwardreports.com/film.htm



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Chris O'Connell
Sent: Wednesday, January 03, 2007 7:04 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Rtf question about IText

 

I'm new to IText and I think it is a great tool. I wish I had discovered
it 6 months ago before I started using Apache FOP to create PDF's.
Ugh...

Anyway, I now have to create a (what I thought was) a fairly simple
report in word. I figured I could use IText to generate a .rtf file and
stream it down to the browser with a content type of
"application/vnd.ms-word", causing the browser to pop open Word and my
problems are solved...

Well, I can't quite figure out how to lay out the information that I
need to display. I'm close, but not quite there. I will simplify it, but
this is essentially what I want to put on the report:

4 List Header 
4.1 First List Item Header
text here. more stuff. description of the first list item
[table]
{page break]
4.2 Second List Item Header
text here. stuff and stuff. description of the second list item.
[table]
[page break]


And just repeat that pattern for a while. The way I'm trying to do this
is first create a Document and an RtfWriter2. Then, I create what I call
the 'outerList' and then create a ListItem which is a Paragraph with the
text "List Header". Then add that item to the "outerList". Then, I
create another List, calling it "innerList". I then add ListItems to the
inner list. After I'm done adding the items to the "innerList", I add
the "innerList" to the "outerList". Then, finally, add the "outerList"
to the Document and close the Document.

What happens is that first, I can't seem to get the {List Header} item
to start with number 4. It always wants to start at number 1, despite
calling "setFirst(4)". Next, I was hoping that the List Items would be
numbered "4.1" and "4.2" etc. Instead, they just start out being
numbered as "1", "2" etc.

So, first, am I just way off base here? Am I trying to be too clever by
using rtf to fake Word into displaying a Word doc? Second, it is
possible to do what I want to do, which is have all that arbitrary
content show up in between the list items? I haven't seen any examples
of that, and no matter how I play around with things the items from "2"
on down are no longer list items. They show up in my word document
numbered correctly, but Word doesn't think they are list items, instead
it just thinks that it is some text on a line that happens to start with
the character "2", "3" etc.

Any help you could give would be greatly appreciated. I've been playing
around with this for a couple days and I'm starting to get bug-eyed and
now I think that I am so surrounded by my confusion that I just need a
push in the right direction from an outside source  

Thanks, Chris 



image001.gif
Description: image001.gif
-
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.php&p=sourceforge&CID=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] PdfGraphics2D and specific Paint

2007-01-03 Thread NCA
Hello,
Is it possible to wrap a specific Paint in the PdfGraphics2D with a specific 
class or function to draw a shape, as it is done for the GradientPaint ?

ex : 

g2.setPaint ( new MyPaint () );

=>

private void setPaint(boolean invert, double xoffset, double yoffset, boolean 
fill) 
{
...
else if (paint instanceof GradientPaint)
{
...
}
...
else
{
// first search for a specific wraper 
PaintWrapper wrapper = searchWrapper ( paint );

if ( wrapper != null )
wrapper.paint ( cb, paint );
else
{
// default, unchanged
}
}
}

Thanks, for your answer.
-
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.php&p=sourceforge&CID=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] Rtf question about IText

2007-01-03 Thread Smiley, Stuart A.
Can you use Chapters instead of ListItems? 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris O'Connell
Sent: Wednesday, January 03, 2007 9:04 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Rtf question about IText


I'm new to IText and I think it is a great tool. I wish I had discovered it 6 
months ago before I started using Apache FOP to create PDF's. Ugh...

Anyway, I now have to create a (what I thought was) a fairly simple report in 
word. I figured I could use IText to generate a .rtf file and stream it down to 
the browser with a content type of "application/vnd.ms-word", causing the 
browser to pop open Word and my problems are solved...

Well, I can't quite figure out how to lay out the information that I need to 
display. I'm close, but not quite there. I will simplify it, but this is 
essentially what I want to put on the report:

4 List Header 
4.1 First List Item Header
text here. more stuff. description of the first list item
[table]
{page break]
4.2 Second List Item Header
text here. stuff and stuff. description of the second list item.
[table]
[page break]


And just repeat that pattern for a while. The way I'm trying to do this is 
first create a Document and an RtfWriter2. Then, I create what I call the 
'outerList' and then create a ListItem which is a Paragraph with the text "List 
Header". Then add that item to the "outerList". Then, I create another List, 
calling it "innerList". I then add ListItems to the inner list. After I'm done 
adding the items to the "innerList", I add the "innerList" to the "outerList". 
Then, finally, add the "outerList" to the Document and close the Document.

What happens is that first, I can't seem to get the {List Header} item to start 
with number 4. It always wants to start at number 1, despite calling 
"setFirst(4)". Next, I was hoping that the List Items would be numbered "4.1" 
and "4.2" etc. Instead, they just start out being numbered as "1", "2" etc.

So, first, am I just way off base here? Am I trying to be too clever by using 
rtf to fake Word into displaying a Word doc? Second, it is possible to do what 
I want to do, which is have all that arbitrary content show up in between the 
list items? I haven't seen any examples of that, and no matter how I play 
around with things the items from "2" on down are no longer list items. They 
show up in my word document numbered correctly, but Word doesn't think they are 
list items, instead it just thinks that it is some text on a line that happens 
to start with the character "2", "3" etc.

Any help you could give would be greatly appreciated. I've been playing around 
with this for a couple days and I'm starting to get bug-eyed and now I think 
that I am so surrounded by my confusion that I just need a push in the right 
direction from an outside source :)

Thanks, Chris 



happy.gif
Description: happy.gif
-
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.php&p=sourceforge&CID=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] Rtf question about IText

2007-01-03 Thread Chris O'Connell




I'm new to IText and I think it is a great tool. I wish I had
discovered it 6 months ago before I started using Apache FOP to create
PDF's. Ugh...

Anyway,
I now have to create a (what I thought was) a fairly simple report in
word. I figured I could use IText to generate a .rtf file and stream it
down to the browser with a content type of "application/vnd.ms-word",
causing the browser to pop open Word and my problems are solved...

Well,
I can't quite figure out how to lay out the information that I need to
display. I'm close, but not quite there. I will simplify it, but this
is essentially what I want to put on the report:

4 List Header 
4.1 First List Item Header
text here. more stuff. description of the first list item
[table]
{page break]
4.2 Second List Item Header
text here. stuff and stuff. description of the second list item.
[table]
[page break]


And
just repeat that pattern for a while. The way I'm trying to do this is
first create a Document and an RtfWriter2. Then, I create what I call
the 'outerList' and then create a ListItem which is a Paragraph with
the text "List Header". Then add that item to the "outerList". Then, I
create another List, calling it "innerList". I then add ListItems to
the inner list. After I'm done adding the items to the "innerList", I
add the "innerList" to the "outerList". Then, finally, add the
"outerList" to the Document and close the Document.

What happens
is that first, I can't seem to get the {List Header} item to start with
number 4. It always wants to start at number 1, despite calling
"setFirst(4)". Next, I was hoping that the List Items would be numbered
"4.1" and "4.2" etc. Instead, they just start out being numbered as
"1", "2" etc.

So, first, am I just way off base here? Am I
trying to be too clever by using rtf to fake Word into displaying a
Word doc? Second, it is possible to do what I want to do, which is have
all that arbitrary content show up in between the list items? I haven't
seen any examples of that, and no matter how I play around with things
the items from "2" on down are no longer list items. They show up in my
word document numbered correctly, but Word doesn't think they are list
items, instead it just thinks that it is some text on a line that
happens to start with the character "2", "3" etc.

Any help you
could give would be greatly appreciated. I've been playing around with
this for a couple days and I'm starting to get bug-eyed and now I think
that I am so surrounded by my confusion that I just need a push in the
right direction from an outside source 

Thanks, Chris


-
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.php&p=sourceforge&CID=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] Header problem

2007-01-03 Thread Henry Lu
I have code:

public class ReportBuilderFactory extends PdfPageEventHelper
{
/** The Phrase that will be added as the header of the document. */
protected PdfPTable header;

/** The PdfPTable that will be added as the footer of the document. */
protected PdfPTable footer;
   
public ReportBuilderFactory()
{
header = new PdfPTable(2);

header.setTotalWidth(300);
header.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);

PdfPCell cl = new PdfPCell(new Phrase("facult: John Smith"));
cl.setBorderColor(new Color(255,255,255));
cl.setHorizontalAlignment(Element.ALIGN_CENTER);

header.addCell(cl);
cl = new PdfPCell(new Phrase("Student: Henry Ford"));
cl.setBorderColor(new Color(255,255,255));
cl.setHorizontalAlignment(Element.ALIGN_CENTER);

header.addCell(cl);
cl = new PdfPCell(new Phrase("Date: 12/31/2006"));
cl.setBorderColor(new Color(255,255,255));
cl.setHorizontalAlignment(Element.ALIGN_CENTER);

header.addCell(cl);
cl = new PdfPCell(new Phrase("Title: Evaluation"));
cl.setBorderColor(new Color(255,255,255));
cl.setHorizontalAlignment(Element.ALIGN_CENTER);

header.addCell(cl);
cl = new PdfPCell(new Phrase("auther: Lloyl Carr"));
cl.setBorderColor(new Color(255,255,255));
cl.setHorizontalAlignment(Element.ALIGN_CENTER);

header.addCell(cl);

cl = new PdfPCell(new Phrase("Done: Yes"));
cl.setBorderColor(new Color(255,255,255));
cl.setHorizontalAlignment(Element.ALIGN_CENTER);

header.addCell(cl);


footer = new PdfPTable(4);
footer.setTotalWidth(300);

footer.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
footer.addCell(new Phrase(new Chunk("First Page")
.setAction(new PdfAction(PdfAction.FIRSTPAGE;
footer.addCell(new Phrase(new Chunk("Prev Page")
.setAction(new PdfAction(PdfAction.PREVPAGE;
footer.addCell(new Phrase(new Chunk("Next Page")
.setAction(new PdfAction(PdfAction.NEXTPAGE;
footer.addCell(new Phrase(new Chunk("Last Page")
.setAction(new PdfAction(PdfAction.LASTPAGE;
   
}
public void buildPdfDocumentFCELC(
Document document)
throws Exception {
   
String title = "title - test";
String nameFaculty ="nameFaculty";
String evaldateFaculty = ("David Bloom");
String nameStudent = ("Jophn Smith");
   String evaldateStudent = "12/31/2006";

Paragraph title1 = new Paragraph(title,
   FontFactory.getFont(FontFactory.HELVETICA, 12, 
Font.BOLDITALIC, new Color(0, 0, 255)));
title1.setAlignment(Element.ALIGN_CENTER);

Chapter chapter1 = new Chapter(title1, 1);
chapter1.setNumberDepth(0);
//no such method
//chapter1.setBookmarkTitle(new 
String("chapter1.setBookmarkTitle here"));

//tname is a section to store evaluator/student names and date
PdfPTable tname = new PdfPTable(2);

//tname.getDefaultCell().setBorder(Rectangle.LEFT | 
Rectangle.RIGHT);
tname.getDefaultCell().setBorder(0);
tname.setWidthPercentage(95);

Paragraph p1 = new Paragraph("");
PdfPCell c1 = new PdfPCell(new Paragraph(""));
String s1 = new String("");

p1= new Paragraph( "Faculty: "+nameFaculty, 
FontFactory.getFont(FontFactory.HELVETICA, 10));
p1.setLeading(10f);
c1 = new PdfPCell(p1);
c1.setBorder(Rectangle.NO_BORDER);
tname.addCell(c1);

p1 = new Paragraph( "Student: "+nameStudent, 
FontFactory.getFont(FontFactory.HELVETICA, 10));
p1.setLeading(10f);
c1 = new PdfPCell(p1);
c1.setBorder(Rectangle.NO_BORDER);
tname.addCell(c1);

p1 = new Paragraph( "Evaluation Date: "+evaldateFaculty, 
FontFactory.getFont(FontFactory.HELVETICA, 10));
p1.setLeading(15f);
c1 = new PdfPCell(p1);
c1.setBorder(Rectangle.NO_BORDER);
tname.addCell(c1);

p1 = new Paragraph( "Evaluation Date: "+evaldateStudent, 
FontFactory.getFont(FontFactory.HELVETICA, 10));
p1.setLeading(15f);
c1 = new PdfPCell(p1);
c1.setBorder(Rectangle.NO_BORDER);
tname.addCell(c1);

p1 = new Paragraph("F: Faculty Evaluation", 
FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLDITALIC, new 
Color(0, 0, 255)));
p1.setLeading(15f);
c1 = new PdfPCell(p1);
c1.setBorder(Rectangle.NO_BORDER);
tname.addCell(c1);

p1 = new Paragraph("S: Student Self-Evaluation", 
FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLDITALIC, new 
Color(0, 0, 255)));
p1.setLeading(15f);
c1 = new PdfPCell(p1);
c1.setBorder(Rectangle.NO_BORDER);
tname.addCell(c1);

  

[iText-questions] pdfptable

2007-01-03 Thread Henry Lu
Is there a way to not show the border of table of PdfPTable?

-Henry

-
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.php&p=sourceforge&CID=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] error!!

2007-01-03 Thread Henry Lu
I got the following error when I run the program (PDF):

com.lowagie.text.pdf.ColumnText.showTextAligned(Lcom/lowagie/text/pdf/PdfContentByte;ILcom/lowagie/text/Phrase;FFF)V
 


code:
ColumnText.showTextAligned(cb, Element.ALIGN_CENTER, header,
(document.right() - document.left()) / 2
+ document.leftMargin(), document.top() + 
10, 0);

There are no compiler errors.

-Henry



-
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.php&p=sourceforge&CID=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] Patch for signature validation problems of Adobe7documents

2007-01-03 Thread Paulo Soares
The next iText release will require the bouncycastle library for the
certificate encryption although it doesn't require it to be the jce
provider.

Paulo

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, January 03, 2007 12:18 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Patch for signature validation 
> problems of Adobe7documents
> 
> I know that, strictly speaking, this is not an itext problem 
> and that it can be avoided using the bouncycastle jce 
> provider, but we are planning to integrate the itext PDF 
> Signature in our java crypto sdk and actually we can't use 
> bouncycastle. So i have made a patch to the PdfPKCS7.java 
> that solve the problems also with Sun and IAIK jce provider. 
> The patch extract every certificates and crl from the pkcs7 
> and pass them one by one to the generateCertificate/s and 
> generateCRL/s methods. Attached you can find the modified 
> source and the diff  against the PdfPKCS7.java 1.16 revision.
> 
> P.S.
> For private mails reply to [EMAIL PROTECTED]
> 
> Ciao
> Sergio Tabanelli


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.


-
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.php&p=sourceforge&CID=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] Section breaks

2007-01-03 Thread Dirk Ulrich
Hi.

Thank you. 
I have a (ONE) Chapter in my Document (to obtain a simple numbering of the 
subsequent Sections) which contains Sections. Do I have to start a new 
Chapter?

Currently, when using 
    ... (adding some content to the document's mainChapter)
    document.newPage(); 
    document.setPageSize(Pagesize.A4.rotate()); 
    mainChapter.add(new Paragraph("xx"));
    document.add(mainChapter);

document.newPage() seems not to be regarded and thus the prior section is 
written to the document in landscape, too. (See attached PDF.)

Dirk

> 
>  Original-Nachricht 
> Datum: Tue, 2 Jan 2007 17:15:25 +0100
> Von: "GAMBELLI Raffaele" <[EMAIL PROTECTED]>
> An: "Post all your questions about iText here" 
> 
> Betreff: Re: [iText-questions] Section breaks
> 
> Hi!  See  this example code --> 
> http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/DefaultPageSize.java
>  
>
> > -Original Message-
> > From:[EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Dirk 
> >Ulrich
> > Sent: martedì 2 gennaio 2007 17.06
> > To:itext-questions@lists.sourceforge.net
> > Subject: [iText-questions]Section breaks
> > 
> > Is it possible to have section breaks in apdf document? 
> > Because a table is too wide I want to change the document's
> > orientation only for this table. The Document shall 'begin' in portrait 
> >orientation. Then, when it's time to print the table, the 
> > orientation shallswitch to landscape. Afterwards, portrait 
> > orientation shall be 'activatedagain. 
> > 
> > How can I achieve this?
> > 
> > Regards
> > Dirk 
> > 
> > 
> > -- 
> > Der GMX SmartSurfer hilft bis zu 70%Ihrer Onlinekosten zu sparen! 
> > Ideal für Modem und ISDN:http://www.gmx.net/de/go/smartsurfer  
> >   
>  

-- 
Mit freundlichen Grüßen

Dirk Ulrich
Jansenstraße 21
13437 Berlin
fon:0++49-(0)30-40 999 087
mobil:++49-(0)174/948 87 39

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


checklist.pdf
Description: Adobe PDF document
-
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.php&p=sourceforge&CID=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] Patch for signature validation problems of Adobe7 documents

2007-01-03 Thread sergio.tabanelli
I know that, strictly speaking, this is not an itext problem and that it can be 
avoided using the bouncycastle jce provider, but we are planning to integrate 
the itext PDF Signature in our java crypto sdk and actually we can't use 
bouncycastle. So i have made a patch to the PdfPKCS7.java that solve the 
problems also with Sun and IAIK jce provider. The patch extract every 
certificates and crl from the pkcs7 and pass them one by one to the 
generateCertificate/s and generateCRL/s methods. Attached you can find the 
modified source and the diff  against the PdfPKCS7.java 1.16 revision.

P.S.
For private mails reply to [EMAIL PROTECTED]

Ciao
Sergio Tabanelli






srcpatched.tgz
Description: srcpatched.tgz
-
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.php&p=sourceforge&CID=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] Rows in a PdfPTable

2007-01-03 Thread Paulo Soares
Only full rows are written. The last row only has one cell filled, there's 
three missing. This is by design, you must fill all the row cells, there's no 
default for missing cells.

Paulo 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Dirk Ulrich
> Sent: Wednesday, January 03, 2007 11:16 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Rows in a PdfPTable
> 
> When nesting PdfPTable not all rows/cells of the nested table 
> will be written to the Document.
> Attached you'll find an example class dirk.java which 
> produces the file Dirk.pdf in which you can see that only 12 
> cells will be created although 13 cells should.
> Is it a bug or a wrong usage?
> 
> For information issues I sysout both the number of cells as 
> well as the number of rows which should be created. (For a 
> predefined number of columns (4):
> 
> int rows = dates.size() / 4;
> rows += dates.size() % 4 > 0 ? 1 : 0;
> 
> 
> 
> 
> 
> -- 
> Best regards 
> 
> Dirk Ulrich
> 
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> 


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.

-
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.php&p=sourceforge&CID=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] Colors with alpha

2007-01-03 Thread Leonard Rosenthol
On Jan 3, 2007, at 6:05 AM, Jonas wrote:

> I tried tagging all Images with an ICC profile using
> img.tagICC(ICC_Profile.getInstance(ColorSpace.CS_sRGB));,
> but that didn't change anything. Could you point out how this
> should be done, maybe even in the example I posted previously?
>

That would address your images, but doesn't help your text or vector  
data...

You need to set the blending COLORSPACE (not the blend mode), and I  
don't recall if iText supports that already - but it would be easy  
enough to add.


Leonard

-
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.php&p=sourceforge&CID=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] Rows in a PdfPTable

2007-01-03 Thread Dirk Ulrich
When nesting PdfPTable not all rows/cells of the nested table will be 
written to the Document.
Attached you'll find an example class dirk.java which produces the file 
Dirk.pdf in which you can see that only 12 cells will be created although 
13 cells should.
Is it a bug or a wrong usage?

For information issues I sysout both the number of cells as well as the 
number of rows which should be created. (For a predefined number of columns 
(4):

        int rows = dates.size() / 4;
        rows += dates.size() % 4 > 0 ? 1 : 0;


-- 
Best regards

Dirk Ulrich

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


Dirk.java
Description: Binary data


Dirk.pdf
Description: Adobe PDF document
-
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.php&p=sourceforge&CID=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] Colors with alpha

2007-01-03 Thread Jonas

I tried tagging all Images with an ICC profile using
img.tagICC(ICC_Profile.getInstance(ColorSpace.CS_sRGB));,
but that didn't change anything. Could you point out how this
should be done, maybe even in the example I posted previously?

I also tried using different BlendModes on PdfGState, which was
partly successful, as all colors look the same afterwards, but unfortunately
they all look wrong (grayish)... So, this doesn't seem to be a solution
either.


Thanks for your help!

Cheers,
Jonas


On 1/1/07, Paulo Soares <[EMAIL PROTECTED]> wrote:


See http://article.gmane.org/gmane.comp.java.lib.itext.general/21023/.

Paulo

-
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.php&p=sourceforge&CID=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/