Dear Aspose Team,
i have issue in image (jpg/jpeg/tiff/tif/png/) to pdf conversion.During the conversion, it changes the image dpi value in output pdf file.
Issue Scenario: Capture.JPG (42.6 KB)
Aspose(Java) library Detail:
i use below Aspose Library for Conversion.
Aspose.Imaging V19.7
Aspose.pdf V19.7
i attached input and actual output fx1.zip (26.2 KB) gr18.zip (1.4 MB)
Code for check dpi value in pdf file
com.aspose.pdf.Document document = new com.aspose.pdf.Document(“C:\Users\Java\Desktop\Doc1.docxopts.pdf”);
Dear @Adnan.Ahmad,
I tried above code snippet, it changes the image height and width only. DPI value is automatically set as per height and width, but i want to set original image Dpi value to output Pdf file
I like to inform that i have worked with your issue in detail. Can you please share more sample files along with generated result for testing purpose. Also please explain your issue in more details.
I have worked with source file shared by you. Can you please try to use following sample code on your end. This will help you to achieve your requirements. Please share feedback with us if there is still an issue.
Please add imports for raster images and share feedback with us if there is still an issue. It is working fine on my end, only you need to add imports.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.