Dear Paulo,

I want to change CropBox for each page (See the following codes). Would you please help me ?
Thanks,


yun


import java.io.*; import java.awt.Color; import com.lowagie.text.*; import com.lowagie.text.pdf.*;

public class Class1 extends java.lang.Object {

public static void main(String args[]) {

          try
            {
        //Page 1
        Rectangle rect = new Rectangle(300,200);
        Document document = new Document(rect);

PdfWriter.getInstance(document, new FileOutputStream("Chap0107.pdf"));

              document.open();
              document.add(new Paragraph("1111"));


// PAGE 2 document.setPageSize( rect.rotate() ); //Page 2 document.newPage(); document.add(new Paragraph("2222"));

document.close();

    }
     catch(Exception e) {
       e.printStackTrace();
     }
   }
}

_________________________________________________________________
<b>Get MSN 8</b> and help protect your children with advanced parental controls. http://join.msn.com/?page=features/parental




-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to