Works for me. You need to open it with Acrobat 5 or 6 to see the
transparency. If it still doesn't work send me privately the pdf.

Best Regards,
Paulo Soares 

> -----Original Message-----
> From: Kalpesh Raval [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 14, 2004 8:02 PM
> To: Paulo Soares; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Get portion of PDF using ITEXTSHARP
> 
> Hi Paulo, 
> 
> i tried the following, from the example in the file, still it 
> does not work, please help me understand where i am going wrong
> 
>   cb = writer.getDirectContent()
>         i = 0
>         p = 0
> 
>         document.newPage()
>         p = p + 1
>         i = i + 1
>         page1 = writer.getImportedPage(reader, i)
>         Dim lsObjTemp1 As New PdfTransparencyGroup()
>         Dim lsObjTemp2 As New PdfGState()
>         lsObjTemp2.setFillOpacity(0.5F)
>         page1.setGroup(lsObjTemp1)
> 
>         cb.addTemplate(page1, 0, 0)
>         cb.saveState()
> 
>         cb.setGState(lsObjTemp2)
> 
>         cb.setColorStroke(New java.awt.Color(0, 0, 0))
>         cb.setColorFill(New java.awt.Color(150, 150, 150))
>         cb.rectangle(100, 100, 200, 200)
>         cb.fill()
>         cb.setLineWidth(2)
>         cb.rectangle(100, 100, 200, 200)
>         cb.stroke()
>         cb.restoreState()
> 
> thank you in advance
> 
> 
> kalpesh
> 
> -----Original Message-----
> From: Paulo Soares [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 08, 2004 5:24 AM
> To: Kalpesh Raval; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Get portion of PDF using ITEXTSHARP
> 
> 
> Alpha is done in a very different way in PDF using graphic 
> states. See the example headers_and_watermarks.java at 
> itextpdf.sf.net.
> 
> Best Regards,
> Paulo Soares
> 
> > -----Original Message-----
> > From: Kalpesh Raval [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, July 07, 2004 10:05 PM
> > To: Paulo Soares; [EMAIL PROTECTED]
> > Subject: RE: [iText-questions] Get portion of PDF using ITEXTSHARP
> > 
> > I downloaded the ITEXT component and have also changed the 
> > code, still when i try to fill the color using 
> > 
> > setColorFill it needs java.awt.color as the parameter and if 
> > i do try to make an instance of java.awt.color the only 
> > constructors it has is 
> > java.awt.color(r,g,b)
> > java.awt.color(rf,gf,bf)
> > java.awt.color(rgb)
> > 
> > it does not have alpha value in it, and which is what the 
> > itextsharp had too.....
> > 
> > Thank you
> > 
> > kalpesh
> > 
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> Behalf Of Paulo
> > Soares
> > Sent: Wednesday, July 07, 2004 10:52 AM
> > To: Kalpesh Raval; [EMAIL PROTECTED]
> > Subject: RE: [iText-questions] Get portion of PDF using ITEXTSHARP
> > 
> > 
> > Are you kidding? That's a pre-historic implementation. Use 
> the version
> > at http://www.ujihara.jp/iTextdotNET/en/. They also have 
> > examples in C#.
> > 
> > Best Regards,
> > Paulo Soares
> > 
> > > -----Original Message-----
> > > From: Kalpesh Raval [mailto:[EMAIL PROTECTED] 
> > > Sent: Wednesday, July 07, 2004 2:49 PM
> > > To: Paulo Soares; [EMAIL PROTECTED]
> > > Subject: RE: [iText-questions] Get portion of PDF using ITEXTSHARP
> > > 
> > > No work around either????
> > > 
> > > Regards,
> > > 
> > > kalpesh
> > > 
> > > -----Original Message-----
> > > From: Paulo Soares [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 07, 2004 6:45 AM
> > > To: Kalpesh Raval; [EMAIL PROTECTED]
> > > Subject: RE: [iText-questions] Get portion of PDF using ITEXTSHARP
> > > 
> > > 
> > > iTextSharp doesn't support alpha.
> > > 
> > > Best Regards,
> > > Paulo Soares 
> > > 
> > > > -----Original Message-----
> > > > From: Kalpesh Raval [mailto:[EMAIL PROTECTED] 
> > > > Sent: Tuesday, July 06, 2004 6:47 PM
> > > > To: Paulo Soares; [EMAIL PROTECTED]
> > > > Subject: RE: [iText-questions] Get portion of PDF using 
> ITEXTSHARP
> > > > 
> > > > also, 
> > > > 
> > > > i am using the following line of code to draw 
> > > > 
> > > > cb.setColorFill(New iTextSharp.text.pdf.PdfSpotColor("t1", 
> > > > 255, New 
> > > iTextSharp.text.Color(System.Drawing.Color.LightBlue)), 255)
> > > > 
> > > > i want to specify alpha too, how can i plug that 
> parameter in ???
> > > > 
> > > > 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
> > > > 
> > > 
> > 
> > 
> > -------------------------------------------------------
> > 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 is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to