Hi Paulo,

Thanx, this does work indeed, except one small thing, here's the thing,
we do all the writing and all in the memory stream and finally we flush
it to the browser, now my problem is I want to clip it from the memory
stream and then show it???

how do I do that???

Thank you

Kalpesh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paulo
Soares
Sent: Friday, July 02, 2004 6:35 AM
To: Kalpesh Raval; [EMAIL PROTECTED]
Subject: RE: [iText-questions] Get portion of PDF using ITEXTSHARP


I can tell you how to do it in java. Whether it works with that port or
not it's up to you to find out.
It works with http://www.ujihara.jp/iTextdotNET/en/.

You cant't remove anything form the original document but you can show
only some parts of it. The general idea is:

PdfTemplate page = writer.getImportedPage(...);
PdfContentByte cb = writer.getDirectContent();
cb.saveState();
cb.rectangle(...); //only this will be visible
cb.clip();
cb.newPath();
ab.addTemplate(page, ...); //adjust the origin to position in the
rectangle above
cb.restoreState();

Best Regards,
Paulo Soares


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Kalpesh Raval
> Sent: Thursday, July 01, 2004 10:22 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Get portion of PDF using ITEXTSHARP
> 
> hi,
> 
> Does anyone have any inputs on this one???
> 
> i am stuck
> 
> Kalpesh
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf 
> Of kalpesh
> raval
> Sent: Monday, June 28, 2004 4:59 PM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Get portion of PDF using ITEXTSHARP
> 
> 
> Greetings,
> 
> How do i extract certain portion of PDF and save it as new PDF.
> 
> Thanx in advance for all your help
> 
> Kalpesh
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

<<winmail.dat>>

Reply via email to