Thank�s for your comments!

You are right that OverPrint isn�t supported in AcrobatReader, but my
application will generate pages to be sent to press. In this situation, we
need to make sure that OverPrint will be obeyed.

Using the code that Paulo gave me I still did�t take the OverPrint effect.
May I doing something wrong?


m_Document = new Document( pageSize );
m_Writer = PdfWriter.getInstance(m_Document, new FileOutputStream(
ms_DirPDFout + strNomePag ));
m_Document.open();
m_CB = m_Writer.getDirectContent();

m_CB.beginText();

PdfGState gs = new PdfGState();
gs.setOverPrintStroking(true);
m_CB.setGState(gs);

m_CB.showTextAligned( PdfContentByte.ALIGN_LEFT, "texto", mf_PosX, mf_PosY,
0 );
m_CB.endText();



PS (to Paulo and others): parab�ns pela excelente ferramenta
desenvolvida!!!


Rog�rio Rodrigues Lima Cisi
e-mail : [EMAIL PROTECTED]
S�o Paulo - Brasil
Fone : 55-11-3145-3900    ramal: 3967




                                                                                       
                            
                    Leonard                                                            
                            
                    Rosenthol            Para:   "Paulo Soares" <[EMAIL PROTECTED]>, 
"Rogerio Cisi"              
                    <[EMAIL PROTECTED]        <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> 
        
                    sages.com>           cc:                                           
                            
                                         Assunto:     Re: [iText-questions] How to set 
overprint when writting a   
                    30/07/2003           text?                                         
                            
                    17:15                                                              
                            
                                                                                       
                            
                                                                                       
                            




At 08:55 PM 7/30/2003 +0100, Paulo Soares wrote:

>You must set the graphic state:
>
>PdfContentByte cb = ....;
>PdfGState gs = new PdfGState();
>gs.setOverPrintStroking(true);
>cb.setGState(gs);

         Do keep in mind that many Acrobat users still may not see this
correctly, since OverPrint Preview isn't supported in Reader - only in
"Full", Standard and Professional.   And may be turned off by users.


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-629-3700 (voice)







-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to