Hi,
We are converting pdf document into Tiff image by using Aspose.dll (Please refer below code for more information). We are facing an clarity issue with converted Tiff from PDF by using resolution as 75.
For using resolution as 75 and PDF of 10MB, we are getting Tiff image is of size 23MB.But we are facing clarity issue(blurry) on hand written document.
For using resolution as 100 and PDF of 10MB, we are getting Tiff image is of size 41MB.But still image is not clear(blurry) on hand written document.
For using resolution as 200 and PDF of 10MB, we are getting Tiff image is of size 166MB. Image are better compare to other less resolution, but Size of the document is getting incresed by 16 times of original PDF.
Please suggest us a solution, to get fine view images with less size. It would be a greatfull, if I get solution for this.
Here is the sample code which we are using.
Sample 1:
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(inputPath);
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(200);
PdfDevices.TiffSettings tiffSettings = new PdfDevices.TiffSettings();
tiffSettings.Compression = PdfDevices.CompressionType.None;
tiffSettings.Depth = PdfDevices.ColorDepth.Default;
tiffSettings.Shape = PdfDevices.ShapeType.None;
tiffSettings.SkipBlankPages = false;
// Create TIFF device
Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, tiffSettings);
// Convert a particular page and save the image to stream
tiffDevice.Process(pdfDocument, outputPath);
Sample 2:
Config:
<setting name="Resolution" serializeAs="String">
<value>300</value>
</setting>
<setting name="ColorDepth" serializeAs="String">
<value>Format1bpp</value>
</setting>
<setting name="Compression" serializeAs="String">
<value>CCITT4</value>
</setting>
Code:
converter.Resolution = new Aspose.Pdf.Devices.Resolution(Properties.Settings.Default.Resolution);
converter.BindPdf(inputPath);
converter.DoConvert();
PdfDevices.TiffSettings tiffSettings = new PdfDevices.TiffSettings();
tiffSettings.Depth = (PdfDevices.ColorDepth)Enum.Parse(typeof(PdfDevices.ColorDepth), Properties.Settings.Default.ColorDepth, true); //PdfDevices.ColorDepth.Format1bpp;
tiffSettings.Compression = (PdfDevices.CompressionType)Enum.Parse(typeof(PdfDevices.CompressionType), Properties.Settings.Default.Compression, true);
// use higher performance interface impl.
WinAPIIndexBitmapConverter bitmapConverter = new WinAPIIndexBitmapConverter();
converter.SaveAsTIFF(outputPath, tiffSettings, bitmapConverter);
converter.Close();