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

Layer missing after PDF conversion to TIFF

$
0
0
I am using the following code to convert from PDF to TIFF, and the resulting TIFF is missing the data from the layer called G-ANNO-TTLB-EROS.  I have tried adjusting the resolution and using different CompressionType and ColorDepth.

//set output filename
string convertedTif = <path to output TIFF>;

//open document
Aspose.Pdf.Document originalDoc = new Aspose.Pdf.Document(<path to source PDF>);

//create Resolution object
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
//create TiffSettings object
Aspose.Pdf.Devices.TiffSettings tiffSettings = new Aspose.Pdf.Devices.TiffSettings();
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.None;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.Landscape;
tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
tiffSettings.SkipBlankPages = false;
//create TIFF device
Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, tiffSettings);
//convert a particular page and save the image to stream
tiffDevice.Process(originalDoc, convertedTif);
originalDoc.Dispose();

Viewing all articles
Browse latest Browse all 3131

Trending Articles