I tried to convert image(tiff/ jpeg/ png) to PDF by setting custom dpi resolution value as 300dpi. The image had been converted into pdf but the conversion failed to set dpi resolution value as 300 dpi.
kindly provide a workaround solution.
Attached input file:
DPI Issue.zip (1.4 MB)
Image image = (Image)Image.load(dataDir);
PdfOptions pdfOptions = new PdfOptions();
ResolutionSetting rs=new ResolutionSetting();
dataDir = fileNameWithOutExt+".pdf";