I currently have an application that converts a PDF to TIF using your Aspose PDF .NET. It’s been working great, but today I was informed that some PDFs are missing data in the resulting TIF images. My application is currently using an older version of Aspose PDF (v7.0.0.0), but I have tried converting with your latest trial version and have the same issue.
I’ve attached the PDF that I’m having an issue with to this post. At the bottom are two signatures. When I convert this PDF to a TIF, the top signature is missing in the resulting TIF! Why is this? Here is my code:
public void ConvertPDFtoTIF(string filename, int resolution = 300)
{
try
{
//create Resolution object
Resolution res = new Resolution(resolution);<span style="color:#2b91af;">PdfConverter</span> pdfConverter = <span style="color:blue;">new</span> <span style="color:#2b91af;">PdfConverter</span>(); pdfConverter.Resolution = <span style="color:blue;">new</span> <span style="color:#2b91af;">Resolution</span>(resolution); pdfConverter.BindPdf(filename); pdfConverter.DoConvert(); <span style="color:green;">//create TiffSettings object and set ColorDepth</span> <span style="color:#2b91af;">TiffSettings</span> tiffSetting = <span style="color:blue;">new</span> <span style="color:#2b91af;">TiffSettings</span>(); tiffSetting.Depth = <span style="color:#2b91af;">ColorDepth</span>.Format1bpp; tiffSetting.Compression = <span style="color:#2b91af;">CompressionType</span>.CCITT4; <span style="color:#2b91af;">FileInfo</span> fi = <span style="color:blue;">new</span> <span style="color:#2b91af;">FileInfo</span>(filename); <span style="color:blue;">string</span> tempfile = fi.DirectoryName + <span style="color:#a31515;">"\\output.tif"</span>; <span style="color:green;">//convert to TIFF image</span> pdfConverter.SaveAsTIFF(tempfile, tiffSetting); pdfConverter.Close();</pre>Am I missing something here to retain this signature/image? I don't believe it's a field or secured in any way. Thank you for your time.<br><br>Kindest Regards,<br><br>Nelson<br>