RE: [iText-questions] Page Break Problem

2004-03-10 Thread Reynaldo S. Tamayo
sorry..

document.newPage

juntams

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Srinivasan V
Sent: Wednesday, March 10, 2004 3:12 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Page Break Problem


Hi ,

I am using PdfPTable to display say thousands of records.
I dont know how to page break in order to display next set of record.
I tried but its displaying in the same page.
help me out ASAP.

regards,
Srinivasan V


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



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


RE: [iText-questions] Page Break Problem

2004-03-10 Thread Reynaldo S. Tamayo
use this!

document.nextpage

juntams

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Srinivasan V
Sent: Wednesday, March 10, 2004 3:12 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Page Break Problem


Hi ,

I am using PdfPTable to display say thousands of records.
I dont know how to page break in order to display next set of record.
I tried but its displaying in the same page.
help me out ASAP.

regards,
Srinivasan V


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



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


RE: [iText-questions] text align, force a pagebreak

2004-03-03 Thread Reynaldo S. Tamayo



what a 
nice name cristine,
 
answer 
to your q.
1. you 
can use table alignment.
2. 
document.nextpage
3. no 
need to used \t if it doesnt work. better use \n.
 
juntams
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  [EMAIL PROTECTED]Sent: Wednesday, March 03, 2004 6:38 
  PMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] text align, force a pagebreakHallo, I've a 
  few Questions an I can't find the answers in the turorial: 
  How can I align a text (e.g. in the 
  middle of a line)? How can I force a 
  new page (pagebreak)? Why does 
   \t  not work but \ n (new line) works??? 
  Thank you for your answers! 
  Cristine


RE: [iText-questions] setLeading(), table.setOffset()

2004-03-02 Thread Reynaldo S. Tamayo
Title: RE: [iText-questions] Vertical alignment in table cells



erik,
    you can used table row to act as spacer 


    
    
table 1
    
    
    
spacer
    
    
    
table 2
    

 
or you 
can use the paragraph of the pdfwriter but hard to control.
 
juntams

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  Poupaert ErikSent: Tuesday, March 02, 2004 5:11 
  PMTo: 'Reynaldo S. Tamayo'; 
  '[EMAIL PROTECTED]'Subject: RE: 
  [iText-questions] setLeading(), table.setOffset()
   
  Hi 
  Reynaldo,
   
  I 
  was actually thinking of space between two tables vertically under each 
  other:
   
  TABLE1
  -
  |   
  |
  
  -
  
  |   
  |
  
  - 
  |   
  |
  
  -
   
  
   
  TABLE2
  
  
  -
  
  |   
  |
  
  -
  
  
  |   
  |
  
  -
   
  table1 gets added to the document. Then 
  table2 gets added to the document. How large will  be? 
  How many points? How can I impose a particular number of points?
  With the Table class you can use 
  setOffset() to control this. How do you do it with PdfPTable?
   
   
  
-Original Message-----From: Reynaldo S. Tamayo 
[mailto:[EMAIL PROTECTED]Sent: mardi 2 mars 2004 
9:23To: Poupaert ErikSubject: RE: [iText-questions] 
setLeading(), table.setOffset()
you can create a 
table with three columns 
then let the 2nd column of
your row to act as the spacer.
 
table
  tr
 td
   
 table1
  //end td 
 td
 //end td
 td
    
table2
 //end 
td
   //end tr
//end 
table -Original 
Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]On Behalf Of 
Poupaert ErikSent: Tuesday, March 02, 2004 1:37 
AMTo: '[EMAIL PROTECTED]'Subject: 
[iText-questions] setLeading(), 
table.setOffset()

  Hi
   
  I'm having major trouble controlling the space 
  between two tables added to a document. 
  writer.getContentByte().setLeading() doesn't seem to have any effect on 
  the leading. In my impression, the leading is calculated almost randomly, 
  depending on what leading you may have used somewhere in one of the 
  previous cells in a document. Suddenly, the space between tables becomes 
  larger or smaller. And then, PdfPTable doesn't implement 
  setOffset().
   
  Does anybody know how to control the space between 
  two tables in a document (Table and PdfPTable)?
   
  Greetings
  Erik
   This message and its attachments may contain 
  confidential information protected by intellectual property rights or 
  other rights & is strictly for the exclusive use of the intended 
  recipient. It is strictly prohibited to copy, alter or disclose this 
  message or its contents to any other person without Elia's prior consent. 
  If you are not the intended recipient of this message, please inform the 
  person who sent it and delete the message from your system. Elia is not 
  liable for any direct or indirect damage arising from errors, inaccuracies 
  or any loss in the message, from unauthorized use, disclosure, copying or 
  alteration of it or as a result of any virus being passed on. This message 
  does not constitute any commitment from Elia except when expressly 
  otherwise agreed between the intended recipient and Elia.U vindt 
  de Nederlandse versie van deze disclaimer op onze internetsite 
  www.elia.beVous pouvez découvrir la version française de ce 
  disclaimer sur notre site internet 
www.elia.be


[iText-questions] Default font

2004-01-26 Thread Reynaldo S. Tamayo
hi,

is there anyone who knows how to set default font
on PDF document?

tanks.

jun


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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

2004-01-22 Thread Reynaldo S. Tamayo
why

 doc.addJavaScript("this.print({bUI: true, bSilent:
false});\r")
doesnt work with me.

jun

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of chicks
Sent: Saturday, January 10, 2004 12:24 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [iText-questions] pdf print?!?


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



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] PDF Printng through javascrips

2004-01-22 Thread Reynaldo S. Tamayo



 
this 
script doesnt work. is there any way to run a _javascript_ for 
printing
PDF file in java classes. thanks
 
  PdfAction 
jAction = PdfAction._javascript_("this.print({bUI:false})", 
writer);  
writer.addJavaScript(jAction);


[iText-questions] PDF printing direct from JAVA

2003-12-17 Thread Reynaldo S. Tamayo
guys,

I'm new in Java Programming and i'm 
having a problem on printing directly the 
PDF generated from database from my Action class.


tanks in advance,

Jun Tamayo
NEC Technologies Philippines


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