We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

CropBox region is not capturing text when saving to PngDevice

I am trying to extract a region of the PDF file and saving it as an image. However, I am running into problems capturing all the content in rectangular region. When I try to save as an image file, all the text would disappear. I tried it with PngDevice, GifDevice and JpegDevice. However, if I save it as PDF, all the images and text would be retained and the page cropped to the dimensions that I specified.

This is on Aspose.NET

I attached two files:
- badcrop.png is when I try to save cropped content to PngDevice
- frompdf.png is a screen shot of what the content should be from the saved pdf


Thanks for contacting support.

Can you please share the input PDF file, so that we can test the scenario in our environment. We are sorry for this inconvenience.