It doesn't look like you ever use the Pattern you have defined.  I think you need to 
use
mPdfContentByte.setPatternFill()  and/or mPdfContentByte.setPatternStroke() in order to
use the pattern.  When you print does it look correct (does your pattern display)?

Also, I don't think your first call to lPdfPatternPainter.stroke() does anything.

I don't think I've answered your speed question, but perhaps cleaning up some of these
will help?


Matt



                                                                                       
                                                                           
                    "Jaladurgam, Ramana"                                               
                                                                           
                    <[EMAIL PROTECTED]>         To:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>             
                    Sent by:                                cc:                        
                                                                           
                    [EMAIL PROTECTED]       Subject:     RE: [iText-questions] 
Printing problem                                                   
                    eforge.net                                                         
                                                                           
                                                                                       
                                                                           
                                                                                       
                                                                           
                    07/18/2003 03:21 PM                                                
                                                                           
                                                                                       
                                                                           
                                                                                       
                                                                           




I have digged into the printing problem and could find that the problem is
due to the use of patterns.
Here is the way I am using patterns.

                          mPdfContentByte.moveTo(mXValues[0] , mYValues[0]);
            for (int lPoint = 1; lPoint < mXValues.length; lPoint++)
            {
                mX1 = mXValues[lPoint];
                mY1 = mYValues[lPoint];
                //Draw the line
                mPdfContentByte.lineTo(mX1 , mY1);
            }
            //Generate the 45 degree line pattern
                     PdfPatternPainter lPdfPatternPainter =
            mPdfContentByte.createPattern(4 , 4);
            lPdfPatternPainter.stroke();
            lPdfPatternPainter.setLineWidth(0.35f);
            lPdfPatternPainter.moveTo( -0.5f , 2f);
            lPdfPatternPainter.lineTo(2 , 4.5f);
            lPdfPatternPainter.moveTo(1 , -0.5f);
            lPdfPatternPainter.lineTo(4.5f , 3);
            lPdfPatternPainter.stroke();
            mPdfContentByte.closePathFillStroke();

  The above is in loop and for a particular graph this looped for 2 times.
  The spool file size thus printed is 1MB and took almost 8 to 10 minutes to
print.
  Am I doing something wrong?

Regards,
Ramana.JV.

-----Original Message-----
From: Jaladurgam, Ramana [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:29 PM
To: '[EMAIL PROTECTED]'
Subject: [iText-questions] Printing problem


Hello,
   I am using PdfContentByte methods to draw graph using the lineTo() etc
methods of iText.
   When I print the file through Acrobat the spool file size is around 1MB
and takes atleast 10 minutes to print.
   Can anyone pl. tell me how to attack this problem?

Regards,
Ramana.JV.

****************************************************************************

This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same
time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
iText-questions mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

****************************************************************************
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions






-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to