Blurred images

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
viljamar
Posts: 2
Joined: Tue Feb 05 2013

Blurred images

Post by viljamar » Tue Dec 29 2015

Hi,

has there been some sort of change to the RasterizePageRange method, or more specifically, the font smoothing part?

We recently updated the PDF Creator version from 5.0.0.2 to 5.0.1.9 due to some corrupted pdfs causing crashes on customer side and while those were rectified, the customers started immediately complaining about blurred or "fuzzy" pictures that were hard to read - especially bank account numbers and such.

I don't have the older version of 5.0 available, but I did some testing against other older version we had, the 4.5. The exact same pdf gets rasterized much more blurry in the newer version:
Image

We use the command "RasterizePageRange( 1, nPages, 150, 3, 9 )" to create jpeg versions of pdfs for the client software to show the image for users. I already tried to alter parameters to see if JPeg2000/PNG version or higher DPI value would help, but the difference was very marginal even when zoomed in.

Is there something else I could try or is there a way to add contrast to images so that text appears more clear?

Best regards,
Markus Viljanen

Jose
Amyuni Team
Posts: 549
Joined: Tue Oct 01 2002
Contact:

Re: Blurred images

Post by Jose » Mon Jan 04 2016

Hi Markus,

I ran a couple of quick tests using the code snippet below and comparing the PDF output from v4.5 to version v5.0.1.9 and I was not able to reproduce the situation you are encountering. The resulting PDF documents do not have the "fuzziness" you are describing.

Code: Select all

private void btnTestCode_Click(object sender, EventArgs e)
{
    try
    {
        acPDFCreatorLib.Initialize();
        acPDFCreatorLib.SetLicenseKey("Amyuni Tech Eval", "07EFCDAB01000100FB0841E70EA4FDC96C023E0C9CBE54723D6B9C2E3A4F4453C93F512EC24A1F3B864FE74002ECFCBC49992DDD2A92");

        using (IacDocument doc = new Amyuni.PDFCreator.IacDocument())
        {
            using (var fs = File.OpenRead("c:\\temp\\text.pdf"))
            {
                doc.Open(fs, null);
                doc.RasterizePageRange(1, doc.PageCount, 150, IacRasterizeColorOption.acColorOptionRGB, IacImageCompressionConstants.acCompressionJPegHigh);

                using (var fstemp = File.Create("c:\\temp\\output_v50_150_3_9.pdf"))
                {
                    doc.Save(fstemp, IacFileSaveOption.acFileSaveView);
                }
            }
        }
    }

    finally
    {
        acPDFCreatorLib.Terminate();
    }
}
Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite

Post Reply