C1.Win.C1Document.Export.TiffFilter export .PDF to Multiple .tif files

Posted by: john.burke on 4 March 2019, 5:22 pm EST

    • Post Options:
    • Link

    Posted 4 March 2019, 5:22 pm EST

    I currently iterate through each page of my .pdf and Export to .tif, one page at a time using C1.Win.C1Document.Export.TiffFilter.Export.

    It looks like you can export all the pages from a .pdf and then access them from the OutputFiles property of the TiffFilter.

    I can’t seem to get this to work. Is there a sample of how to do this with the TiffFilter.

    I do not want to use the UseZipForMultipleFiles.

    I do not want MULTIPAGE .tif files (this seems to be what is happening).

    Thanks,

    John

  • Posted 6 March 2019, 1:09 am EST

    Hello John,

    Single .tiff file is generated when the whole pdf is exported to tiff. This tiff file can be accessed using OutputFiles property, through a List’s instance, as follows:

    C1.Win.C1Document.Export.TiffFilter oExportFilter = new C1.Win.C1Document.Export.TiffFilter();
               string sTiffExtension = oExportFilter.ExportProvider.DefaultExtension;
               oExportFilter.FileName = sTiffFileName;
    
                   oExportFilter.ShowOptions = true;
                   oC1PdfDocumentSource.Export(oExportFilter);
               
            List<string> files=   oExportFilter.OutputFiles; 
            Console.WriteLine(files[0]);  
    
    

    A sample has been attached for your reference.

    Best Regards,

    Esha

    prj_PdfExportToTiff.zip

  • Posted 6 March 2019, 10:17 am EST

    I understand how the TiffFilter works. It currently exports to a MULTI PAGE .TIF.

    I do not want a MULTI PAGE .TIF

    I would like a single .TIF file for each PAGE.

    Is there any way to SPLIT the .PDF or the MULTI PAGE .TIF into a SINGLE PAGE .TIF file for each page in the original .PDF?

  • Posted 7 March 2019, 4:58 am EST

    Hello John,

    The only way to obtain multiple tiff files for each pdf page would be extract the zip folder created when UseZipForMultipleFiles is set to True. This can be done using C1ZipFile instance. However, while exporting pdf to tiff for obtaining a zip file, an issue is observed. This is known to the development team (Internal Tracking ID: 356519) and I will update you with the information, once I receive any.

    As of now, the attached application shows how the zip extraction can be done to a folder, using JpegFilter. You can learn more about C1Zip from the below mentioned documentation:

    https://help.grapecity.com/componentone/NetHelp/c1zip/webframe.html#componentonezipforne.html

    Best Regards,

    Esha

    prj_PdfExport.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels