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

Invalid fonts rendered (PDF-> TIFF conversion)

$
0
0
Hello,

During conversion from attached pdf to tiff the fonts are incorrectly rendered. The code I use:
Aspose version 9.7.0.
Resolution resolution = new Resolution(300);TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = CompressionType.CCITT4;
tiffSettings.Depth = ColorDepth.Format1bpp;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.None;
tiffSettings.SkipBlankPages = false;
var tiffDevice = new TiffDevice(resolution, tiffSettings);
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document("invalid_font.pdf");
pdfDocument.Form.Type = FormType.Standard;using (var tempStream = new MemoryStream())
{    pdfDocument.Save(tempStream);    var standardPdf = new Aspose.Pdf.Document(tempStream));    tiffDevice.Process(standardPdf, "output.tif");
}


Viewing all articles
Browse latest Browse all 3131

Trending Articles