Re: [iText-questions] Using PdfGraphics2D and compressing non-JPEG images

2008-12-31 Thread Steven Case
image + a DeviceGray image that > can be used for an SMask is pretty simple and should not be having > the problems that you are describing. > > I can provide some sample/working C/c++ code that does what you want > if that will help... > > Leonard > > -Origi

Re: [iText-questions] Using PdfGraphics2D and compressing non-JPEG images

2008-12-30 Thread Steven Case
an come up with a better solution. In the meantime, please do not expend the effort to evaluate incorporating my proposed feature into iText at this time. Steve On Dec 30, 2008, at 2:43 PM, Steven Case wrote: > In response to your six comments/questions: > > 1. I did not make

Re: [iText-questions] Using PdfGraphics2D and compressing non-JPEG images

2008-12-30 Thread Steven Case
In response to your six comments/questions: 1. I did not make the private method generic enough to work for any image. It works for those images that are being processed by the drawImage() method that might call CreateAlphaMask(). As such, at that point in the process the getPixels() meth

Re: [iText-questions] Using PdfGraphics2D and compressing non-JPEG images

2008-12-22 Thread Steven Case
>> I am hoping you will consider making this behavior a permanent >> change to >> the PdfGraphics2D class. If so, I have attached a copy of my >> version of >> the PdfGraphics2D.java file to this e-mail for your review. Of >> course, >> if you have any suggestions for improving this approac

Re: [iText-questions] Question/Recommendation concerning compression of images

2007-01-20 Thread Steven Case
I went ahead and implemented methods in the PdfGraphics2D class to allow me to dynamically enable and disable the feature for converting images to jpeg format. This approach works well for my specific application. Just to give you some perspective, for the document I am using as a test case, w

Re: [iText-questions] Question/Recommendation concerning compression of images

2007-01-20 Thread Steven Case
Agreed, it should be a trivial change. I'll take a look at making such a change later this weekend and submitting it as a patch. This approach would be a reasonable solution for my application and will hopefully have value to other users, too. I also agree that a better solution would be to c

Re: [iText-questions] Question/Recommendation concerning compression of images

2007-01-20 Thread Steven Case
Yes, there is an option on the PdfGraphics2D object, but that option is private and can only be set via the constructor. Thus, the option cannot be changed on an image-by-image basis unless a new PdfGraphcs2D object is created prior to drawing each image. I could do that, of course, but then t

[iText-questions] Question/Recommendation concerning compression of images

2007-01-20 Thread Steven Case
I have an existing internal application that uses Swing/AWT and makes fairly extensive use of AWT's APIs for printing the documents created by the application. In the past, users have generated PDF versions of documents by printing to Acrobat Distiller. I now have a need to support a more automat