DWG to PDF conversion issue

Dear Team,

I am unable to convert DWG to PDF file. I have tried converting using Aspose online converter too. But after conversion it is not showing any data. Please find below sample.
1742309033968.zip (1.6 MB)

Regards
XCoder

@perfectdata.techno

Can you please provide more details about the method or code you are using for the DWG to PDF conversion and any error messages you are encountering?

I have tried online DWG to PDF Converter. Motherways i have tried code in c# but its faling too.

//Export modified image
Aspose.CAD.Image cadImage1 = Aspose.CAD.Image.Load(strTreePath) ; //Source path
PdfOptions pdfOptions = new PdfOptions();
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
pdfOptions.VectorRasterizationOptions = cadRasterizationOptions;
cadRasterizationOptions.DrawType = CadDrawTypeMode.UseObjectColor;
//cadRasterizationOptions.CenterDrawing = true;
cadRasterizationOptions.PageHeight = iPageHeight;
cadRasterizationOptions.PageWidth = iPageWidth;
cadRasterizationOptions.Layouts = new string[] { “Model” };
cadImage1.Save(strSavingPath, pdfOptions);

XCoder

@perfectdata.techno,
Hello.
The result is empty because Model layout is empty in this drawing. All data are on the Layout1, please try to use these options (you could also don’t set Layouts property at all):

 options.Layouts = new string[] {"Layout1" };
 options.ExportAllLayoutContent = true;          

These examples could be useful to get names of all layout in the file and get the quantity of entities on Model layout:

 foreach (string layoutName in cadImage.Layouts.Keys)
 {
     System.Console.WriteLine(layoutName);
 }

 foreach (DictionaryEntry block in cadImage.BlockEntities)
 {
     CadBlockEntity blockEntity = (CadBlockEntity)block.Value;
    
     if (blockEntity.Name.ToLower() == "*model_space")
     {
         System.Console.WriteLine(blockEntity.Entities.Count);
     }
 }