Image Not visible properly - image to PDF

Hello support,

We have requiremnet to convert image to PDF file. initially we have implemented using aspose.pdf, but image scraching to full page size in generated PDF with source image. We have tried to get dimention from source image and set the same in PDF but we are unable to do the same.

We have attached code in txt
Aspose(Image-to-Pdf).zip (269 Bytes)

file for your reference. can you please suggest approach for the same.

Just to summarised, We want to convert image into PDF, the image should be visible inside the PDF with same height and width. Please note that we want to implement the same using aspose.pdf library only and we wanted to use in application hosted on docker with linux.

Thanks,

@vbhattsynoptek

Would you please share some more details like your image along with current and expected output PDFs? We will test the scenario in our environment and address it accordingly.

Thanks for quick response @asad.ali

Please find current and excepted outout along with working demo for your easy reference.

Expected_Output(Image_to_PDF).pdf (147.7 KB)

Aspose_Output(Image_to_PDF).pdf (403.3 KB)

AsposePdf.zip (4.0 MB)

Please let us know in case of any additional support required.

Thanks in advance.

@vbhattsynoptek

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): PDFNET-56444

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.