Hi, We have Aspose Total.net
license and we are trying to convert XML to tif.
We used Aspose.pdf and Aspose.Tasks example mentioned on your portal but nothing is working.
with pdf below is the code and its giving a blank tif file.
Aspose.Pdf.Document document = new Aspose.Pdf.Document();
document.BindXml(fileDetail.FileInfo.FullName);
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
var settings = new Aspose.Pdf.Devices.TiffSettings()
{
Compression = Aspose.Pdf.Devices.CompressionType.LZW,
Depth = Aspose.Pdf.Devices.ColorDepth.Format8bpp
};
Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, settings);
tiffDevice.Process(document, fileDetail.OutputPath);
with Tasks
Its throwing an error of “The project format is undefined”
even in your portal you have used the same code.
Aspose.Tasks.Project project = new Aspose.Tasks.Project(fileDetail.FileInfo.FullName);
var options = new Aspose.Tasks.Saving.ImageSaveOptions(Aspose.Tasks.Saving.SaveFileFormat.TIFF);
options.HorizontalResolution = 300;
options.VerticalResolution = 300;
options.TiffCompression = Aspose.Tasks.Saving.TiffCompression.Lzw;
options.PixelFormat = System.Drawing.Imaging.PixelFormat.Format32bppArgb;
project.Save(fileDetail.OutputPath, options);
We need a quick solution how we can convert this.