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

Convert PDF to TIFF doesn't work

$
0
0
I use the latest PDF 4.6.0 for java


I load a simple PDF File and try to convert it as TIFF, I tried differnet ways also with TIFFDevice, but still the same error!

I do this with the attached pdf file

        Resolution resolution = new Resolution(300);
       
        TiffSettings tiffSettings = new TiffSettings();
        tiffSettings.setCompression(CompressionType.LZW);
        tiffSettings.setDepth(ColorDepth.Format8bpp);
        tiffSettings.setSkipBlankPages(false);
       
        PdfConverter pdfConverter = new PdfConverter();
        pdfConverter.bindPdf("/app/images/tmp/1.pdf");           
        pdfConverter.setResolution(resolution);
           
        pdfConverter.saveAsTIFF("/app/images/tmp/1.tif", tiffSettings);

and get this error

class com.aspose.ms.System.g: Key cannot be null
Parameter name: key
com.aspose.ms.System.a.j.get_Item(Unknown Source)
com.aspose.pdf.b.b.d$a.d(Unknown Source)
com.aspose.pdf.b.f.b.g(Unknown Source)
com.aspose.pdf.devices.d.a(Unknown Source)
com.aspose.pdf.devices.d.cTs(Unknown Source)
com.aspose.pdf.devices.TiffDevice.processInternal(Unknown Source)
com.aspose.pdf.devices.DocumentDevice.process(Unknown Source)
com.aspose.pdf.facades.PdfConverter.a(Unknown Source)
com.aspose.pdf.facades.PdfConverter.saveAsTIFF(Unknown Source)
it.siag.microfilmmanager.StartImport.<init>(StartImport.java:56)
it.siag.microfilmmanager.MfMImportServiceMain.main(MfMImportServiceMain.java:7)
Exception in thread "main" java.lang.RuntimeException: class com.aspose.ms.System.g: Key cannot be null
Parameter name: key
com.aspose.ms.System.a.j.get_Item(Unknown Source)
com.aspose.pdf.b.b.d$a.d(Unknown Source)
com.aspose.pdf.b.f.b.g(Unknown Source)
com.aspose.pdf.devices.d.a(Unknown Source)
com.aspose.pdf.devices.d.cTs(Unknown Source)
com.aspose.pdf.devices.TiffDevice.processInternal(Unknown Source)
com.aspose.pdf.devices.DocumentDevice.process(Unknown Source)
com.aspose.pdf.facades.PdfConverter.a(Unknown Source)
com.aspose.pdf.facades.PdfConverter.saveAsTIFF(Unknown Source)
it.siag.microfilmmanager.StartImport.<init>(StartImport.java:56)
it.siag.microfilmmanager.MfMImportServiceMain.main(MfMImportServiceMain.java:7)
    at com.aspose.pdf.facades.PdfConverter.saveAsTIFF(Unknown Source)
    at it.siag.microfilmmanager.StartImport.<init>(StartImport.java:56)
    at it.siag.microfilmmanager.MfMImportServiceMain.main(MfMImportServiceMain.java:7)


Viewing all articles
Browse latest Browse all 3131

Trending Articles