That's life. If you have opacity the page has to be flattened before printing. 
It's not an iText thing, any PDF with opacity behaves the same way. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Bill Sanders
> Sent: Friday, June 03, 2005 6:01 AM
> To: [email protected]
> Subject: [iText-questions] PDF Flattening
> 
> I've written this application using Jython to take multiple 
> TIFF's in a
> source directory and create a PDF document and then apply a TIFF as a
> watermark.
> 
> The assembled PDF looks fine within Acrobat Pro, but when 
> printing from
> Acrobat under Windows to a file, the message "Flattening" 
> apears and causes
> the whole print process to crawl.  If I remove the 
> setFillOpacity(.5), the
> TIFF being applied as a watermark overlays the page, which is 
> expected and
> the printing message "Flattening" does not appear and the job RIP's to
> PostScript very quickly.
> 
> The source PDF with the concatenated TIFF's prints fine also 
> without the
> overlay.  This problem only appears when using the 
> setFillOpacity method.
> 
> Any ideas or solutions would be greatly appreciated.
> 
> <Jython code>
>       iTotalPages = reader.getNumberOfPages()
>       
>       # Creation of a document-object
>       document = Document(PageSize.LETTER, 0, 0, 0, 0)
>       writer = PdfWriter.getInstance(document,
> FileOutputStream(strPdfTemp))
>       
>       document.open()
>       gs1 = PdfGState()
>                       
>       # Set the opacity to 50
>       gs1.setFillOpacity(0.5)
>               
>       for i in range(iTotalPages):
>               cb = writer.getDirectContent()                  
>               cb.setGState(gs1)
>               cb.addImage(watermark)
>                       
>               page = writer.getImportedPage(reader, i+1)
>                       
>               cb.addTemplate(page, 1, 0, 0, 1, 0, 0)
>                       
>               document.newPage()
>       document.close()
> 
>  
> 
> Regards,
> 
> Bill Sanders
> NearStar, Inc.
> www.nearstar.com
> Office: (972) 355-2236 x206
> NearStar Technical Support: (972) 355-2236 x202
> 
> **CONFIDENTIAL NOTICE**
> The information is intended only for the person or entity to 
> which it is
> addressed and may contain confidential and/or privileged material. Any
> review, retransmission, dissemination or other use of, or 
> taking of any
> action in reliance upon, this information by persons or 
> entities other than
> the intended recipient is prohibited. If you received this in 
> error, please
> contact the sender and delete the material from any computer.
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Paulo
> Soares
> Sent: Thursday, June 02, 2005 11:04 AM
> To: Franck JACOB; [email protected]
> Subject: RE: [iText-questions] font file .lst
> 
> You need files that end in .pfb, .ttf or .otf. 
> 
> > -----Original Message-----
> > From: Franck JACOB [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 02, 2005 4:01 PM
> > To: Paulo Soares; [email protected]
> > Subject: Re: [iText-questions] font file .lst
> > 
> > 
> > yes, but font files associated with this list doesn't work...
> > 
> > 
> > FontFactory.register("/fonts/GOTHIC.TTF");
> > Font font = FontFactory.getFont("Century Gothic", BaseFont.CP1252, 
> > BaseFont.EMBEDDED, 12);
> > --> ok
> > 
> > 
> > FontFactory.register("/fonts/Eurostile/._Eurostile");
> > Font font = FontFactory.getFont("Eurostile", BaseFont.CP1252, 
> > BaseFont.EMBEDDED, 12);
> > --> not ok
> > 
> > Eurostile is in the Acrobat list 'AdobeFnt.lst'
> > 
> > 
> > 
> > Le Jeudi 02 Juin 2005 16:44, Paulo Soares a écrit :
> > > That's a list of Acrobat fonts, not a font.
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] On 
> Behalf Of 
> > > > Franck JACOB
> > > > Sent: Thursday, June 02, 2005 3:10 PM
> > > > To: [email protected]
> > > > Subject: [iText-questions] font file .lst
> > > >
> > > >
> > > > Hello,
> > > >
> > > > I have to embed font in my pdf, I have a font file named 
> > > > 'AdobeFnt.lst' ;
> > > >
> > > > is this file format supported by iText ?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by Yahoo.
> > > > Introducing Yahoo! Search Developer Network - Create apps
> > using Yahoo!
> > > > Search APIs Find out how you can build Yahoo! directly
> > into your own
> > > > Applications - visit
> > > > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
> > > > _______________________________________________
> > > > iText-questions mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > 
> > --
> > Franck JACOB
> > Développeur Projet OpenSI
> > -
> > Société SpeedInfo
> > 12, rue de la Tuilerie
> > 38170 Seyssinet-Pariset
> > Tel: 04 76 21 15 85
> > -
> > http://www.speedinfo.fr
> > http://www.opensi.org
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit 
> http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005
>  
> 
> -- 
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005
>  
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit 
> http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to