[iText-questions] Why is my table so compact?

2004-01-09 Thread kg84






I am writing a table to pdf doc, but it's always compacted. How to achieve
some space above and below to text ( How to increase cell height?).

My code follows:

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {

  try{

ByteArrayOutputStream ba = new ByteArrayOutputStream();
  Document document = new Document(PageSize.A4, 10, 10, 10, 10);
PdfWriter.getInstance(document, ba);

document.open();

Table datatable = new Table(2);
datatable.setBorder(Rectangle.NO_BORDER);
int headerwidths[] = { 50, 50};
datatable.setWidths(headerwidths);
datatable.setWidth(100);

Table earnings = new Table(4);
earnings.setPadding(2);
  earnings.setSpacing(2);
int earningswidths[] = {40,10,25,25};
earnings.setWidths(earningswidths);
earnings.setWidth(100);
earnings.setAlignment(Table.ALIGN_MIDDLE);


earnings.addCell(secHeading("Earnings"));
earnings.addCell(secHeading("Hours"));
earnings.addCell(secHeading("Amount"));
earnings.addCell(secHeading("YTD"));

earnings.addCell(secData("Pay 1"));
earnings.addCell(secData(""));
earnings.addCell(secData("$12,180.00"));
earnings.addCell(secData("$118,200.00"));

earnings.addCell(secData("Pay 2"));
earnings.addCell(secData(""));
earnings.addCell(secData("$5.92"));
earnings.addCell(secData("$59.20"));

datatable.insertTable(earnings);

document.add(datatable);
document.close();

  resp.setContentType("application/pdf");
  resp.setContentLength(ba.size());
  ServletOutputStream out = resp.getOutputStream();
  ba.writeTo(out);
  ba.close();

  out.flush();
  out.close();
  System.out.println("Finished.");
  }catch(Exception e){}

  }

  public Cell secHeading(String data) throws BadElementException
  {

Font font = FontFactory.getFont(FontFactory.HELVETICA, 9,
Font.BOLD,new Color(255,255,255));

Cell cell = new Cell(new Phrase(data, font));
cell.setVerticalAlignment(Cell.ALIGN_MIDDLE);
cell.setBackgroundColor(new Color(52,102,153));

return cell;
  }
  public Cell secFooter(String data) throws BadElementException
  {
Cell cell = new Cell(new Phrase(data,
FontFactory.getFont(FontFactory.HELVETICA, 9, Font.BOLD)));
cell.setVerticalAlignment(Cell.ALIGN_MIDDLE);
cell.setBackgroundColor(new Color(204,204,204));

return cell;
  }
  public Cell secData(String data) throws BadElementException
  {
Cell cell = new Cell(new Phrase(data,
FontFactory.getFont(FontFactory.HELVETICA, 9, Font.NORMAL)));
cell.setVerticalAlignment(Cell.ALIGN_MIDDLE);

return cell;
  }



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


[iText-questions] Re: pdf print?!?

2004-01-09 Thread Andrzej Jan Taramina
Jonas asks:

> sure, but i dont wont to transfer any pdf directly to the user.
> i want to print the pdf (stored on the server) over the browser
> (javaservlet) directly to the users printer, if he push a print button at the
> servlet... :)

I'm using Cocoon rather than raw servlets, but did manage to resolve this 
problem in my application, where I can fire of the printing of a dynamically 
generated PDF under program control.

The final solution used two parts:

1) A Cocoon flowscript piece of code that generates the PDF and saves it in a 
temp dir for printing, then calls part 2.  Flowscript is just a custom 
version of Javascript, so this would translate pretty easily into Java 
servlet code.

2) A VBS (ugh!) script that uses acrord32.exe (the Acrobat Reader) with an 
undocumented command line parameter to actually do the physical printing to a 
specified printer (default, local or networked), monitors the print job to 
completion then terminates the Reader process (Acrobat doesn't terminate 
itself after the print) and finally deletes the temp file if all went well.

Been working like a charm so far, but only works on Windoze boxes of course, 
due to the VBS dependency.

If you want, ping me privately and I'll send you the Javascript and VBS 
scripts which should get you down the path of printing PDFs under program 
control.

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com



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


Re: [iText-questions] pdf print?!?

2004-01-09 Thread Leonard Rosenthol
At 6:37 PM +0100 1/9/04, <[EMAIL PROTECTED]> wrote:
aha,.. can you tell me any company?
	See .


the file does not have to be displayed anytime, i need only a printout
function. so i wont transfer the normal pdf file
	In order to print ANYTHING on a remote computer, it must be 
received by a component capable of handling the incoming data, 
rendering it into a printable rendition, and then communicating with 
the printer driver to have it sent to the printer in a compatible 
format.

	Normally that program is Adobe Acrobat/Reader and it's web 
browser plugin.   However, there is nothign stopping you from 
providing your customers with a replacement plugin that can perform 
those same actions - or can bridge to Acrobat (running hidden) to do 
it.  See products such as PDFPrint 
().

Leonard
--
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-629-3700 (voice)
 215-629-0789 (fax)
---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] pdf print?!?

2004-01-09 Thread chicks
--- [EMAIL PROTECTED] wrote:
> the file does not have to be displayed anytime, i
> need only a printout
> function. so i wont transfer the normal pdf file

What you need is a custom mime-type and "helper"
application (you end users will need to install the
"helper").  Security will need to be handled by your
server app using logins and/or the end user's ip
address - standard stuff.

See the attached for an example "helper" app (no
security) that downloads and prints PDF files (Windoze
only, but can be ported to any OS using Perl, etc.).

You will need to modify the .reg file so it matches
the directory where you install the files, then
install the helper using regedit.



__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

PdpHelper.zip
Description: PdpHelper.zip


Re: [iText-questions] pdf print?!?

2004-01-09 Thread jdc32
aha,.. can you tell me any company?

> Of course you do - since if you don't transfer the file, the
> browser can't display anything.
>
> And if the user has their browser configured to NOT do
> in-browser viewing OR if they are using Mac OS X (which doesn't even
> offer in-browser viewing) then they will ALWAYS have the PDF
> downloaded.
>

the file does not have to be displayed anytime, i need only a printout
function. so i wont transfer the normal pdf file


- Original Message - 
From: "Leonard Rosenthol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, January 09, 2004 6:21 PM
Subject: Re: [iText-questions] pdf print?!?


> At 5:54 PM +0100 1/9/04, <[EMAIL PROTECTED]> wrote:
> >i know fileopen, but it is too complex for normal users. i use fileopen
now,
> >but my target usergroup are over 50 years old and every 3 user had a
problem
> >with fileopen,...
>
> What about Adobe's Content Server?   Then the user doesn't
> have to add anything into their system, since it's all built into
> Acrobat.
>
> There are even companies that will do all the "security" on
> the PDF and even host it for you...
>
>
> Leonard
> -- 
> --
-
> Leonard Rosenthol

> Chief Technical Officer  
> PDF Sages, Inc.  215-629-3700 (voice)
>   215-629-0789 (fax)
>
>
> ---
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>




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


Re: [iText-questions] Help required in streaming effect in PDF

2004-01-09 Thread Ravi
Title: RE: [iText-questions] Help required in streaming effect in PDF



Hi Ben,
 
Are you talking about byte serving of the PDF? I am 
not sure about linearization etc. However I think it is possible to Byte Serve a 
PDF from a java servlet.
 
Here is a link to about the difference between 
Linearization and Byte Serving.
 
http://www.searchpdf.com/id419.htm
 
In your case I assume that 'streaming' means 'byte 
serving'. If you want to try byte serving, try modifying ur servlet to handle 
partial response.. and the request has to be for partial content 
too.
 
Thanks,
Ravi
 

  - Original Message - 
  From: 
  Paulo 
  Soares 
  To: Abraham, Ben ; [EMAIL PROTECTED] 
  
  Sent: Friday, January 09, 2004 3:20 
  AM
  Subject: RE: [iText-questions] Help 
  required in streaming effect in PDF
  
  It can't be 
  done with the pdf format. Even linearization (that iText doesn't support) 
  requires all the document to be available before starting. Pdf can't be 
  streamed.
  Best 
  Regards,
  Paulo 
  Soares
  
-Original 
Message-
From:   [EMAIL PROTECTED] 
[SMTP:[EMAIL PROTECTED] On Behalf Of Abraham, 
Ben
Sent:   Friday, January 
09, 2004 6:02
To: [EMAIL PROTECTED]
Subject:    [iText-questions] Help required in streaming effect in 
PDF
Hi,
Can 
someone explain me how to do a streaming effect while 
generating PDF.
I am 
generating a PDF which is around 500 pages and this PDF won't come come up 
till it gets all the required data.So the user has to wait around 10 minutes 
to see the PDF.Can someone please suggest me a better 
method.
 
Thanks,
Ben

Confidential: This 
electronic message and all contents contain information from Syntel, Inc. 
which may be privileged, confidential or otherwise protected from 
disclosure. The information is intended to be for the addressee only. If you 
are not the addressee, any disclosure, copy, distribution or use of the 
contents of this message is prohibited. If you have received this electronic 
message in error, please notify the sender immediately and destroy the 
original message and all 
copies.


Re: [iText-questions] pdf print?!?

2004-01-09 Thread Leonard Rosenthol
At 6:05 PM +0100 1/9/04, <[EMAIL PROTECTED]> wrote:
sure, but i dont wont to transfer any pdf directly to the user.
	Of course you do - since if you don't transfer the file, the 
browser can't display anything.

	And if the user has their browser configured to NOT do 
in-browser viewing OR if they are using Mac OS X (which doesn't even 
offer in-browser viewing) then they will ALWAYS have the PDF 
downloaded.

Leonard
--
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-629-3700 (voice)
 215-629-0789 (fax)
---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] pdf print?!?

2004-01-09 Thread Leonard Rosenthol
At 5:54 PM +0100 1/9/04, <[EMAIL PROTECTED]> wrote:
i know fileopen, but it is too complex for normal users. i use fileopen now,
but my target usergroup are over 50 years old and every 3 user had a problem
with fileopen,...
	What about Adobe's Content Server?   Then the user doesn't 
have to add anything into their system, since it's all built into 
Acrobat.

	There are even companies that will do all the "security" on 
the PDF and even host it for you...

Leonard
--
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-629-3700 (voice)
 215-629-0789 (fax)
---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] pdf print?!?

2004-01-09 Thread Matt Benson
Then you don't have any problem.  When you said "in
the background" I thought you meant you wanted the
user to see the PDF.  Otherwise you just have to
figure out:

a) how to tell the servlet where to print the PDF, and
b) how to print the PDF from any Java process.

-Matt


--- [EMAIL PROTECTED] wrote:
> sure, but i dont wont to transfer any pdf directly
> to the user.
> i want to print the pdf (stored on the server) over
> the browser
> (javaservlet) directly to the users printer, if he
> push a print button at
> the servlet... :)
> 
> 
> - Original Message - 
> From: "Matt Benson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Friday, January 09, 2004 5:54 PM
> Subject: Re: [iText-questions] pdf print?!?
> 
> 
> > As has been beaten to death on this forum, once
> you
> > serve the PDF to a user, due to the nature of PDF,
> you
> > can't control things like whether they copy it or
> > print it.  You will have to be satisfied with a
> > summary of the PDF or something similar on the
> client
> > side if you want to stop the user from doing
> something
> > with it...
> >
> > -Matt
> >
> > --- [EMAIL PROTECTED] wrote:
> > > :) yes, the document shoult printed at the
> webusers
> > > printer!
> > >
> > > my problem is, that i need a solution to serve
> > > existing pdf files to
> > > webusers. the webuser is allowed to print the
> pdf
> > > file only one time!!! i
> > > want a small servlet that open a pdf-file in the
> > > background and shows only a
> > > button ("Now Print" or somethink else). i cant
> use
> > > the command.exe every
> > > user installed the acrobat an another place...
> so i
> > > need another solution.
> > > im not good in java (i like
> perl,assembler,...and so
> > > on).
> > >
> > > can anybody help me,... is the javaservlet
> solution
> > > possible?
> > >
> > > okay, sure javascript, but the user can change
> the
> > > printouts from one to
> > > whatever,. but any user are allowed only one
> > > printout!
> > >
> > > thanks
> > >
> > > jonas
> > >
> > > - Original Message - 
> > > From: "Matt Benson" <[EMAIL PROTECTED]>
> > > To: "Wendy Smoak" <[EMAIL PROTECTED]>;
> > > <[EMAIL PROTECTED]>
> > > Sent: Friday, January 09, 2004 4:29 PM
> > > Subject: Re: [iText-questions] pdf print?!?
> > >
> > >
> > > > But you just want it to print to the user's
> > > default
> > > > (Windows) printer?  You could do it, for
> example,
> > > if
> > > > you sent the printer path to the servlet,
> assuming
> > > the
> > > > servlet runs on Windows OR you have already
> set up
> > > > your Unix server to be able to print to each
> of
> > > > however many Windows printers may be
> candidates
> > > for
> > > > this.  This discussion could get really long
> > > though so
> > > > I'll leave it at that for now.
> > > >
> > > > -Matt
> > > >
> > > > --- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > > > > RE: [iText-questions] pdf print?!?From:
> Paulo
> > > Soares
> > > > > > See
> > > > >
> http://www.lowagie.com/iText/faq.html#printing.
> > > > > > You can also use ghostscript.
> > > > >
> > > > > But the OP wants to "print it one time with
> a
> > > java
> > > > > servlet".  The code above
> > > > > will lead to a pile of paper in the server
> room,
> > > > > while I suspect that the OP
> > > > > wants it to print on the client side when
> > > someone
> > > > > visits a URL that's mapped
> > > > > to his Servlet.
> > > > >
> > > > > I've used JavaScript to pop up a printer
> dialog
> > > on a
> > > > > web page, but AFAIK you
> > > > > can't [easily, without annoying users,]
> force
> > > > > anything to print from a
> > > > > Servlet.
> > > > >
> > > > > -- 
> > > > > Wendy Smoak
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
---
> > > > > This SF.net email is sponsored by: Perforce
> > > > > Software.
> > > > > Perforce is the Fast Software Configuration
> > > > > Management System offering
> > > > > advanced branching capabilities and atomic
> > > changes
> > > > > on 50+ platforms.
> > > > > Free Eval!
> > > > >
> http://www.perforce.com/perforce/loadprog.html
> > > > >
> ___
> > > > > iText-questions mailing list
> > > > > [EMAIL PROTECTED]
> > > > >
> > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> > > >
> > > >
> > > > __
> > > > Do you Yahoo!?
> > > > Yahoo! Hotjobs: Enter the "Signing Bonus"
> > > Sweepstakes
> > > >
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> > > >
> > > >
> > > >
> > >
> >
>
---
> > > > This SF.net email is sponsored by: Perforce
> > > Software.
> > > > Perforce is the Fast Software Configuration
> > > Management System offering
> > > > advanced branching capabilities and atomic
> changes
> > > on 50+ platforms.
> > > > Free Eval!
> > > http://www.perforce.com/perforce/loadprog.html
> > > >
> ___

Re: [iText-questions] pdf print?!?

2004-01-09 Thread jdc32
sure, but i dont wont to transfer any pdf directly to the user.
i want to print the pdf (stored on the server) over the browser
(javaservlet) directly to the users printer, if he push a print button at
the servlet... :)


- Original Message - 
From: "Matt Benson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, January 09, 2004 5:54 PM
Subject: Re: [iText-questions] pdf print?!?


> As has been beaten to death on this forum, once you
> serve the PDF to a user, due to the nature of PDF, you
> can't control things like whether they copy it or
> print it.  You will have to be satisfied with a
> summary of the PDF or something similar on the client
> side if you want to stop the user from doing something
> with it...
>
> -Matt
>
> --- [EMAIL PROTECTED] wrote:
> > :) yes, the document shoult printed at the webusers
> > printer!
> >
> > my problem is, that i need a solution to serve
> > existing pdf files to
> > webusers. the webuser is allowed to print the pdf
> > file only one time!!! i
> > want a small servlet that open a pdf-file in the
> > background and shows only a
> > button ("Now Print" or somethink else). i cant use
> > the command.exe every
> > user installed the acrobat an another place... so i
> > need another solution.
> > im not good in java (i like perl,assembler,...and so
> > on).
> >
> > can anybody help me,... is the javaservlet solution
> > possible?
> >
> > okay, sure javascript, but the user can change the
> > printouts from one to
> > whatever,. but any user are allowed only one
> > printout!
> >
> > thanks
> >
> > jonas
> >
> > - Original Message - 
> > From: "Matt Benson" <[EMAIL PROTECTED]>
> > To: "Wendy Smoak" <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Friday, January 09, 2004 4:29 PM
> > Subject: Re: [iText-questions] pdf print?!?
> >
> >
> > > But you just want it to print to the user's
> > default
> > > (Windows) printer?  You could do it, for example,
> > if
> > > you sent the printer path to the servlet, assuming
> > the
> > > servlet runs on Windows OR you have already set up
> > > your Unix server to be able to print to each of
> > > however many Windows printers may be candidates
> > for
> > > this.  This discussion could get really long
> > though so
> > > I'll leave it at that for now.
> > >
> > > -Matt
> > >
> > > --- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > > > RE: [iText-questions] pdf print?!?From: Paulo
> > Soares
> > > > > See
> > > > http://www.lowagie.com/iText/faq.html#printing.
> > > > > You can also use ghostscript.
> > > >
> > > > But the OP wants to "print it one time with a
> > java
> > > > servlet".  The code above
> > > > will lead to a pile of paper in the server room,
> > > > while I suspect that the OP
> > > > wants it to print on the client side when
> > someone
> > > > visits a URL that's mapped
> > > > to his Servlet.
> > > >
> > > > I've used JavaScript to pop up a printer dialog
> > on a
> > > > web page, but AFAIK you
> > > > can't [easily, without annoying users,] force
> > > > anything to print from a
> > > > Servlet.
> > > >
> > > > -- 
> > > > Wendy Smoak
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ---
> > > > This SF.net email is sponsored by: Perforce
> > > > Software.
> > > > Perforce is the Fast Software Configuration
> > > > Management System offering
> > > > advanced branching capabilities and atomic
> > changes
> > > > on 50+ platforms.
> > > > Free Eval!
> > > > http://www.perforce.com/perforce/loadprog.html
> > > > ___
> > > > iText-questions mailing list
> > > > [EMAIL PROTECTED]
> > > >
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > Yahoo! Hotjobs: Enter the "Signing Bonus"
> > Sweepstakes
> > > http://hotjobs.sweepstakes.yahoo.com/signingbonus
> > >
> > >
> > >
> >
> ---
> > > This SF.net email is sponsored by: Perforce
> > Software.
> > > Perforce is the Fast Software Configuration
> > Management System offering
> > > advanced branching capabilities and atomic changes
> > on 50+ platforms.
> > > Free Eval!
> > http://www.perforce.com/perforce/loadprog.html
> > > ___
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> > >
> >
> >
> >
> >
> >
> ---
> > This SF.net email is sponsored by: Perforce
> > Software.
> > Perforce is the Fast Software Configuration
> > Management System offering
> > advanced branching capabilities and atomic changes
> > on 50+ platforms.
> > Free Eval!
> > http://www.perforce.com/perforce/loadprog.html
> > ___
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> >
> h

Re: [iText-questions] pdf print?!?

2004-01-09 Thread jdc32
i know fileopen, but it is too complex for normal users. i use fileopen now,
but my target usergroup are over 50 years old and every 3 user had a problem
with fileopen,...

-you need admin rights as user
-if you have acrobat 6, fileopen is buggy
-the people forget, where the downloaded file was saved
-. :)

so i search for another solution



- Original Message - 
From: "Leonard Rosenthol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, January 09, 2004 5:41 PM
Subject: Re: [iText-questions] pdf print?!?


> At 5:32 PM +0100 1/9/04, <[EMAIL PROTECTED]> wrote:
> >my problem is, that i need a solution to serve existing pdf files to
> >webusers. the webuser is allowed to print the pdf file only one time!!!
>
> So what you REALLY want isn't forcing the user to print -
> it's Digital Rights Management.  You need to control what the user
> can (and can not) do with these PDFs.
>
> IN that case, check out solutions such as FileOpen
> (http://www.fileopen.com).
>
>
> Leonard
> -- 
> --
-
> Leonard Rosenthol

> Chief Technical Officer  
> PDF Sages, Inc.  215-629-3700 (voice)
>   215-629-0789 (fax)
>
>




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


Re: [iText-questions] pdf print?!?

2004-01-09 Thread Matt Benson
As has been beaten to death on this forum, once you
serve the PDF to a user, due to the nature of PDF, you
can't control things like whether they copy it or
print it.  You will have to be satisfied with a
summary of the PDF or something similar on the client
side if you want to stop the user from doing something
with it...

-Matt

--- [EMAIL PROTECTED] wrote:
> :) yes, the document shoult printed at the webusers
> printer!
> 
> my problem is, that i need a solution to serve
> existing pdf files to
> webusers. the webuser is allowed to print the pdf
> file only one time!!! i
> want a small servlet that open a pdf-file in the
> background and shows only a
> button ("Now Print" or somethink else). i cant use
> the command.exe every
> user installed the acrobat an another place... so i
> need another solution.
> im not good in java (i like perl,assembler,...and so
> on).
> 
> can anybody help me,... is the javaservlet solution
> possible?
> 
> okay, sure javascript, but the user can change the
> printouts from one to
> whatever,. but any user are allowed only one
> printout!
> 
> thanks
> 
> jonas
> 
> - Original Message - 
> From: "Matt Benson" <[EMAIL PROTECTED]>
> To: "Wendy Smoak" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Friday, January 09, 2004 4:29 PM
> Subject: Re: [iText-questions] pdf print?!?
> 
> 
> > But you just want it to print to the user's
> default
> > (Windows) printer?  You could do it, for example,
> if
> > you sent the printer path to the servlet, assuming
> the
> > servlet runs on Windows OR you have already set up
> > your Unix server to be able to print to each of
> > however many Windows printers may be candidates
> for
> > this.  This discussion could get really long
> though so
> > I'll leave it at that for now.
> >
> > -Matt
> >
> > --- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > > RE: [iText-questions] pdf print?!?From: Paulo
> Soares
> > > > See
> > > http://www.lowagie.com/iText/faq.html#printing.
> > > > You can also use ghostscript.
> > >
> > > But the OP wants to "print it one time with a
> java
> > > servlet".  The code above
> > > will lead to a pile of paper in the server room,
> > > while I suspect that the OP
> > > wants it to print on the client side when
> someone
> > > visits a URL that's mapped
> > > to his Servlet.
> > >
> > > I've used JavaScript to pop up a printer dialog
> on a
> > > web page, but AFAIK you
> > > can't [easily, without annoying users,] force
> > > anything to print from a
> > > Servlet.
> > >
> > > -- 
> > > Wendy Smoak
> > >
> > >
> > >
> > >
> >
>
---
> > > This SF.net email is sponsored by: Perforce
> > > Software.
> > > Perforce is the Fast Software Configuration
> > > Management System offering
> > > advanced branching capabilities and atomic
> changes
> > > on 50+ platforms.
> > > Free Eval!
> > > http://www.perforce.com/perforce/loadprog.html
> > > ___
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> > http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
> >
> >
>
---
> > This SF.net email is sponsored by: Perforce
> Software.
> > Perforce is the Fast Software Configuration
> Management System offering
> > advanced branching capabilities and atomic changes
> on 50+ platforms.
> > Free Eval!
> http://www.perforce.com/perforce/loadprog.html
> > ___
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> >
> 
> 
> 
> 
>
---
> This SF.net email is sponsored by: Perforce
> Software.
> Perforce is the Fast Software Configuration
> Management System offering
> advanced branching capabilities and atomic changes
> on 50+ platforms.
> Free Eval!
> http://www.perforce.com/perforce/loadprog.html
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


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


RE: [iText-questions] tables

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






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


Best Regards,

Paulo Soares


-Original Message-

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

Sent:   Friday, January 09, 2004 13:57

To: [EMAIL PROTECTED]

Subject:    [iText-questions] tables


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

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

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

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

the subtables in each column.


hope this makes sense


thanks,

seth


==

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

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

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

retains and monitors electronic communications sent through its network.

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

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

==




---

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

Perforce is the Fast Software Configuration Management System offering

advanced branching capabilities and atomic changes on 50+ platforms.

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

___

iText-questions mailing list

[EMAIL PROTECTED]

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





RE: [iText-questions] pdf print?!?

2004-01-09 Thread Paulo Soares
Title: RE: [iText-questions] pdf print?!?






You can't do that without going for DRM solutions like fileopen or authentica.


Best Regards,

Paulo Soares


-Original Message-

From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]

Sent:   Friday, January 09, 2004 16:33

To: [EMAIL PROTECTED]

Subject:    Re: [iText-questions] pdf print?!?


:) yes, the document shoult printed at the webusers printer!


my problem is, that i need a solution to serve existing pdf files to

webusers. the webuser is allowed to print the pdf file only one time!!! i

want a small servlet that open a pdf-file in the background and shows only a

button ("Now Print" or somethink else). i cant use the command.exe every

user installed the acrobat an another place... so i need another solution.

im not good in java (i like perl,assembler,...and so on).


can anybody help me,... is the javaservlet solution possible?


okay, sure _javascript_, but the user can change the printouts from one to

whatever,. but any user are allowed only one printout!


thanks


jonas


- Original Message - 

From: "Matt Benson" <[EMAIL PROTECTED]>

To: "Wendy Smoak" <[EMAIL PROTECTED]>;

<[EMAIL PROTECTED]>

Sent: Friday, January 09, 2004 4:29 PM

Subject: Re: [iText-questions] pdf print?!?



> But you just want it to print to the user's default

> (Windows) printer?  You could do it, for example, if

> you sent the printer path to the servlet, assuming the

> servlet runs on Windows OR you have already set up

> your Unix server to be able to print to each of

> however many Windows printers may be candidates for

> this.  This discussion could get really long though so

> I'll leave it at that for now.

>

> -Matt

>

> --- Wendy Smoak <[EMAIL PROTECTED]> wrote:

> > RE: [iText-questions] pdf print?!?From: Paulo Soares

> > > See

> > http://www.lowagie.com/iText/faq.html#printing.

> > > You can also use ghostscript.

> >

> > But the OP wants to "print it one time with a java

> > servlet".  The code above

> > will lead to a pile of paper in the server room,

> > while I suspect that the OP

> > wants it to print on the client side when someone

> > visits a URL that's mapped

> > to his Servlet.

> >

> > I've used _javascript_ to pop up a printer dialog on a

> > web page, but AFAIK you

> > can't [easily, without annoying users,] force

> > anything to print from a

> > Servlet.

> >

> > -- 

> > Wendy Smoak

> >

> >

> >

> >

> ---

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

> > Software.

> > Perforce is the Fast Software Configuration

> > Management System offering

> > advanced branching capabilities and atomic changes

> > on 50+ platforms.

> > Free Eval!

> > http://www.perforce.com/perforce/loadprog.html

> > ___

> > iText-questions mailing list

> > [EMAIL PROTECTED]

> >

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

>

>

> __

> Do you Yahoo!?

> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

> http://hotjobs.sweepstakes.yahoo.com/signingbonus

>

>

> ---

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

> Perforce is the Fast Software Configuration Management System offering

> advanced branching capabilities and atomic changes on 50+ platforms.

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

> ___

> iText-questions mailing list

> [EMAIL PROTECTED]

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

>

>





---

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

Perforce is the Fast Software Configuration Management System offering

advanced branching capabilities and atomic changes on 50+ platforms.

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

___

iText-questions mailing list

[EMAIL PROTECTED]

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





Re: [iText-questions] pdf print?!?

2004-01-09 Thread Leonard Rosenthol
At 5:32 PM +0100 1/9/04, <[EMAIL PROTECTED]> wrote:
my problem is, that i need a solution to serve existing pdf files to
webusers. the webuser is allowed to print the pdf file only one time!!!
	So what you REALLY want isn't forcing the user to print - 
it's Digital Rights Management.  You need to control what the user 
can (and can not) do with these PDFs.

	IN that case, check out solutions such as FileOpen 
(http://www.fileopen.com).

Leonard
--
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-629-3700 (voice)
 215-629-0789 (fax)
---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] pdf print?!?

2004-01-09 Thread jdc32
:) yes, the document shoult printed at the webusers printer!

my problem is, that i need a solution to serve existing pdf files to
webusers. the webuser is allowed to print the pdf file only one time!!! i
want a small servlet that open a pdf-file in the background and shows only a
button ("Now Print" or somethink else). i cant use the command.exe every
user installed the acrobat an another place... so i need another solution.
im not good in java (i like perl,assembler,...and so on).

can anybody help me,... is the javaservlet solution possible?

okay, sure javascript, but the user can change the printouts from one to
whatever,. but any user are allowed only one printout!

thanks

jonas

- Original Message - 
From: "Matt Benson" <[EMAIL PROTECTED]>
To: "Wendy Smoak" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, January 09, 2004 4:29 PM
Subject: Re: [iText-questions] pdf print?!?


> But you just want it to print to the user's default
> (Windows) printer?  You could do it, for example, if
> you sent the printer path to the servlet, assuming the
> servlet runs on Windows OR you have already set up
> your Unix server to be able to print to each of
> however many Windows printers may be candidates for
> this.  This discussion could get really long though so
> I'll leave it at that for now.
>
> -Matt
>
> --- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > RE: [iText-questions] pdf print?!?From: Paulo Soares
> > > See
> > http://www.lowagie.com/iText/faq.html#printing.
> > > You can also use ghostscript.
> >
> > But the OP wants to "print it one time with a java
> > servlet".  The code above
> > will lead to a pile of paper in the server room,
> > while I suspect that the OP
> > wants it to print on the client side when someone
> > visits a URL that's mapped
> > to his Servlet.
> >
> > I've used JavaScript to pop up a printer dialog on a
> > web page, but AFAIK you
> > can't [easily, without annoying users,] force
> > anything to print from a
> > Servlet.
> >
> > -- 
> > Wendy Smoak
> >
> >
> >
> >
> ---
> > This SF.net email is sponsored by: Perforce
> > Software.
> > Perforce is the Fast Software Configuration
> > Management System offering
> > advanced branching capabilities and atomic changes
> > on 50+ platforms.
> > Free Eval!
> > http://www.perforce.com/perforce/loadprog.html
> > ___
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
> __
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
>
>
> ---
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>




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


Re: [iText-questions] pdf print?!?

2004-01-09 Thread chicks
Many ways to do this.  The simplest is to add
JavaScript to the PDF that will print to the default
printer, or will open a print dialog:


// Check DisplayMethod parm
String displayMethod =
request.getParameter("DisplayMethod");
if (displayMethod.equals("printSilent"))
{
// Add javascript to print to default printer
doc.addJavaScript("this.print({bUI: false, bSilent:
false});\r");
}
else if (displayMethod.equals("printDialog"))
{
// Add javascript to pop up print dialog
doc.addJavaScript("this.print({bUI: true, bSilent:
false});\r");
}

// Close our document
doc.close();

// Tell the requestor what's coming
response.setContentType("application/pdf");

/* CRITICAL 
 * IE may not open embedded Acrobat Reader 
 * without being told the length of the datastream.
 * M$ bug -- still not fixed in IE6.x

***/
response.setContentLength(ba.size());

// Send our filled PDF document back to requestor
ServletOutputStream out =
response.getOutputStream();
ba.writeTo(out);
out.flush();



public void addJavaScript(String jScript) {

try
{
PdfAction jAction = PdfAction.javaScript(jScript,
writer);
writer.addJavaScript(jAction);
}
catch (Exception e)
{
System.err.println(e);
}
}



__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


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


[iText-questions] CFP - Software Engineering: Concepts, Issues and Applications

2004-01-09 Thread Heitor Augustus Xavier Costa
CALL FOR PAPER
The 2004 International Multiconference in Computer
Science and Computer Engineering Technical Session
- Software Engineering: Concepts, Issues and Applications
Monte Carlo Resort, Las Vegas, Nevada, USA, June 21-24, 2004
http://www.world-academy-of-science.org
Dear Colleagues:
You are invited to submit a draft paper for Software
Engineering: Concepts, Issues and Applications
(Technical Session) of International Conference on
Software Engineering Research and Practice (SERP 2003).
Accepted papers will be published in the respective
conference proceedings.
Co-Chairs seek high quality papers describing new
research results, experience reports and case studies
related to all topics related to development process
of Software Engineering. These submissions can be
from both industry and academia. These include, but
are not limited to, Requirements Engineering, Software
Modeling, Software Architecture, Programming, and
Software Maintenance. Papers of software engineering
in area of Distributed Systems, ODP Systems and
Software Quality can also be submitted.
HISTORY:
The International Multiconference in Computer Science
and Computer Engineering is a major annual international
research event.  It assembles a spectrum of affiliated
research conferences, workshops, and symposiums into a
coordinated research meeting held in a common place at
a common time.  This model facilitates communication among
researchers in different fields of computer science and
computer engineering.  The last Multiconference attracted
over 1,650 computer science and Engineering researchers
from 78 countries.  It is anticipated that The 2004 Int'l
Multiconference will attract about 2000 participants.
The 2004 event is composed of 18 (planned) major
conferences - attendees will have full access to all 18
conferences' sessions & tracks.
Each conference will have its own proceedings.  All
conference proceedings/books are considered for inclusion
in major database indexes that are designed to provide
easy access to the current literature of the sciences
(database examples: ISI Thomson Scientific, IEE INSPEC,
DBLP, ...).
SUBMISSION OF PAPERS:
Prospective authors are invited to submit their draft paper
(about 5 pages - single space, font size of 12) to Heitor A. X. Costa
([EMAIL PROTECTED]) or Jorge L. R. Becerra ([EMAIL PROTECTED])
by the due date. All submissions must be in English.
Submissions should be made electronically in PDF (preferred)
or PostScript format. Only E-mail submissions are acceptable.
The length of the Camera-Ready papers (if accepted) will be
limited to 7 (IEEE style) pages. Papers must not have been
previously published or currently submitted for publication
elsewhere. The first page of the draft paper should include:
title of the paper, name, affiliation, postal address, E-mail address,
telephone number, & Fax number for each author. The first page
should also include the name of the author who will be presenting
the paper (if accepted) & a maximum of 5 keywords.
EVALUATION PROCESS:
Papers will be evaluated for originality, significance,
clarity, and soundness.  Each paper will be refereed by
two researchers in the topical area.  The Camera-Ready
papers will be reviewed by one person.
PUBLICATION:
The conference proceedings will be published by CSREA
Press (ISBN) in hardcopy.  The proceedings will be
available at the conference.  Some accepted papers will
also be considered for journal publication (soon after
the conference).  All conference proceedings published
by CSREA Press are considered for inclusion in major
database indexes that are designed to provide easy
access to the current literature of the sciences
(database examples: ISI Thomson Scientific, IEE INSPEC,
DBLP, ...).
ORGANIZERS/SPONSORS:
A number of university faculty members and their staff
in cooperation with the Monte Carlo Resort (Conference
Division) will be organizing the conference.
Technical co-sponsors include: World Academy of
Science (non-profit organization - pending); Computer
Science Research, Education, & Applications Press
(CSREA: USA Federal EIN # 58-2171953); together with
research centers, international associations,
international research groups, and developers of
high-performance machines and systems.  The complete
list of co-sponsors will be available at a later time.
(Previous conferences' sponsors included: CSREA,
the National Supercomputing Center for Energy and the
Environment - DOE, The International Association for
Mathematics and Computers in Simulation, The
International Technology Institute (ITI), The Java
High Performance Computing research group, World
Scientific and Engineering Society, Sundance Digital
Signal Processing Inc., Convex, Hewlett-Packard Inc.,
a number of publishers of books and journals, chapters
of computer associations from various countries, ...)
CONFERENCES LOCATION:
The conferences will be held in the Monte Carlo Resort
hotel, Las Vegas, Nevada, USA (with any overflows at other
near-by hotels).  

Re: [iText-questions] pdf print?!?

2004-01-09 Thread Matt Benson
But you just want it to print to the user's default
(Windows) printer?  You could do it, for example, if
you sent the printer path to the servlet, assuming the
servlet runs on Windows OR you have already set up
your Unix server to be able to print to each of
however many Windows printers may be candidates for
this.  This discussion could get really long though so
I'll leave it at that for now.

-Matt

--- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> RE: [iText-questions] pdf print?!?From: Paulo Soares
> > See
> http://www.lowagie.com/iText/faq.html#printing.
> > You can also use ghostscript.
> 
> But the OP wants to "print it one time with a java
> servlet".  The code above
> will lead to a pile of paper in the server room,
> while I suspect that the OP
> wants it to print on the client side when someone
> visits a URL that's mapped
> to his Servlet.
> 
> I've used JavaScript to pop up a printer dialog on a
> web page, but AFAIK you
> can't [easily, without annoying users,] force
> anything to print from a
> Servlet.
> 
> -- 
> Wendy Smoak
> 
> 
> 
>
---
> This SF.net email is sponsored by: Perforce
> Software.
> Perforce is the Fast Software Configuration
> Management System offering
> advanced branching capabilities and atomic changes
> on 50+ platforms.
> Free Eval!
> http://www.perforce.com/perforce/loadprog.html
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


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


[iText-questions] tables

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

hope this makes sense

thanks,
seth

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



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


Re: [iText-questions] pdf print?!?

2004-01-09 Thread Wendy Smoak
RE: [iText-questions] pdf print?!?From: Paulo Soares
> See http://www.lowagie.com/iText/faq.html#printing.
> You can also use ghostscript.

But the OP wants to "print it one time with a java servlet".  The code above
will lead to a pile of paper in the server room, while I suspect that the OP
wants it to print on the client side when someone visits a URL that's mapped
to his Servlet.

I've used JavaScript to pop up a printer dialog on a web page, but AFAIK you
can't [easily, without annoying users,] force anything to print from a
Servlet.

-- 
Wendy Smoak



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


[iText-questions] tables

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

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


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

hope this makes sense

thanks,
seth

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



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


Re: [iText-questions] iText with Rich Design

2004-01-09 Thread Matt Benson
See the Advanced iText portions of the tutorial, as
well as the rest of it, really... :)

some important classes for colors & images: 
PdfContentByte, PdfTemplate, Image, etc...

some important classes for formatting: 
PdfContentByte, ColumnText, Table, PdfPTable...

-Matt

--- Spectrum WebDesign <[EMAIL PROTECTED]> wrote:
> Hi
> 
> i'm a ColdFusion Developer (iTexT newbie user). How
> to build rich files with images colors and text
> formatting?
> 
> Do you have any tips, guides or tutorial?
> 
> Thanx in advance
> -- 
> ___
> Get your free email from http://www.mail.com
> 
> 
> 
>
---
> This SF.net email is sponsored by: Perforce
> Software.
> Perforce is the Fast Software Configuration
> Management System offering
> advanced branching capabilities and atomic changes
> on 50+ platforms.
> Free Eval!
> http://www.perforce.com/perforce/loadprog.html
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


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


[iText-questions] iText with Rich Design

2004-01-09 Thread Spectrum WebDesign
Hi

i'm a ColdFusion Developer (iTexT newbie user). How to build rich files with images 
colors and text formatting?

Do you have any tips, guides or tutorial?

Thanx in advance
-- 
___
Get your free email from http://www.mail.com



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


RE: [iText-questions] pdf print?!?

2004-01-09 Thread Paulo Soares
Title: RE: [iText-questions] pdf print?!?






See http://www.lowagie.com/iText/faq.html#printing.

You can also use ghostscript.


Best Regards,

Paulo Soares


-Original Message-

From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]

Sent:   Friday, January 09, 2004 13:02

To: [EMAIL PROTECTED]

Subject:    [iText-questions] pdf print?!?


hello,..


please help me,... is it possible to open a existing pdf file and print it

one time with a java servlet it is really important!


thanks so far


jonas





---

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

Perforce is the Fast Software Configuration Management System offering

advanced branching capabilities and atomic changes on 50+ platforms.

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

___

iText-questions mailing list

[EMAIL PROTECTED]

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





[iText-questions] pdf print?!?

2004-01-09 Thread jdc32
hello,..

please help me,... is it possible to open a existing pdf file and print it
one time with a java servlet it is really important!

thanks so far

jonas




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


RE: [iText-questions] Help required in streaming effect in PDF

2004-01-09 Thread Paulo Soares
Title: RE: [iText-questions] Help required in streaming effect in PDF






It can't be done with the pdf format. Even linearization (that iText doesn't support) requires all the document to be available before starting. Pdf can't be streamed.

Best Regards,

Paulo Soares

-Original Message-

From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Abraham, Ben

Sent:   Friday, January 09, 2004 6:02

To: [EMAIL PROTECTED]

Subject:    [iText-questions] Help required in streaming effect in PDF

Hi,

Can someone explain me how to do a streaming effect while generating PDF.

I am generating a PDF which is around 500 pages and this PDF won't come come up till it gets all the required data.So the user has to wait around 10 minutes to see the PDF.Can someone please suggest me a better method.

 

Thanks,

Ben




Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.




[iText-questions] RE: stamped.java example /Merging PDF files

2004-01-09 Thread Paulo Soares
Title: RE: stamped.java example /Merging PDF files






Use PdfReader.getAcroFields() or PdfStamper.getAcroFields(). The positions are in the merged ArrayList in the dictionary key /Rect key. As this is a common request I'll include a method to facilitate the retrieval of the positions and the pages where they are.

If you have a pdf with forms that don't show up in iText you can send it to me privately for inspection.

Best Rgards,

Paulo Soares

-Original Message-

From:   tom smith [SMTP:[EMAIL PROTECTED]

Sent:   Friday, January 09, 2004 1:00

To: Paulo Soares; [EMAIL PROTECTED]

Cc: [EMAIL PROTECTED]

Subject:    RE: stamped.java example /Merging PDF files

Well, that's a great question. Just by looking at the PDF file, it contains the forms, but when I use the getAcroForm() method of PdfReader, it returns "null", that means it doesn't contain the forms, right? How do I know a PDF file has field forms? To use the getAcroForm() and see what returns? or any other ways to determine?

In this case, I can't use getAcroForm() to get field forms, how can I find the precise positions for those "check boxes" and "Text fields" to fill out or stamp on them?

Can't thank you enough for your help!

Tom



>From: "Paulo Soares" 

>To: "tom smith" , 

>CC: 

>Subject: RE: stamped.java example /Merging PDF files 

>Date: Thu, 8 Jan 2004 12:13:03 - 

> 

> 

> 

> > -Original Message- 

> > From: tom smith [SMTP:[EMAIL PROTECTED] 

> > Sent: Wednesday, January 07, 2004 18:49 

> > To: Paulo Soares; [EMAIL PROTECTED] 

> > Cc: [EMAIL PROTECTED] 

> > Subject: stamped.java example /Merging PDF files 

> > 

> > I used the getUnderContent(pageNum) of PdfStamper, and it worked on the ones I had problem with text fields. But still some of the check boxes don't work, and I couldn't stamp on top of the check boxes. Is that because of the crop area? How can I get round it? 

> > 

> You can't put content over a field annotation with iText. The way to do it is to read the pdf, flatten the fields, read it again (with the fields flattened) and stamp over it. 

> 

> > Another question is when I try to read an exist pdf file which has forms in the end of the file. But the DumpFields example says "This document has no fields." Does anyone know why this is and how to get around this? 

> > 

> Does it really have field forms? 

> 

> Best Regards, 

> Paulo Soares 

> 

> > Thank you very much for any help! 

> > 

> > Tom 

> > 

> > 

> > >From: "Paulo Soares" 

> > >To: "tom smith" , 

> > >CC: "Gao, Ping" 

> > >Subject: RE: [iText-questions] stamped.java example /Merging PDF files 

> > >Date: Tue, 6 Jan 2004 10:56:33 - 

> > > 

> > >It works but there's more than meets the eye. You may have a page with a crop area and everything placed there will not show. You may also have a white area and trying to stamp underneath it won't show anything; stamp over the page in this case. 

> > > 

> > >Best Regards, 

> > >Paulo Soares 

> > > 

> > > > -Original Message- 

> > > > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of tom smith 

> > > > Sent: Tuesday, January 06, 2004 3:34 

> > > > To: [EMAIL PROTECTED] 

> > > > Subject: [iText-questions] stamped.java example /Merging PDF files 

> > > > 

> > > > Hi Everyone, 

> > > > 

> > > > I just started playing around with iText today, and used the setTextMatrix(int, int) and showText(String) methods to Stamp on exist pdf file as Paulo Soares's example showed, mostly it works fine, but there is a problem when I tried to stamp "Strings" to certain areas, somehow it doesn't work. Just wondering if anyone else had this problem. Please let me know how I can work around this problem if you have a solution! 

> > > > 

> > > > Thanks, 

> > > > 

> > > > Tom 

> > > > 

> > > > 

> > > >   _ 

> > > > 

> > > > Tired of slow downloads? Compare online deals from your local high-speed providers now. 

> > > > --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions 

> > 

> >   _ 

> > 

> > Make your home warm and cozy this winter with tips from MSN House & Home.   

  _ 


Working moms: Find helpful tips here on managing kids, home, work — and yourself.  




[iText-questions] RE: stamped.java example /Merging PDF files

2004-01-09 Thread Paulo Soares
Title: RE: stamped.java example /Merging PDF files








-Original Message-

From:   Gao, Ping [SMTP:[EMAIL PROTECTED]

Sent:   Thursday, January 08, 2004 23:56

To: Paulo Soares; tom smith; [EMAIL PROTECTED]

Subject:    RE: stamped.java example /Merging PDF files

Hello everyone,

 

I'm learning the iText, and played with the examples and very happy with what I saw. This is what I am trying to do:

Input an exist PDF file (with the forms can’t be filled out by hand), and output a PDF file which only has the forms pages from the input file, and it either can't be saved after fill in the form by hand or can't be modified after is filled out and saved. Is this doable? Please someone give me some hints or any examples will be greatly appreciated.

 

The questions I have regarding this problem is:

 

1. In an exist PDF file, how do I know which page has forms?

PdfReader.getAcroFields(). The page numbers are at AcroFields.Item.page. You'll need the iText version at itextpdf.sf.net.

2. How can I change the permission or something on an exist PDF file and change it again when someone saves it?

 The permission decisions must be done before opening the pdf. use setEncryption().

Best Regards,

Paulo Soares

Thank you very much!

 

Ping

-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 08, 2004 6:13 AM
To: tom smith; [EMAIL PROTECTED]
Cc: Gao, Ping
Subject: RE: stamped.java example /Merging PDF files





-Original Message-

From:   tom smith [SMTP:[EMAIL PROTECTED]

Sent:   Wednesday, January 07, 2004 18:49

To: Paulo Soares; [EMAIL PROTECTED]

Cc: [EMAIL PROTECTED]

Subject:    stamped.java example /Merging PDF files

I used the getUnderContent(pageNum) of PdfStamper, and it worked on the ones I had problem with text fields. But still some of the check boxes don't work, and I couldn't stamp on top of the check boxes. Is that because of the crop area? How can I get round it?

You can't put content over a field annotation with iText. The way to do it is to read the pdf, flatten the fields, read it again (with the fields flattened) and stamp over it.

Another question is when I try to read an exist pdf file which has forms in the end of the file. But the DumpFields example says "This document has no fields." Does anyone know why this is and how to get around this?

Does it really have field forms?

Best Regards,

Paulo Soares

Thank you very much for any help!

Tom


>From: "Paulo Soares" 

>To: "tom smith" , 

>CC: "Gao, Ping" 

>Subject: RE: [iText-questions] stamped.java example /Merging PDF files 

>Date: Tue, 6 Jan 2004 10:56:33 - 

> 

>It works but there's more than meets the eye. You may have a page with a crop area and everything placed there will not show. You may also have a white area and trying to stamp underneath it won't show anything; stamp over the page in this case. 

> 

>Best Regards, 

>Paulo Soares 

> 

> > -Original Message- 

> > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of tom smith 

> > Sent: Tuesday, January 06, 2004 3:34 

> > To: [EMAIL PROTECTED] 

> > Subject: [iText-questions] stamped.java example /Merging PDF files 

> > 

> > Hi Everyone, 

> > 

> > I just started playing around with iText today, and used the setTextMatrix(int, int) and showText(String) methods to Stamp on exist pdf file as Paulo Soares's example showed, mostly it works fine, but there is a problem when I tried to stamp "Strings" to certain areas, somehow it doesn't work. Just wondering if anyone else had this problem. Please let me know how I can work around this problem if you have a solution! 

> > 

> > Thanks, 

> > 

> > Tom 

> > 

> > 

> >   _ 

> > 

> > Tired of slow downloads? Compare online deals from your local high-speed providers now.   

> > --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now!  ___ iText-questions mailing list [EMAIL PROTECTED]  

  _ 


Make your home warm and cozy this winter with tips from MSN House & Home.  <>




RE: [iText-questions] Sign PDF file

2004-01-09 Thread Paulo Soares
Title: RE: [iText-questions] Sign PDF file






I have no idea but if you manage to do it we would like to know.


Best Regards,

Paulo Soares


-Original Message-

From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Sheung Chi

Sent:   Thursday, January 08, 2004 17:28

To: [EMAIL PROTECTED]

Subject:    [iText-questions] Sign PDF file


Hi All,

 

I am fresh in iText. Could you please tell me how i can sign a pdf file using BC crypto ? Thanks in advance.

 

Regards,

 Sheung-Chi 

  





Re: [iText-questions] html to pdf

2004-01-09 Thread Bruno
Quoting vivian ch <[EMAIL PROTECTED]>:

> Hi,
> Thanks you for helping me previously. I start "loving" iText.. *smile*
> I have another problem now:
> i have copied the example from web for creating a pdf file from an html
> file... but i get the following errors:
> tryHTML.java:6: cannot resolve symbol
> symbol  : class HtmlParser
> location: package html
> import com.lowagie.text.html.HtmlParser;
>  ^
> tryHTML.java:23: cannot resolve symbol
> symbol  : variable HtmlParser
> location: class tryHTML
>  HtmlParser.parse(document, "eProdSumm.html");
>  ^
> what do i need to do to make it work? where is the HtmlParser from?

It's in a separate jar iTextXML.jar.
http://itext.sourceforge.net/downloads/

mvg,
Bruno


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


[iText-questions] RE: stamped.java example /Merging PDF files

2004-01-09 Thread Gao, Ping
Title: RE: stamped.java example /Merging PDF files




Hello everyone,
 
I'm learning the iText, and played with the examples and 
very happy with what I saw. This is what I am trying to 
do:
Input an exist PDF file (with the forms can’t be filled 
out by hand), and output a PDF file which only has the forms pages from the 
input file, and it either can't be saved after fill in the form by hand or can't 
be modified after is filled out and saved. Is this doable? Please someone give 
me some hints or any examples will be greatly 
appreciated.
 
The questions I have regarding this problem 
is:
 
1. In an exist PDF file, how do I know which page has 
forms?
2. How can I change the permission or something on an exist PDF 
file and change it again when someone saves it?
 
Thank you very much!
 
Ping

  -Original Message-From: Paulo Soares 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, January 08, 2004 6:13 
  AMTo: tom smith; 
  [EMAIL PROTECTED]Cc: Gao, 
  PingSubject: RE: stamped.java example /Merging PDF 
  files
  
-Original 
Message-
From:   tom smith 
[SMTP:[EMAIL PROTECTED]
Sent:   Wednesday, 
January 07, 2004 18:49
To: Paulo 
Soares; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject:    stamped.java example /Merging PDF files
I used the 
getUnderContent(pageNum) of PdfStamper, and it worked on the ones I had 
problem with text fields. But still some of the check boxes don't work, and 
I couldn't stamp on top of the check boxes. Is that because of the crop 
area? How can I get round it?
You can't 
put content over a field annotation with iText. The way to do it is to read 
the pdf, flatten the fields, read it again (with the fields flattened) and 
stamp over it.
Another question is when I try 
to read an exist pdf file which has forms in the end of the file. But the 
DumpFields example says "This document has no fields." Does anyone know why 
this is and how to get around this?
Does it 
really have field forms?
Best 
Regards,
Paulo 
Soares
Thank you very much for any 
help!
Tom
>From: "Paulo Soares" 

>To: "tom smith" , 

>CC: "Gao, Ping" 

>Subject: RE: 
[iText-questions] stamped.java example /Merging PDF files 
>Date: Tue, 6 Jan 2004 
10:56:33 - 
> 
>It works but there's more 
than meets the eye. You may have a page with a crop area and everything 
placed there will not show. You may also have a white area and trying to 
stamp underneath it won't show anything; stamp over the page in this case. 

> 
>Best Regards, 

>Paulo Soares 

> 
> > -Original 
Message- 
> > From: 
[EMAIL PROTECTED] 
[SMTP:[EMAIL PROTECTED] On Behalf Of tom smith 

> > Sent: Tuesday, 
January 06, 2004 3:34 
> > To: 
[EMAIL PROTECTED] 
> > Subject: 
[iText-questions] stamped.java example /Merging PDF files 
> > 
> > Hi Everyone, 

> > 
> > I just started 
playing around with iText today, and used the setTextMatrix(int, int) and 
showText(String) methods to Stamp on exist pdf file as Paulo Soares's 
example showed, mostly it works fine, but there is a problem when I tried to 
stamp "Strings" to certain areas, somehow it doesn't work. Just wondering if 
anyone else had this problem. Please let me know how I can work around this 
problem if you have a solution! 
> > 
> > Thanks, 

> > 
> > Tom 

> > 
> > 
> >   _ 

> > 
> > Tired of slow 
downloads? Compare online deals from your local high-speed providers 
now.   
> > 
--- This SF.net email is 
sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen 
your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from 
the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click 
___ iText-questions mailing list 
[EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions 

  
_ 
Make your home warm and cozy 
this winter with tips from MSN House & Home.  


[iText-questions] html to pdf

2004-01-09 Thread vivian ch
Hi,
Thanks you for helping me previously. I start "loving" iText.. *smile*
I have another problem now:
i have copied the example from web for creating a pdf file from an html file... but i get the following errors:
tryHTML.java:6: cannot resolve symbolsymbol  : class HtmlParserlocation: package htmlimport com.lowagie.text.html.HtmlParser; ^tryHTML.java:23: cannot resolve symbolsymbol  : variable HtmlParserlocation: class tryHTML HtmlParser.parse(document, "eProdSumm.html"); ^
what do i need to do to make it work? where is the HtmlParser from?
Thanks,
VivianGet 10mb of e-mail space with MSN Hotmail Extra Storage at only S$36 per year including GST


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