PdfContentByte cb = writer.getDirectContent();
cb.saveState();
cb.rectangle(...);
cb.clip();
cb.newPath();
cb.addTemplate(...);
cb.restoreState();

> -----Original Message-----
> From: Andy Chan [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 30, 2005 9:24 AM
> To: Paulo Soares
> Subject: Re: [iText-questions] how to imported the pdf page 
> with its crop value(not media box)
> 
> how to set the clip rectangle?
> you mean after imported the pdf, it is pdfimportedpage
> which inherit from pdfcontentbyte right?
> at there don't have clip rectangle.
> Please point out using what method in what class.
> thanks.
> 
> I using 1.02itext
> 
> --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > You set a clip rectangle before placing the page.
> > 
> > ----- Original Message ----- 
> > From: "color_prepress" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Saturday, March 26, 2005 5:35 AM
> > Subject: [iText-questions] how to imported the pdf
> > page with its crop
> > value(not media box)
> > 
> > 
> > > my source page is 2 A5 side in 1 A4 page.
> > > I using acrobat professional to crop it into 2 A5
> > page.
> > > now I using itext1.02 to import in and place into
> > new file. I found that
> > it
> > > just show all (A4 size which content that 2 A5
> > page data) content back in
> > > this file.
> > > Is that anyway do import it base on cropbox value?
> > > I know that cropping in acrobat is just modify of
> > rectangle value(it not
> > > really crop the data, just set the rectangle into
> > smaller)
> > > but I know that it importing  pdf with crop value
> > is applicable, just
> > don't
> > > know itext can do that direct or not.
> > > If cannot directly, is that I need to make some
> > changes in source code?
> > > can you show that part how to do it?
> > >
> > >
> > >
> > >
> > >
> > >
> >
> -------------------------------------------------------
> > > SF email is sponsored by - The IT Product Guide
> > > Read honest & candid reviews on hundreds of IT
> > Products from real users.
> > > Discover which products truly live up to the hype.
> > Start reading now.
> > > http://productguide.itmanagersjournal.com/
> > >
> > >
> > >
> > >
> > >
> > >
> >
> -------------------------------------------------------
> > > SF email is sponsored by - The IT Product Guide
> > > Read honest & candid reviews on hundreds of IT
> > Products from real users.
> > > Discover which products truly live up to the hype.
> > Start reading now.
> > >
> >
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > > _______________________________________________
> > > iText-questions mailing list
> > > [email protected]
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> > 
> > 
> 
> ______________________________________________________________
> __________
> Yahoo! Messenger - Communicate instantly..."Ping" 
> your friends today! Download Messenger Now 
> http://uk.messenger.yahoo.com/download/index.html
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to