Unwanted Boxes Around Text Converting PDF to PNG/TIF

ASPOSE PDF is adding borders around text that are not visible in the source PDF doc. The code exhibiting the error is:

        Document pdfDocument = new Document("C:\\Temp\\input.pdf");

        Resolution resolution = new Resolution(300);
        TiffSettings tiffSettings = new TiffSettings();
        tiffSettings.Compression = CompressionType.None;
        tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
        tiffSettings.Shape = ShapeType.Landscape;
        tiffSettings.SkipBlankPages = false;
        // Create TIFF device
        TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);

        PngDevice pngDEvice = new PngDevice(resolution);
        for (int pageCount = 1; pageCount <= pdfDocument.Pages.Count; pageCount++)
        {
            pngDEvice.Process(pdfDocument.Pages[pageCount], "C:\\Temp\\output(" + pageCount.ToString() + ").png");
        }

        tiffDevice.Process(pdfDocument, "C:\\Temp\\output.tif");

I have attached the pdf file as well.Reedy Springs Ph.2A Samples 8-10 Map.pdf (70.8 KB)
Reedy Springs Ph.2A Samples 8-10 Map.pdf (70.8 KB)

@dlankford

Thank you for contacting support.

We have worked with the data shared by you but have not been able to reproduce it. Generated image has been attached for your kind reference output(1).png. Please ensure using Aspose.PDF for .NET 19.1 in your environment and then share your kind feedback with us.

In case the issue persists, then please share respective screenshots along with generated files so that we may investigate further to help you out.

I had updated the reference to 19.1, but it was still somehow pointing to an older version. Aspose.PDF version 19.1 does not have this issue.

Thanks!

@dlankford

Thank you for your kind feedback.

We are glad to know that your issue has been resolved. Please keep using our API and in event of any further query, feel free to ask.