You have to clip the page.

(cb is a PdfContentByte)
cb.saveState();
cb.rectangle(...); //clipping dimensions go here
cb.clip();
cb.newPath();
cb.addTemplate(...); // place the page
cb.restoreState();

Other option is to set PdfImportedPage.setBoundingBox() to the size of the
crop rectangle.
This last option is probably the best if you don't need the crop marks
later.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Piotr Luczycki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:52
Subject: [iText-questions] Scaling pages with crop marks


> I need to scale pages that have crop marks and have been previously
> cropped to hide the marks. However, when I attempt to scale down the
> pages to fit the new page format (and to have enough top margin to
> stamp a header), the crop marks show up again. Can I scale the pages
> and get white margins suppressing anything that was outside of the
> original crop box, and if so, how do I do that?
>
> Thanks,
> Piotr
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to