Problems when converting dwg to pdf

Currently, we are testing converting documents or dwg files with the viewer package uploaded to nuget.
However, some dwg files do not convert properly like the text set doesn’t match.
I am currently testing to purchase a product from GroupDocs. Is there any other way to fix these errors or to be more comfortable?

@jongmin

Welcome to GorupDocs Forum!
Can you please attach the files that you’re converting, so we could take a look?

I can’t upload my file because it’s too big (10.4MB).
Do you have any other way?

this is my google drive link
https://drive.google.com/drive/folders/170_6HAxhhfq1lm0JhUt1vTUjByK-pNuu?usp=sharing

@jongmin

Thank you for uploading the sample files and screenshots. We’ll take a look and return back to you.

@jongmin

Your file contains multiple layouts, so to convert all layouts
please set options.CadOptions.RenderLayouts to true.
Sample code:

using(GroupDocs.Viewer.Viewer viewer = new Viewer("home_floor_plan.dwg"))
{
	var options = new PdfViewOptions("result.pdf");
	// Please set this property to true if you need to convert all layouts
	options.CadOptions.RenderLayouts = true;
    viewer.View(options);
}

I used your sample code but got an error
(Could not load file. File is corrupted or damaged.)

error.png (1.9 KB)

But this site doesn’t throw any errors

Please help me

@jongmin

Can you please share which version of GroupDocs.Viewer you’re using, targeting framework, and OS. Thanks

@jongmin

You need to set a license. Code with the license set:

    License license = new License();
    license.SetLicense("license-file.lic");

    using (Viewer viewer = new Viewer("home_floor_plan.dwg"))
    {
        var options = new PdfViewOptions("result.pdf");
        options.CadOptions.RenderLayouts = true;
        viewer.View(options);
    }

@vladimir.litvinchik
GroupDocs.Viewer 22.5.0
.Net Framework 4.5
Windows Server 2019 Standard / Windows 10
thanks

@mikhail.evgrafov.aspose

License has been set
But pages 8 and 9 are not converted.

@jongmin

Thank you for sharing the details and the output file. We’ll take a look and update you.

@jongmin

Your issue is reproduced, we created ticket VIEWERNET-4022 in our internal tracker. We’ll update you as soon as we have any information.

thank you so much

@jongmin

You’re welcome!