Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Converting PDF to TIF becomes corrupt

$
0
0
Hello, I'm trying to convert a PDF document to TIF and each time the TIF comes out a garbled mess (completely unreadable).  Is there some font not supported or something I need to add to my conversion code?  Here is my code snippet and attached is the PDF I'm trying to convert.  Thank you very much for your time.

            //create PdfConverter object and bind input PDF file            PdfConverter pdfConverter = new PdfConverter();
            // create Resolution object with 300 as an argument            Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
            // specify the resolution value for PdfConverter object            pdfConverter.Resolution = resolution;
            // bind the source PDF file            pdfConverter.BindPdf(@"D:\Temp\Transfer_Dual_BGA.pdf");
            // start the conversion process            pdfConverter.DoConvert();
            //create TiffSettings object and set ColorDepth            TiffSettings tiffSettings = new TiffSettings();            tiffSettings.Compression = CompressionType.CCITT4;            tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp;
            //convert to TIFF image            pdfConverter.SaveAsTIFF(@"D:\Temp\output.tif", tiffSettings);
            // close Converter object            pdfConverter.Close();            MessageBox.Show("Done!");
I've also tried using the TiffDevice and the Process method and get the same result of a corrupt TIF image (also attached to this message).


Best Regards,
Nelson

Viewing all articles
Browse latest Browse all 3131

Trending Articles