Convert PDF containing small datamatrix barcode to image

Hello,
we have some pdf that we try to convert to a whatever image format but quality isn’t satisfactory. There are some datamatrix barcode images ​in pdf pages that are very small (20x20 pixels) and when we use Aspose.Pdf library with following code frame: ​

​Resolution resolution = new Resolution(300);
ImageDevice imageDevice = new PngDevice(resolution);
​Document pdfDocument = new Document(“POLLIO_MNP_illeggibile.pdf”);
​imageDevice.Process(pdfDocument.Pages[pageCount], imageStream);
imageStream.Close();

png image shows a blurred barcode.
There is some setting to improve conversion outcome?​

@acquisti_comdatagroup_com

Could you please share a sample PDF document with us so that we can test the scenario in our environment and address it accordingly? Also, please try to share an expected output image as well so that we can use it for quality comparison.

Hi,

thank you for your kind response, below what is required:

ROSSI_ MARIO_illeggibile.pdf is the pdf file that we wish to convert to a png image, ConvertedByAspose.png is the file converted by Aspose SDK and ConvertedOnline.png is that one produced by a Converter Online found on Internet

Best regards
Alessandro

ROSSI_ MARIO_illeggibile.pdf (65.0 KB)
ConvertedByAspose.png (361.8 KB)
ConvertedOnline.png (399.4 KB)

@acquisti_comdatagroup_com

We were able to notice the image quality issue when we tested the scenario in our environment using 22.3 version of the API. Hence, an issue as PDFNET-51588 has been registered in our issue tracking system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.