Gray Pdf's from Color Pdf's

Hi, Is there any way through which we can generate Gray Pdf's from Color Pdf's. Does aspose support this.

Hi,

This feature is not supported directly, but you can use Aspose.Pdf.Kit to convert your pdf to image then convert the image to grayscale and then use Aspose.Pdf to create a new pdf with those images.

Thanks.

We are aware of this and are able to convert the pdf to image and image to new pdf, but we did not find any method to convert an image into grayscale. Please advise.

Thanks

Hi,

Please consult http://www.codersource.net/csharp_tutorial_grayscale_images.aspx
Thanks.

Thanks for the reply. It works for me. But the size of output pdf in very large as compared to the colored one. Do you have any idea to kept the size same(may increase but not too large)…??

Hi,

Have you tried setting the CompressionLevel property of Pdf class. Can you send us your code and the pdf files so that we can test it.

Thanks.

I don’t think CompressionLevel can help. You should first check the size of the image. Normally when the PDF is converted into image, the size will become larger.