Free Support Forum - aspose.com

Blank PDF created from DWF

I used Aspose.CAD for .NET to convert DWF to PDF.
With some DWF the pdf created is blank when page size are declared. An error opening PDF is given when AutomaticLayoutsScaling is used.
Aspose.CAD, Version=20.10.0.0

using (Aspose.CAD.Image image = Aspose.CAD.Image.Load(src_doc))
{
	Aspose.CAD.ImageOptions.CadRasterizationOptions dwfRasterizationOptions = new Aspose.CAD.ImageOptions.CadRasterizationOptions();

	//dwfRasterizationOptions.PageHeight = 1200;
	//dwfRasterizationOptions.PageWidth = 1200;
	dwfRasterizationOptions.AutomaticLayoutsScaling = true;

	Aspose.CAD.ImageOptions.PdfOptions pdfOptions = new Aspose.CAD.ImageOptions.PdfOptions();
	pdfOptions.VectorRasterizationOptions = dwfRasterizationOptions;

	image.Save(dest_doc, pdfOptions);
}

aspose dwf.zip (58.8 KB)

@ilbarzo

I have created an issue with ID CADNET-1281 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

It is certainly a problem reading the DWF file: in Aspose.CAD.Image object, I have no Pages and negative Sizing, using my DWFs.
I attach another DWF examples.
2020-12-09_14-01-53.png (23.7 KB)
TEST DWF (1).zip (77.7 KB)

@ilbarzo

I have appended the information in our issue tracking system and will get back to you with feedback as soon as the issue will be fixed.