The images are not the same size when converted from PDF to HTML

I am trying to convert a PDF that contains images to HTML, but the resulting images are compressed and do not retain the same size as in the original PDF.

Code Snippet:
image.png (37.8 KB)

Required Output:
image.png (131.8 KB)

Current Output:
image.png (80.0 KB)

@Shriraksha

Can you please share your sample PDF document for our reference as well? We will test the scenario in our environment and address it accordingly.

This is the PDF I am using for testing, but I am facing issues with all PDFs that contain images.
Impact of Social Determinants of Health on the Emerging.pdf (2.9 MB)

@Shriraksha

While testing with 25.2 version of the API, we received below HTML output and images in it seems fine.
Impact of Social Determinants of Health on the Emerging.zip (344.3 KB)

Would you please try using the latest version of the API and let us know if you still face any issues.

@asad.ali I am using 25.2 version of the API and Java Runtime version 17. Still images are not retaining it’s original size.

@Shriraksha

Can you please share the output HTML in .zip format for our reference? We will log an investigation ticket and share the ID with you.

@asad.ali
Impact of Social Determinants of Health on the Emerging (3).zip (208.2 KB)

@Shriraksha

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-44865

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@asad.ali Any solution or update on Issue ID(s): PDFJAVA-44865

@Shriraksha

The ticket has just been logged in our issue tracking system and it will be investigated, resolved on a first come first serve basis as per free support policies. As soon as we make some significant progress towards its resolution, we will inform you via this forum thread. Please be patient and spare us some time.

We are sorry for the inconvenience.