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?
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
Thank you for uploading the sample files and screenshots. We’ll take a look and return back to you.
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
Can you please share which version of GroupDocs.Viewer you’re using, targeting framework, and OS. Thanks
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
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