Keeping Text Readable at Low Resolutions

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Rasterizer for .NET (v2)  /  Keeping Text Readable at Low Resolutions

DynamicPDF Rasterizer for .NET (v2) Forum

I'm looking for a "rasterizer" tool that can convert a PDF to a low resolution bitmap that contains a lot of text.  The tool has to be aware that it is converting text and make an attempt at keeping the text legible.

I've downloaded the DynamicPDF Rasterizer and played with it a little, but I have not been able to achieve the results I'm looking for.

The resulting bitmap should be a 1-bit bitmap that can keep text readable down to a size 10 pt font.  The bitmap is going to be displayed on an electronic device that has a very low resolution of approximate 40ppi.  The only way we've been able to achieve decent looking bitmaps in the past is to use a tool that actually reads the content of the PDF and then manually recreate the bitmap.

Here is the code I used to create a low resolution bitmap using the Dynamic PDF rasterizer.  Unfortunately, the end result is typically a bitmap full of black dots where the text should be.

FixedImageSize fixedImageSize = new FixedImageSize(128f, 240, 41.8F, 44.65F, UnitType.Point);

BmpMonochromeColorFormat bmpMonochromeColorFormat = new BmpMonochromeColorFormat(DitheringAlgorithm.FloydSteinberg, 0);
BmpImageFormat bmpImageFormat = new BmpImageFormat(bmpMonochromeColorFormat);
           
using (PdfRasterizer rasterizer = new PdfRasterizer(pdfFilePath))
{
     byte[][] boo = rasterizer.Draw(bmpImageFormat, fixedImageSize);
     TypeConverter tc = TypeDescriptor.GetConverter(typeof(Bitmap));
     Bitmap bmp = (Bitmap)tc.ConvertFrom(boo[0]);
     return bmp;
};

Perhaps our only option is to stick with the original plan of manually recreating the PDF as a bitmap because the rasterizer tools aren't advanced enough to do this?
Posted by a ceTe Software moderator
Hello,

The DynamicPDF Rasterizer for .NET product will rasterize the whole PDF by setting the resolution and  size which you specify in the code.  It is not possible to change the fonts while converting PDF to image using our DynamicPDF Rasterizer for .NET product.

Also please note that the image quality depends on the resolution which you set to it. Please try using the better resolution values and image size and this will allow you to build a good quality image.

Thanks,
ceTe Software Support Team.
Ok.  Thank you for the quick reply.  Unfortunately, the DynamicPDF Rasterizer isn't going to fit our need.

All times are US Eastern Standard time. The time now is 11:01 PM.