Re: [iText-questions] Pdfstamper can't find fields.

2006-05-16 Thread Paulo Soares

Designer forms are not supported.

Paulo

- Original Message - 
From: "Rob Trahan" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, May 17, 2006 6:31 AM
Subject: [iText-questions] Pdfstamper can't find fields.


Hello, I'm struggling to use the pdfstamper to fill text fields on a simple 
pdf.


I'm doing this in C#.  What I've done is made a simple pdf document in
Acrobat 7 pro using their designer. The text field's name is
textfield1.

My code is as follows:

string formFile = @".\InputPDF.pdf";
string newFile = @".\OutputPDF.pdf";

PdfReader reader = new PdfReader(formFile);
PdfStamper stamper = new PdfStamper(reader, new
FileStream(newFile,FileMode.Create));

AcroFields fields = stamper.AcroFields;
String fName = fields.GetField("textfield1");
textBox1.Text = "Field name is: " + fName;

if (fields.SetField("textbox1", "doe"))
{
 textBox1.Text += "   ...Field was set";
}
else
{
  textBox1.Text += "...Not set.";
}

The field never gets set.  If I debug, under the form object I can see
a hashtable having a key of "form[0].textbox[0]", I've tried accessing
it with that string as well, and still get nothing.

Note that I'm not using an FDF, but have seen examples without, using
SetField instead for SetFields.

I really do not want to have to build the pdf by hand using the other
iText methods.  What might I be doing wrong?

Thanks,
Rob


---
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=k&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions 




---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Re: using MultiColumnText with PdfStamper

2006-05-16 Thread Vijay
> 
> Caused by: java.lang.UnsupportedOperationException: Use 
> PdfStamper.getUnderContent() or PdfStamper.getOverContent()
>  at com.lowagie.text.pdf.PdfStamperImp.getDirectContent(Unknown Source)
>  at com.lowagie.text.pdf.PdfDocument.newPage(Unknown Source)
>  at com.lowagie.text.pdf.MultiColumnText.newPage(Unknown Source)
>  at com.lowagie.text.pdf.MultiColumnText.write(Unknown Source)
> 
Hi, 

I added a method to MultiColumnText writes to a PdfStamper.

Basically what I did was instead of calling newPage(), I insert a page and 
redefine the PdfContentByte based on the inserted page.

Thanks,
Vijay



---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Adding new Page

2006-05-16 Thread Mark Storer



Interesting... let me see if I have this right:
 
A PdfCell 
can hold almost any other Element (including another table).
A PdfTable 
can be drawn directly to a PdfContentByte (or an array from 
beginWritingRows()).
 
So with that 
table, you should be able to draw just about anything onto an existing PDF 
page... so long as you're not worried about page breaks.
 
So what do 
you do about page breaks?  PdfTable.getRowHeight and some work on our 
part?
 
I see that 
MultiColumnText also has a public "draw me to that PdfContentByte" member.  
Are there any other Pdf* objects like these, or should we stick to the 
lowagie.text.* Elements for the rest?
--Mark Storer   Senior Software Engineer   
Cardiff Software 
#include  typedef std::Disclaimer DisCard; 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Paulo 
  SoaresSent: Tuesday, May 16, 2006 1:48 AMTo: 
  itext-questions@lists.sourceforge.netSubject: RE: [iText-questions] 
  Adding new Page
  Use ColumnText and 
  PdfPTable.
   
  Paulo
  


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Stephan SSent: Monday, May 15, 2006 5:42 PMTo: 
itext-questions@lists.sourceforge.netSubject: [iText-questions] 
Adding new Page
Hallo guys and girlsIs there a way to create a Document 
 and attach this to a existing pdf.Cause my 
problem is:I need to load a pdf and add at the end a new page with some 
information. The example with the PdfStamper worked, BUT I need some 
elements like the Tabel, which are what I know only available in the 
 Class. Many Thanks,Stephan
  
  
  
  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.
  


RE: [iText-questions] PdfLayer

2006-05-16 Thread Doug James
Thank you very much for the reply, I very much appreciate the help.

Is it possible to use the high level objects such as Phrase, PdfPTable
within a layer?

Thanks!

Doug

-Original Message-
From: bruno [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 16, 2006 9:31 AM
To: itext-questions@lists.sourceforge.net; Doug James
Subject: Re: [iText-questions] PdfLayer

Doug James wrote:

>Is it possible to use the high level objects such as Phrase, PdfPTable 
>within a layer? I tried using PdfPTable.writeSelectedRows() but it 
>threw some error about the table having no size, I am still looking
into it.
>  
>
Have you set the 'total width' of the table?
If not, that could be the problem.

> When I create a new layer how does it fit into the 4 layers of a PDF 
>document? Does it add a new text layer?
>  
>
I think you are refering to the getDirectContentUnder, graphics, text
and getDirectContent layer as described in the tutorial: 
http://itextdocs.lowagie.com/tutorial/directcontent/#pdfcontentbyte
That's an iText only concept. In the PDF, this concept is last (as if
the layers are flattened).
Every iText layer is drawn one by one, starting with the getContentUnder
layer.

A PdfLayer is a PDF concept that is implemented in iText.
These concepts are different, but you can probably combine them.
For instance: if you want to define the drawing order of different
objects in the same PdfLayer.

>When is "iText in Action" coming out?
>
I have uploaded my Manning Marketing Questionnaire yesterday.
I hear from marketing that they are thinking about November...
(I didn't know it takes that long to publish a book.) I don't think they
have reason to complain about the reviews.
They addressed a complete new group of reviewers; all reviews were sent
to me anonymously and this time some of the reviewers had never used
iText before (also they don't know me; that seemed to be important to
the publisher). All the reviews are very positive; of course there is
always room for improvement, but no drastic changes are needed.
best regards,
Bruno



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. 08/01/2005)
***


---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Re: Finding page position of an image

2006-05-16 Thread Jeremy Boschen
Is it possible to do this with versions of iText that don't have
PdfContentParser?

- Jeremy

"Paulo Soares" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You'll have to parse the content stream and interpret the commands. Class
PdfContentParser can help you with that. You'll need the PDF reference, of
course.
>
> Paulo
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Petter Nyström
> > Sent: Tuesday, May 16, 2006 10:04 AM
> > To: itext-questions@lists.sourceforge.net
> > Subject: [iText-questions] Finding page position of an image
> >
> > How can I get the co-ordinates of a PdfObject / PdfStream on a page?
> >
> > I use iText for doing stuff with images in PDF documents. In
> > iText I work
> > with the images as PdfStreams. Looking through the API
> > documentation, I
> > see that the Image class holds data for the absolute position
> > of an image.
> > My question is how can I get that for a PdfStream? I suppose
> > I somehow
> > need to get in touch with the content stream in order to find out the
> > position of a PdfObject, but can't find any hints in the docs.
> >
> > Thanks in advance,
> >
> > Petter
> >
> >
> > ---
> > 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=lnk&kid=120709&bid=263057&;
> > dat=121642
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>
> 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.
>
> Rqyvyyzr}^yrmmzqmvxm zV F \?It





---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] function to lock form fields inside the PDF

2006-05-16 Thread Mark Storer



That depends 
on your definition of "Lock".
 
If you want 
them all set to "read-only", then no... not directly.  There are functions 
available to set a given field read-only, and a way to enumerate a PDFs 
fields.
 
AcroFields 
acFields = myPdfStamper.getAcroFields();
Map fieldMap 
= acFields.getFields();
Iterator 
keyIter = fieldMap.keySet().iterator();
while 
(keyIter.hasNext()) {
  
acFields.setFieldProperty( 
    (String) keyIter.next(),   // field 
name
    
"setfflags",  
 // turn some bits on, leave the rest
    PdfFormField.FF_READ_ONLY, // turn on the 
read-only bit
    null 
);    
// all instances of this field
}
 
 
If you want 
them to be totally uneditable, I can think of three methods:
 
1) Flatten 
the PDF.  The strips out the fields themselves, and draws the fields and 
their values directly into the PDF page.  The appearance of a give page 
doesn't change... it still /looks/ like the fields are present with their 
values.  The down-side of flattening is that you can loose some data.  
Anything outside the visible portion of the field is gone.  Multi-line text 
fields and lists that allow multiple selection are vulnerable to this... most 
other fields are not.
 
---
 
PdfStamper 
foo = ...
foo.setFormFlattening( true );
// and if 
you'd like to flatten only certain fields:
foo.partialFormFlattening( "bar" ); // only flatten bar, baz, and 
qux.
foo.partialFormFlattening( "baz" 
);
foo.partialFormFlattening( "qux" );
 
---
 
2) Sign the 
PDF.  PDF supports several kinds of signatures, including some that are 
keyed to particular form fields. I'm not sure that iText supports this 
particular kind of signature.  Let me check.  Nope.  You can 
still sign the document as a whole.
 
There's some 
sample code in the online API reference.  PdfStamper.createSignature has a 
block of 16 lines of code walking you through the process.  It assumes you 
have some 'infrastructure' in place to assist... You need to have a private key 
in a ".pfx" file.  Acrobat can create a "self-signed" (*I* say I'm me) 
private key, and a number of businesses will create a file for you for a 
fee (*they* say I'm me).
 
http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/PdfStamper.html#createSignature(com.lowagie.text.pdf.PdfReader,%20java.io.OutputStream,%20char,%20java.io.File,%20boolean)
 
(that's 
quite a link)
 
Warning:  Signing a PDF doesn't make it impossible to change.  
It makes it possible to retrieve older versions... an important 
difference.  The original data is always available, but you can't be sure 
that all users are aware of this.
 
 
3)  
Encrypt the PDF with a blank "open" password, using the desired PdfWriter.Allow* 
permissions.  To really lock a PDF down, you probably want to turn off 
everything with the possible exception of PdfWriter.AllowScreenReaders 
(text to speach software will still work).
 
--Mark Storer   Senior Software Engineer   
Cardiff Software 
#include  typedef std::Disclaimer DisCard; 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Radek 
  PawlowskiSent: Tuesday, May 16, 2006 8:25 AMTo: 
  itext-questions@lists.sourceforge.netSubject: [iText-questions] 
  function to lock form fields inside the PDF
  
  Is there a function that would 
  lock all the form fields inside of the PDF 
  document?
   
  Sincerely
  -Radek
   
   
   


Re: [iText-questions] Pdfstamper can't find fields.

2006-05-16 Thread Rob Trahan

On 5/16/06, Leibl, Roland <[EMAIL PROTECTED]> wrote:

Take a look at the name of the pdf field.
It is "textfield1" not "textbox1" as used by SetField(..);




Thanks, but that was just a typo on my part.  My last try was naming
the field "foo", and just changed the name once I copied the text over
to email it.  When it's foo, I can see it in debug as
"form1[0].foo[0]".

An iText tutorial discusses how you need to reference it with dot
syntax via its parent, but this  isn't working for me either -- for
example, "form1.foo.0", or "form1[0].foo[0]" or "form1[0].foo.0" etc
all turn up nothing.

Thanks.


---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


AW: [iText-questions] Pdfstamper can't find fields.

2006-05-16 Thread Leibl, Roland
Take a look at the name of the pdf field.
It is "textfield1" not "textbox1" as used by SetField(..);





-Ursprüngliche Nachricht-
Von: Rob Trahan [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 17. Mai 2006 07:32
An: itext-questions@lists.sourceforge.net
Betreff: [iText-questions] Pdfstamper can't find fields.


Hello, I'm struggling to use the pdfstamper to fill text fields on a simple pdf.

I'm doing this in C#.  What I've done is made a simple pdf document in
Acrobat 7 pro using their designer. The text field's name is
textfield1.

My code is as follows:

string formFile = @".\InputPDF.pdf";
string newFile = @".\OutputPDF.pdf";

PdfReader reader = new PdfReader(formFile);
PdfStamper stamper = new PdfStamper(reader, new
FileStream(newFile,FileMode.Create));

AcroFields fields = stamper.AcroFields;
String fName = fields.GetField("textfield1");
textBox1.Text = "Field name is: " + fName;

 if (fields.SetField("textbox1", "doe"))
 {
  textBox1.Text += "   ...Field was set";
 }
 else
{
   textBox1.Text += "...Not set.";
}

The field never gets set.  If I debug, under the form object I can see
a hashtable having a key of "form[0].textbox[0]", I've tried accessing
it with that string as well, and still get nothing.

Note that I'm not using an FDF, but have seen examples without, using
SetField instead for SetFields.

I really do not want to have to build the pdf by hand using the other
iText methods.  What might I be doing wrong?

Thanks,
Rob


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Pdfstamper can't find fields.

2006-05-16 Thread Rob Trahan

Hello, I'm struggling to use the pdfstamper to fill text fields on a simple pdf.

I'm doing this in C#.  What I've done is made a simple pdf document in
Acrobat 7 pro using their designer. The text field's name is
textfield1.

My code is as follows:

string formFile = @".\InputPDF.pdf";
string newFile = @".\OutputPDF.pdf";

PdfReader reader = new PdfReader(formFile);
PdfStamper stamper = new PdfStamper(reader, new
FileStream(newFile,FileMode.Create));

AcroFields fields = stamper.AcroFields;
String fName = fields.GetField("textfield1");
textBox1.Text = "Field name is: " + fName;

if (fields.SetField("textbox1", "doe"))
{
 textBox1.Text += "   ...Field was set";
}
else
{
  textBox1.Text += "...Not set.";
}

The field never gets set.  If I debug, under the form object I can see
a hashtable having a key of "form[0].textbox[0]", I've tried accessing
it with that string as well, and still get nothing.

Note that I'm not using an FDF, but have seen examples without, using
SetField instead for SetFields.

I really do not want to have to build the pdf by hand using the other
iText methods.  What might I be doing wrong?

Thanks,
Rob


---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


AW: [iText-questions] Is it possible to disable the save button ?

2006-05-16 Thread Bernd, Juergen
Title: Is it possible to disable the save button ?



You can 
enable/disable buttons in a _javascript_file, that is located somewhere in 
the
acrobat reader 
installation dir. 

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Im Auftrag von 
  [EMAIL PROTECTED]Gesendet: Freitag, 12. Mai 2006 
  12:05An: itext-questions@lists.sourceforge.netBetreff: 
  [iText-questions] Is it possible to disable the save button 
  ?
  Dear all, 
  I have a question. Is it possible to disable the 
  save button with iText. We want only print 
  the document by acrobat reader, no saving. 
  Another question. Is it possible to close the 
  Reader when the cancel button on the print Dialog was pressed. 
  (PdfAction)
  I hope you can help me…… 
  Thank you ! 
  Regards 
  Timo 


Re: [iText-questions] Re: Regenerate a PDF file form ServletInputStream.

2006-05-16 Thread AnhTuan Nguyen
Hi Bruno,   Thank you for your reply quickly,  The "regenerate" term maybe make you confuse. My problem is described below:  The PDF form is submitted to Tomcat server with PDF format, and i used the ServletInputStream (javax.servlet. to gererate the PDF file from PDF client. This is my code:     protected void doPost(HttpServletRequest request, HttpServletResponse response)   throws ServletException, IOException {   PrintFDF(request, response, "POST"); } public void makePdf(HttpServletRequest request, HttpServletResponse response, String methodGetPost)  throws ServletException, IOException {  try {     File tempFile = new File("c:\\test.pdf");  FileOutputStream fout = new
 FileOutputStream(tempFile);  BufferedInputStream bin = new BufferedInputStream(request.getInputStream());  BufferedOutputStream bout = new BufferedOutputStream(fout);  byte[] buf = new byte[8 * 1024];  int len;  while ((len = bin.read(buf)) > -1) {  bout.write(buf, 0, len);  }  bout.close();  bin.close();  } catch (Exception e2) {} }  The result file (test.pdf) is different with the original file in size and version.     Best regard,Tuan  Bruno Lowagie <[EMAIL PROTECTED]> wrote:  Nguyen Anh Tuan wrote:> Dear itext supporter,> I have a strange problem when i regenerate PDF from of > ServletInputStream: the regenerated PDF file (from tomcat server) is > different to the original PDF (client). They is both different about > file size and version. Please help me how to sovle the problem.Define 'regenerate'.If you are using PdfStamper or PdfCopy,it is normal that the PDF changes.br,Bruno---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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___iText-questions mailing listiText-questions@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/itext-questions __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: [iText-questions] Finding page position of an image

2006-05-16 Thread bruno

Petter Nyström wrote:


How can I get the co-ordinates of a PdfObject / PdfStream on a page?

I use iText for doing stuff with images in PDF documents. In iText I 
work with the images as PdfStreams. Looking through the API 
documentation, I see that the Image class holds data for the absolute 
position of an image. My question is how can I get that for a 
PdfStream? I suppose I somehow need to get in touch with the content 
stream in order to find out the position of a PdfObject, but can't 
find any hints in the docs. 


Images (iText) are added as Image XObjects (PDF).
In the content stream of the page, you will have something like this:
q 80 0 0 32 36 780 cm /Img0 Do Q
The numbers 80 0 0 32 36 780 are the values of the Current 
Transformation Matrix.
In this case, an image of 80 by 32 user units is positioned at x = 36 
and y = 780.

That's the simple explanation.
In reality, it can be very difficult to find the exact location of the image
(and you will need to read the PDF Reference to understand any explanation).
br,
Bruno


---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Re: Problems with Generating Index and Cross References

2006-05-16 Thread Vijay
Paulo Soares  consiste.pt> writes:

> 
> The real problem here is how do you know where the keywords and locations
> are? iText can't do that.
> 
> Paulo
> 
Hi,

My keywords are my methods, classes, constants.

Whenever I encounter a method etc, I create a named destination in my output 
pdf file.

For example assume I am processing java.lang, I create a PDF java-lang.pdf, 
which contains named destinations for all classes, methods and constants in 
java.lang package.

If I open this file stand alone and do a 
SimpleNamedDestination.getNamedDestination(..), it returns all the named 
destinations correctly.

However I later merges this with java-util.pdf using PDFCopy to create java-
packages.pdf, I noticed that if I do SimpleNamedDestination.getNamedDestination
(..) at this point on the java-packages.pdf, I just get back an empty hashmap.

How do I ensure that all the named destinations are copied across correctly and 
SimpleNamedDestination.getNamedDestination returns a valid HashMap?

Thanks,
Vijay





---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Regenerate a PDF file form ServletInputStream.

2006-05-16 Thread bruno

Nguyen Anh Tuan wrote:


Dear itext supporter,
I have a strange problem when i regenerate PDF from of 
ServletInputStream: the regenerated PDF file (from tomcat server) is 
different to the original PDF (client). They is both different about 
file size  and version. Please help me how to sovle the problem.
 


I repeat the counter-question from my previous answer:
what do you mean by 'regenerate'?
If you are using PdfCopy and/or PdfStamper,
it is normal that it has a different file size (and
maybe a different version).
If you don't specify, you won't get any answer.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] How to add Anchor to PdfContentByte

2006-05-16 Thread Allan DeLeon

Hello,

Is there a way to add an Anchor to the content byte? I'm using the
onEndPage event to add a footer to my pages... the footer has a link
that I wanna make clickable, but haven't found anything in the api
docs or the samples that shows how to do this... In the following
method, I'd like to replace "the_url" with an Anchor (or similar) so
that it's clickable... the method is called by onEndPage.

private void addFooter (PdfWriter writer, Document document) {

   int page = document.getPageNumber ();
   float x = footer.left () + (footer.width () / 2f);
   float y = footer.bottom ();

   PdfContentByte cb = writer.getDirectContent ();

   // Add line to footer...
   cb.moveTo (footer.left (), footer.top ());
   cb.lineTo (footer.right (), footer.top ());
   cb.stroke ();

   cb.beginText ();
   cb.setFontAndSize (basefont, 10);
   cb.showTextAligned (PdfContentByte.ALIGN_CENTER, "" + page, x, y, 0);
   cb.showTextAligned (PdfContentByte.ALIGN_RIGHT, the_url,
footer.right (), y, 0);
   cb.showTextAligned (PdfContentByte.ALIGN_LEFT, copyright,
footer.left (), y, 0);
   cb.endText ();
   }

thanks much...


---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Tiff scale

2006-05-16 Thread Bill Ensley
You can't state that you have a tiff of 750 pixels by 900 pixels and
Also say that it is 600dpi.  It doesn't work that way.

A 750 by 900 pixel image is 600 dpi at 1.26 inches by 1.5 inches.
It is 300 dpi at 2.52 x 3 inches.

The math is pixels/dpi = inches.

-Bill Ensley
Bear Printing 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bruno
Sent: Monday, May 15, 2006 1:59 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Tiff scale

Kevin Huang wrote:

> Hi,
>  
> <>I have a Tiff file width: 750 pixels, height: 900 pixels, resolution 
> 600 dpi, bit depth 24.  How can I scale the image to width: 100 
> pixels, height: 120 pixels, and keep the resolution close to 600 dpi?

iText never changes the resolution of an image that is added to the PDF.
You can scale the image to 100 by 120 pixels, this will increase the dpi.
You can't force the dpi to 600.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Storing document page by page in DB

2006-05-16 Thread Waq lala


hahaha

yes i execute it and as i told u that i m able to store this Blob Object.

now i m still there where i was...
I want to store the document object in database as i explain prevoisly plz 
help me out from this



Blob dbObject = rs.getBLOB("OBJECTDATA");


pdfOutputStream = new ByteArrayOutputStream();
Document doc = new Document();
PdfWriterwriter = writer.getInstance(doc, pdfOutputStream);
doc.open();
doc.add(new Phrase("Thgis ia kdjfalkdjflkajlkdj jadflkjaslkdjfk adlkfjas 
ldjflkadflkjaslkdfj"));

doc.close();
OutputStream outStream = Object.getBinaryOutputStream();
pdfOutputStream.writeTo(outStream);
outStream.close();


Waq


From: bruno <[EMAIL PROTECTED]>
To: Waq lala 
<[EMAIL PROTECTED]>,"'itext-questions@lists.sourceforge.net'" 


Subject: Re: [iText-questions] Storing document page by page in DB
Date: Mon, 15 May 2006 15:23:49 +0200

Please keep replying to the mailing list so that other subscribers can 
answer too.


Waq lala wrote:


when  I m using these line of code it stores in the database

  PdfReader readFrom = new PdfReader("text.pdf");
   merge1 = new PdfStamper(readFrom, pdfOutputStream);
   merge1.close();


OK, if pdfOutputStream is of type ByteArrayOutputStream,
you have created a new PDF file in memory.


 OutputStream outStream = Object.getBinaryOutputStream();
 pdfOutputStream.writeTo(outStream);
outStream.close();


I don't understand this Object.getBinaryOutputStream method,
This is not java.lang.Object we are talking about!
Please use another name, because java.lang.* is imported by default
and you will get an error if you invoke the non-existent static method
getBinaryOutputStream on java.lang.Object.

but when i use this method to store the document object it stores err in 
the blob colunm in database. and i want to use the document object.


Blob Object = ((OracleResultSet) rs).getBLOB("OBJECTDATA");


Aha, you gave an instance of Blob the name 'Object'.
It's a big surprise to me that you succeeded to compile this code.
br,
Bruno


_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Storing document page by page in DB

2006-05-16 Thread bruno

Waq lala wrote:

well i didn't find any method to get the ByteArrayOutputStream will 
you plz dicuss it in detail


???
Yesterday, you wrote:

pdfOutputStream = new ByteArrayOutputStream();
Document doc = new Document();
PdfWriterwriter = writer.getInstance(doc, pdfOutputStream);
doc.open();
doc.add(new Phrase("Thgis ia kdjfalkdjflkajlkdj jadflkjaslkdjfk adlkfjas 
ldjflkadflkjaslkdfj"));

doc.close();
OutputStream outStream = Object.getBinaryOutputStream();
pdfOutputStream.writeTo(outStream);
outStream.close();

So you created a ByteArrayOutputStream and that way you obtained
an object pdfOutputStream that can be written to another OutputStream
or retrieved as byte[]. Why are you saying 'you can't find any method to
get the ByteArrayOutputStream'? You are contradicting yourself.
What you say just doesn't make sense. You are wasting valuable time!

Anyway, I see in your last code sample that you can get an OutputStream
from your BLOB object class:
OutputStream outStream = dbObject.getBinaryOutputStream();
You can write the PDF to this outStream object directly without
using a ByteArrayOutputStream as intermediary 'storage'.
You could use something like this:

Document doc = new Document();
PdfWriterwriter = writer.getInstance(doc, 
dbObject.getBinaryOutputStream());

doc.open();
doc.add(new Phrase("Thgis ia kdjfalkdjflkajlkdj jadflkjaslkdjfk adlkfjas 
ldjflkadflkjaslkdfj"));

doc.close();

br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Re: Regenerate a PDF file form ServletInputStream.

2006-05-16 Thread Bruno Lowagie

Nguyen Anh Tuan wrote:

Dear itext supporter,
I have a strange problem when i regenerate PDF from of 
ServletInputStream: the regenerated PDF file (from tomcat server) is 
different to the original PDF (client). They is both different about 
file size  and version. Please help me how to sovle the problem.


Define 'regenerate'.
If you are using PdfStamper or PdfCopy,
it is normal that the PDF changes.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Re: Reg Help in iText :: Adding Header Page and Footer page in an Existing PDF file

2006-05-16 Thread Paulo Soares


- Original Message - 
From: "Balajiviswanathan.V" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Cc: 
Sent: Saturday, May 13, 2006 7:02 AM
Subject: Reg Help in iText :: Adding Header Page and Footer page in an 
Existing PDF file




Hai All,

 My Requirement is that we have created lots of PDF's in a Batch using 
iText, but unfortunatly we forget to create a Banner Page just like 1st 
Page of Book contains Title last Page contains index.


 Now is it possible to open the existing PDF and add 1st Page and last 
Page with Some data..




Yes.

 NOTE : I dont want to  create another PDF's  which contains  First Page 
and Last Page then Merge these 3 into 1.. Bcas that become a  Painfull 
exercise in my case.




Use PdfStamper to inser new pages.

Paulo

 Can Any one in the Group Help me by giving an existing sample code for 
this or any functional inputs.


 Thanks and Regards,
 BalajiViswanathan V


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great 
rates starting at 1¢/min. 




---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Re: Changing orientation in the middle of a document

2006-05-16 Thread bruno

[EMAIL PROTECTED] wrote:

Sorry, I just found the method Document.setPageSize() to do that. I'll 
read the examples more carefully.


I received your anwer before I received the question.
Don't forget that setPageSize() only goes into effect on the next page.
See http://itextdocs.lowagie.com/tutorial/general/#step1
http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/LandscapePortrait.java
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Printing takes forever......

2006-05-16 Thread Brian
When you say transparency , do you mean images on the
overlay?
If so then yes.

How would I fix this then?
Thanks, B

--- Leonard Rosenthol <[EMAIL PROTECTED]> wrote:

> At 03:57 PM 5/11/2006, Brian wrote:
> >   We currently have an internal application that
> makes
> >use of itext. It takes text files, and converts
> them
> >to pdf's dynamically with a pdf overlay.
> 
>  Are you using any transparency in the
> document?  If so, 
> that's the problem!
> 
> 
> Leonard
> 
>
---
> Leonard Rosenthol   
> 
> Chief Technical Officer 
> 
> PDF Sages, Inc. 
> 215-938-7080 (voice)
>  
> 215-938-0880 (fax)
> 
> 
> 
>
---
> 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=lnk&kid=120709&bid=263057&dat=121642
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


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


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Registering resource URL locations of font files within JARs ?

2006-05-16 Thread Darryl Miles


I have taken a look at the documentation for registering font file 
locations with FontFactory, but I can't see any way to introduce a 
resource URL to it.  This would allow bundling of fonts files into 
JARs.  The example cites how to bundle additional character sets and 
mappings for asian fonts.


When I use a hard path reference that works, but it doesn't allow 
bundling of fonts within a container managed application.



I'm looking for generic API usage that would effectively work like this:

String resDir = "my/package/path/name";
URL url = getClass().getClassLoader().getResource(resDir + "/" + 
"font.ttf");

FontFactory.register(url);


Thanks

Darryl



---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Thumbnails of PDF pages

2006-05-16 Thread Thibault Falise

Hi,

I'd like to know if it is possible to create a thumbnail image of each 
page of an existing PDF.

I've looked in the tutorial and found nothing about this.

Thanks for your answers.


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] 3 miscellaneous changes

2006-05-16 Thread Aleksandras S
Hi,what's mean miscellaneous changes?Sorry for my englishI need to show only my logo in signature (but no pdf logo in signature, no question Marka and etc.)when i use 
sap.setAcro6Layers(true);everything is OK. I see only my logo
But I get "3 miscellaneous changes" in Modifications Listwhen I don't use sap.setAcro6Layers(true); I have only "1 miscellaneous changes"Thank you,Alex




Re: [iText-questions] Storing document page by page in DB

2006-05-16 Thread bruno
Please keep replying to the mailing list so that other subscribers can 
answer too.


Waq lala wrote:


when  I m using these line of code it stores in the database

  PdfReader readFrom = new PdfReader("text.pdf");
   merge1 = new PdfStamper(readFrom, pdfOutputStream);
   merge1.close();


OK, if pdfOutputStream is of type ByteArrayOutputStream,
you have created a new PDF file in memory.


 OutputStream outStream = Object.getBinaryOutputStream();
 pdfOutputStream.writeTo(outStream);
outStream.close();


I don't understand this Object.getBinaryOutputStream method,
This is not java.lang.Object we are talking about!
Please use another name, because java.lang.* is imported by default
and you will get an error if you invoke the non-existent static method
getBinaryOutputStream on java.lang.Object.

but when i use this method to store the document object it stores err 
in the blob colunm in database. and i want to use the document object.


Blob Object = ((OracleResultSet) rs).getBLOB("OBJECTDATA");


Aha, you gave an instance of Blob the name 'Object'.
It's a big surprise to me that you succeeded to compile this code.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] How to set margin of a document dynamically

2006-05-16 Thread Paulo Soares
Create your own layout with ColumnText.

Paulo

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Sony Thomas
> Sent: Friday, May 12, 2006 3:30 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] How to set margin of a document dynamically
> 
> I have created a document with margins(36,36,75,77). If  I 
> have a header 
> for the document then the document margins have to set to a 
> different size.
> 
> I tried document.setMargins(36,36,head.getTotalheight(),77);
> 
> But this is not working. Can anyone help me to set margins 
> dynamically.
> 
> The real problem which I am facing is when my header is big 
> it overlap 
> with the actual content. So can anyone help me to tackle this.
> 
> Thanks in advance
> 
> 
> sony
> 
> 
> ---
> 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=lnk&kid=120709&bid=263057&;
> dat=121642
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


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.



---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Thumbnails of PDF pages

2006-05-16 Thread Bill Ensley
Try Jpedal, if you search the mail archives you
Will find some code I posted for just such a use.

-Bill Ensley
Bear Printing 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thibault
Falise
Sent: Tuesday, May 16, 2006 7:13 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Thumbnails of PDF pages

Hi,

I'd like to know if it is possible to create a thumbnail image of each page
of an existing PDF.
I've looked in the tutorial and found nothing about this.

Thanks for your answers.


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] unsubscribe

2006-05-16 Thread Wooten, Bryan








unsubscribe








[iText-questions] Timestamp Pdf signature

2006-05-16 Thread Bouzaglo, Henri
Title: Timestamp Pdf signature






Hi,

Could you give us a sample of timestamp a PDF signature with itext ?

Thanks for the help


David





RE: [iText-questions] Thumbnails of PDF pages

2006-05-16 Thread Paulo Soares
iText can't rasterize Pdfs.

Paulo 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Thibault Falise
> Sent: Tuesday, May 16, 2006 3:13 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Thumbnails of PDF pages
> 
> Hi,
> 
> I'd like to know if it is possible to create a thumbnail 
> image of each 
> page of an existing PDF.
> I've looked in the tutorial and found nothing about this.
> 
> Thanks for your answers.
> 
> 
> ---
> 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=lnk&kid=120709&bid=263057&;
> dat=121642
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


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.



---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Storing document page by page in DB

2006-05-16 Thread bruno

Waq lala wrote:



hahaha


I am not amused.


yes i execute it and as i told u that i m able to store this Blob Object.


I must have missed that. Your mail was hard to understand.


now i m still there where i was...


I have no idea where that is.

I want to store the document object in database as i explain prevoisly 
plz help me out from this


You say you can store the document in the database.
I quote: " told u that i m able to store this Blob Object".

If by "i explain prevoisly" you mean you want to store
separate pages, then I can only repeat what I have said before.
"Use the class com.lowagie.tools.plugins.Burst as inspiration
to split the file in the ByteArrayOutputStream into separate pages.
Write each page to another ByteArrayOutputStream. Save the
byte[] obtained from the ByteArrayOutputStream to your database
as a BLOB."
If you mean something else, then I have no idea what you are
talking about.
If you just want to make fun of me, please do go elsewhere.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] function to lock form fields inside the PDF

2006-05-16 Thread Radek Pawlowski








Is there a function that would lock all the form fields
inside of the PDF document?

 

Sincerely

-Radek

 

 

 








Re: [iText-questions] adding properties to existing descriptionfield

2006-05-16 Thread Leonard Rosenthol

At 07:07 AM 5/12/2006, [EMAIL PROTECTED] wrote:
I need to add customproperties to an existing description-field in 
the xmp-metadata.. i was able to create a new field and add 
properties to it, but then the metadata isn't shown in the Acrobat's 
document properties section.


It will only be shown in the Advanced Properties.


LDR

---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-938-7080 (voice)
 215-938-0880 (fax)



---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] PdfPageEventHelper and margins problem

2006-05-16 Thread Paulo Soares
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Nicolas Laplante
> Sent: Monday, May 15, 2006 4:57 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] PdfPageEventHelper and margins problem
> 
> Hi, I have a Document which has it's bottom margin set to 19 pt.
> 
> I then plug a PdfPageEventHelper on it. The onEndPage() method has a 
> Document argument, which I assume is the document on which 
> the event helper 
> is attached.
> 
> However, I print the bottom margin to System.out from inside 
> the onEndPage() 
> method and the result is 168pt. I don't know where the bottom 
> margin gets 
> changed but I really need to get the same value I specified 
> at document 
> creation (19pt).
> 
> What am I doing wrong?
>

No idea, you didn't post any code so that the problem could be
reproduced.

Paulo
 
> Thank you
> 
> Nicolas Laplante 
> 
> 
> 
> 
> 
> ---
> 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=lnk&kid=120709&bid=263057&;
> dat=121642
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


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.



---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Storing document page by page in DB

2006-05-16 Thread bruno

Waq lala wrote:



Hi,

I want to creat a document without creating any PDF file. 


Write everything to a ByteArrayOutputStream.

I also want to save the document in the database page by page e.g. 
suppose i have created 5 pages in a document and i want to save these 
pages seperatly in to the database.


Use the class com.lowagie.tools.plugins.Burst as inspiration
to split the file in the ByteArrayOutputStream into separate pages.
Write each page to another ByteArrayOutputStream. Save the
byte[] obtained from the ByteArrayOutputStream to your database
as a BLOB.


All this procedure will be done without creating any PDF file


You will be creating a PDF file, but without writing it to the file system.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Re: AW: Sub page numbering

2006-05-16 Thread Bruno Lowagie

Nigel Kibble wrote:


Hi Bruno,

That's sorted my problem out - thanks alot. Just out of interest, I have 
noticed the document.close() method is causing the onStartPage() to be invoked 
agin. I noticed because it threw my page count out for the final invoice 
within the PDF. Is there a special reason for it doing this?
 

Upon document.close(), document.newPage() is triggered to finalize the 
current page.

That's probably what causes the onStartPage().
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Storing document page by page in DB

2006-05-16 Thread bruno

Waq lala wrote:

I found that if the size of a file is less then the size of that blob 
object buffer then it will not store any data


I don't know anything about BLOB object code in Oracle,
but it sounds like you need something like a flush() method.



I execute this code. its fine for now. 


...

   dbObject = ((OracleResultSet) rs).getBLOB("PAGEDATA"); 


In your original example you named this object Object.
That was very ambiguous because there's also the class
java.long.Object. It was obvious that your code sample
wasn't genuine. That confuses people who try to help you.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] tableFitsPage..NOT

2006-05-16 Thread jari_aropelto

Hey!

For some reason when we updated from itext-1.3 to itext-1.4 the method 
tableFitsPage(pdf-document) doesn't work anymore..


Why is that? Is there a site where the changes between these to versions are 
presented?


Jari

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Adding new Page

2006-05-16 Thread Stephan S
Hallo guys and girlsIs there a way to create a Document  and attach this to a existing pdf.Cause my problem is:I need to load a pdf and add at the end a new page with some information. The example with the PdfStamper worked, BUT I need some elements like the Tabel, which are what I know only available in the  Class.
Many Thanks,Stephan


Re: [iText-questions] problem with rowspan in complex tables (bug?)

2006-05-16 Thread bruno

Hubert Grininger wrote:


I ran "ant jar" and tried it with the generated jar-file instaed of
itext-1.4.jar -> exactly the same problem  ... did I used the wrong sources
or did I miss out something?


If the problem persists, then it's probably another bug.
Please send me a standalone example that reproduces the problem.
See http://article.gmane.org/gmane.comp.java.lib.itext.general/22130
or http://thread.gmane.org/gmane.comp.java.lib.itext.general/22130
for an example.
Do not send any PDF or code that can't be run standalone.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Re: acroforms - saving local

2006-05-16 Thread Bruno Lowagie

Glen Self wrote:

I need to generate a pdf progromatically that contains fielded data,
email the pdf to a company where it is filled out and emailed back.


iText doesn't have e-email functionality.
You can create a form with iText, you can
fill this form, but you need a mail API if
you want to do it this way.

Personally I don't think mail is the best
medium to do this. Please read this recent
post for a better solution:

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


It appears that itext should support this but I can't figure out how to create
the  pdf with fields to be filled in.


This has all been discussed many times on
the mailing list recently.

br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] PdfPageEventHelper and margins problem

2006-05-16 Thread Nicolas Laplante
Hi, I have a Document which has it's bottom margin set to 19 pt.

I then plug a PdfPageEventHelper on it. The onEndPage() method has a 
Document argument, which I assume is the document on which the event helper 
is attached.

However, I print the bottom margin to System.out from inside the onEndPage() 
method and the result is 168pt. I don't know where the bottom margin gets 
changed but I really need to get the same value I specified at document 
creation (19pt).

What am I doing wrong?

Thank you

Nicolas Laplante 





---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Finding page position of an image

2006-05-16 Thread Paulo Soares
You'll have to parse the content stream and interpret the commands. Class 
PdfContentParser can help you with that. You'll need the PDF reference, of 
course.

Paulo 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Petter Nyström
> Sent: Tuesday, May 16, 2006 10:04 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Finding page position of an image
> 
> How can I get the co-ordinates of a PdfObject / PdfStream on a page?
> 
> I use iText for doing stuff with images in PDF documents. In 
> iText I work 
> with the images as PdfStreams. Looking through the API 
> documentation, I 
> see that the Image class holds data for the absolute position 
> of an image. 
> My question is how can I get that for a PdfStream? I suppose 
> I somehow 
> need to get in touch with the content stream in order to find out the 
> position of a PdfObject, but can't find any hints in the docs.
> 
> Thanks in advance,
> 
> Petter
> 
> 
> ---
> 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=lnk&kid=120709&bid=263057&;
> dat=121642
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


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

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



[iText-questions] Adding new Page

2006-05-16 Thread Stephan
Hallo guys and girls

Is there a way to create a Document  and attach this to a
existing pdf.

Cause my problem is:
I need to load a pdf and add at the end a new page with some information. The
example with the PdfStamper worked, BUT I need some elements like the Tabel,
which are what I know only available in the  Class.

Many Thanks,
Stephan



---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] 3 miscellaneous changes

2006-05-16 Thread Aleksandras S
Hi,what's mean miscellaneous changes?Sorry for my englishI need to show only my logo in signature (but no pdf logo in signature, no question Marka and etc.)when i use sap.setAcro6Layers(true);everything is OK. I see only my logo
But I get "3 miscellaneous changes" in Modifications Listwhen I don't use sap.setAcro6Layers(true); I have only "1 miscellaneous changes"Thank you,Alex


[iText-questions] Reg Help in iText :: Adding Header Page and Footer page in an Existing PDF file

2006-05-16 Thread Balajiviswanathan.V
Hai All,My Requirement is that we have created lots of PDF's in a Batch using  iText, but unfortunatly we forget to create a Banner Page just like 1st  Page of Book contains Title last Page contains index.Now is it possible to open the existing PDF and add 1st Page and last Page with Some data..NOTE : I dont want to  create another PDF's  which contains  First Page and Last Page then Merge these 3 into 1.. Bcas that become a  Painfull exercise in my case.Can Any one in the Group Help me by giving an existing sample code for this or any functional inputs.Thanks and Regards,  BalajiViswanathan V  
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

[iText-questions] Problems with Generating Index and Cross References

2006-05-16 Thread Vijay Yellapragada
Hi,

I have been using iText with a combination of Apache FOP for creating
Specification Documents and I would like to thank the developers of iText for
devoting their time in producing such an useful tool.

My tool takes a bunch of individually authored standalone html files + java
sources + package.html's + images and generates JavaDoc and a PDF file.  The
whole process takes about a minute for a 500 page document which is about 30
times faster than some of the industry standard tools

I have been successfully able to create Page Numbers, Bookmarks, Table Of
Contents, Merge PDF's etc...

The problem I am currently trying to solve is the following

- I need to generate the "INDEX" of all the keywords at the end of the Document.
- I also need to be able to jump from page to page when the user notices a link
to a keyword and clicks on it.

To keeps things simple, for now all my keywords are class, method and constant
names.

The approach I have tried for generating the INDEX is :- 
- For each keyword create a localdestination using
Chunk.setLocalDestination();
- Each individual PDF has quite a few localdestinations.
- I can print the destinations using reader.getNamedDestination().
- The problem I see is that when I merge all the individually generated PDF's,
using PDFCopy, and try to print the destination using
reader.getNamedDestination(), I get nothingIs there some method I am not
calling, which copies the local destinations to the consolidated PDF?

The second part of the problem is when trying to generate the GOTO's for the
keywords.
- I noticed that I cannot create a Chunk.setLocalGoto("Hello") if there is no
Chunk with localDestination("Hello");
- My origin plan was to do the following, create Chunk.setLocalGoto("Hello") in
one pdf and in another pdf create Chunk.localDestination("Hello"), and when the
two are merged the GOTO's will work fine.
- Is there any iText recommended solution for such problems?

Thank you for the help.

Thanks,
Vijay



---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] topic for acroforms and dynamic table

2006-05-16 Thread Kalra, Ashwani



Hi,
I am not able to 
find the topic in which Paulo or Bruno had given the link to a sample on how to 
handle acroforms template and printing of dynamic table. I remember its page 
under construction. 
 
Please send me that 
link
 
 
__ 
Regards Ashwani Kalra  

 

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [iText-questions] PdfLayer

2006-05-16 Thread bruno

Doug James wrote:


Is it possible to use the high level objects such as Phrase, PdfPTable
within a layer? I tried using PdfPTable.writeSelectedRows() but it threw
some error about the table having no size, I am still looking into it.
 


Have you set the 'total width' of the table?
If not, that could be the problem.


When I create a new layer how does it fit into the 4 layers of a PDF
document? Does it add a new text layer?
 

I think you are refering to the getDirectContentUnder, graphics, text 
and getDirectContent layer
as described in the tutorial: 
http://itextdocs.lowagie.com/tutorial/directcontent/#pdfcontentbyte
That's an iText only concept. In the PDF, this concept is last (as if 
the layers are flattened).
Every iText layer is drawn one by one, starting with the getContentUnder 
layer.


A PdfLayer is a PDF concept that is implemented in iText.
These concepts are different, but you can probably combine them.
For instance: if you want to define the drawing order of different
objects in the same PdfLayer.


When is "iText in Action" coming out?


I have uploaded my Manning Marketing Questionnaire yesterday.
I hear from marketing that they are thinking about November...
(I didn't know it takes that long to publish a book.)
I don't think they have reason to complain about the reviews.
They addressed a complete new group of reviewers; all reviews
were sent to me anonymously and this time some of the reviewers
had never used iText before (also they don't know me; that seemed
to be important to the publisher). All the reviews are very positive;
of course there is always room for improvement, but no drastic
changes are needed.
best regards,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Tiff scale

2006-05-16 Thread bruno

Kevin Huang wrote:


Hi,
 
<>I have a Tiff file width: 750 pixels, height: 900 pixels, resolution 
600 dpi, bit depth 24.  How can I scale the image to width: 100 
pixels, height: 120 pixels, and keep the resolution close to 600 dpi? 


iText never changes the resolution of an image that is added to the PDF.
You can scale the image to 100 by 120 pixels, this will increase the dpi.
You can't force the dpi to 600.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Storing document page by page in DB

2006-05-16 Thread Waq lala


Hi,

I want to creat a document without creating any PDF file. I also want to 
save the document in the database page by page e.g. suppose i have created 5 
pages in a document and i want to save these pages seperatly in to the 
database. All this procedure will be done without creating any PDF file


If any other suggestion to do the same thing then plz

Thanx

Waq

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] PdfLayer

2006-05-16 Thread Doug James
iText rocks!
 
I have been playing with layers and optional content. I have figured out
how to add text to individual layers using the ColumnText object. I just
have a couple of questions.
 
Is it possible to use the high level objects such as Phrase, PdfPTable
within a layer? I tried using PdfPTable.writeSelectedRows() but it threw
some error about the table having no size, I am still looking into it.
 
When I create a new layer how does it fit into the 4 layers of a PDF
document? Does it add a new text layer?
 
When is "iText in Action" coming out?
 
Thanks for the help!
 
Doug James
Software Engineer
Benefitfocus.com, Inc.




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. 08/01/2005)
***


---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


AW: [iText-questions] Regenerate a PDF file form ServletInputStream.

2006-05-16 Thread Bernd, Juergen



Is the filesize and 
version the only difference? If so, what is the problem?

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Im Auftrag von 
  Nguyen Anh TuanGesendet: Dienstag, 16. Mai 2006 
  09:26An: itext-questions@lists.sourceforge.netBetreff: 
  [iText-questions] Regenerate a PDF file form 
  ServletInputStream.
  
  Dear itext supporter,
  I have a strange problem when i regenerate PDF 
  from of ServletInputStream: the regenerated PDF file (from tomcat server) 
  is different to the original PDF (client). They is both different about 
  file size  and version. Please help me how to sovle the 
  problem.
   
  Thanks a lot for your help.
   
  NguyenAnhTuan


[iText-questions] Problem with Table creation

2006-05-16 Thread peddineni

If i have more number of columns in table then the columns are shrinking  
down, actually it should place as it is and if required the document should 
expand horizantally ,but it was not happening like that the Horizantal length 
was fixed and table columns are shrinking, so the content was unable to read.

How to resolve this...?   



---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Tiff scale

2006-05-16 Thread Paulo Soares

iText doesn't sub-sample images.

Paulo

- Original Message - 
From: "Kevin Huang" <[EMAIL PROTECTED]>

To: 
Sent: Friday, May 12, 2006 9:16 PM
Subject: [iText-questions] Tiff scale


Hi,

 I have a Tiff file width: 750 pixels, height: 900 pixels, resolution 600 
dpi, bit depth 24.  How can I scale the image to width: 100 pixels, height: 
120 pixels, and keep the resolution close to 600 dpi?


 Thanks,

 Kevin


-
How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call 
rates. 




---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Destinations in a Merged Pdf

2006-05-16 Thread Paulo Soares


- Original Message - 
From: "Vijay" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, May 13, 2006 1:19 PM
Subject: [iText-questions] Destinations in a Merged Pdf



Hi,

I noticed that after I merge two pdfs using PdfCopy, and read the merged 
PDF,

doing a reader.getNamedDestination() returns empty hashmap.

How do I get hold of all the destinations in a merged pdf?



PdfCopy doesn't copy the named destination.

Paulo


Thanks,
Vijay




---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions 




---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] How to make fonts a bit taller (not broader)

2006-05-16 Thread Bruno Lowagie

Maximilian Renkin wrote:


I am a bebinner regarding iText.

I have the need to make a font a bit more slender, i.e. more height with same 
width in a multi page document.
 


That's possible with method setHorizontalScaling:
Chunk c = new Chunk("slender");
c.setHorizontalScaling(0.8f);
The float is a percentage (in this case 80%).


* is there a way to use affine transformation together with high level
 objects?
 


Other transformation that are possible with Chunk:
rotation/skewing: setSkew
translation: setTextRise


* or how do I add page breaks etc. when using direct content
 


When using direct content, you should also use
document.newPage();
to go to the next page.
br,
Bruno


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Printing takes forever......

2006-05-16 Thread Joseph Brady

Brian wrote:

Hello All,
  We currently have an internal application that makes
use of itext. It takes text files, and converts them
to pdf's dynamically with a pdf overlay. Viewing the
document is quick and easy. However, when we pring,
it's like the pdf document gets bloated and printing
has taken up to 5 minutes on documents that are less
than 1 meg. (Side note here... If you watch your
printer, the size of the document grows to about 19
meg) Thus the long printing time. Has anyone else
experienced this? What might be the cause?
Any thought's would be appreciated.
Thanks, Brian


I have similar results with my application. It can print from Java or 
export to PDF or XLS formats. The same 42 page output comes out as 130 
KB PDF and 590 KB XLS. Printing the XLS file using Excel results in a 
960 KB spool file, PDF from Acrobat 6 Standard: 8.6 MB spool file, and 
from the program using Java 2D: 13 MB spool file. I don't know if Excel 
is super efficient or if Acrobat is that bad. I've searched so many 
times for a reason for this, especially for the Java 2D output, but have 
never found anything that helped.


Joe


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Regenerate a PDF file form ServletInputStream.

2006-05-16 Thread Nguyen Anh Tuan




Dear itext supporter,
I have a strange problem when i regenerate PDF from 
of ServletInputStream: the regenerated PDF file (from tomcat server) is 
different to the original PDF (client). They is both different about file 
size  and version. Please help me how to sovle the 
problem.
 
Thanks a lot for your help.
 
NguyenAnhTuan


[iText-questions] Finding page position of an image

2006-05-16 Thread Petter Nyström

How can I get the co-ordinates of a PdfObject / PdfStream on a page?

I use iText for doing stuff with images in PDF documents. In iText I work 
with the images as PdfStreams. Looking through the API documentation, I 
see that the Image class holds data for the absolute position of an image. 
My question is how can I get that for a PdfStream? I suppose I somehow 
need to get in touch with the content stream in order to find out the 
position of a PdfObject, but can't find any hints in the docs.


Thanks in advance,

Petter


---
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=lnk&kid=120709&bid=263057&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Problem with Table creation

2006-05-16 Thread Paulo Soares
There's an example in the tutorial on how to create an arbitrarily wide
table and how to split it in several pages.

Paulo 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of peddineni
> Sent: Tuesday, May 16, 2006 4:03 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Problem with Table creation
> 
> 
> If i have more number of columns in table then the columns 
> are shrinking  
> down, actually it should place as it is and if required the 
> document should 
> expand horizantally ,but it was not happening like that the 
> Horizantal length 
> was fixed and table columns are shrinking, so the content was 
> unable to read.
> 
> How to resolve this...?   
> 
> 
> 
> ---
> 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=lnk&kid=120709&bid=263057&;
> dat=121642
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


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.



---
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=lnk&kid0709&bid&3057&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Adding new Page

2006-05-16 Thread Paulo Soares



Use ColumnText and PdfPTable.
 
Paulo

  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Stephan SSent: Monday, May 15, 2006 5:42 PMTo: 
  itext-questions@lists.sourceforge.netSubject: [iText-questions] 
  Adding new Page
  Hallo guys and girlsIs there a way to create a Document 
   and attach this to a existing pdf.Cause my 
  problem is:I need to load a pdf and add at the end a new page with some 
  information. The example with the PdfStamper worked, BUT I need some elements 
  like the Tabel, which are what I know only available in the  
  Class. Many Thanks,Stephan

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.