试用最新版的aspose.cad 20.10 将工程图dwg格式的转为pdf后,左上角文字以右上角旋转了180°,其余文字,位置错乱,文字大小缩放不一,图纸明显变窄。附件已上传文件、转换后的文件、以及其他软件转换后的文件。resultPDF.pdf (3.3 MB)
其他软件所得.pdf (523.4 KB)
AsposeTest.zip (3.9 MB)
` using (Aspose.CAD.Image image = Aspose.CAD.Image.Load(path))
{
Aspose.CAD.ImageOptions.CadRasterizationOptions rasterizationOptions = new Aspose.CAD.ImageOptions.CadRasterizationOptions();
rasterizationOptions.PageWidth = 420;
rasterizationOptions.PageHeight = 297;
rasterizationOptions.AutomaticLayoutsScaling = true;
rasterizationOptions.BackgroundColor = Aspose.CAD.Color.White;
rasterizationOptions.DrawColor = Aspose.CAD.Color.Black;
rasterizationOptions.DrawType = Aspose.CAD.FileFormats.Cad.CadDrawTypeMode.UseDrawColor;
rasterizationOptions.NoScaling = false;
rasterizationOptions.ExportAllLayoutContent = true;
Aspose.CAD.ImageOptions.PdfOptions pdfOptions = new Aspose.CAD.ImageOptions.PdfOptions();
pdfOptions.VectorRasterizationOptions = rasterizationOptions;
image.Save(outpath, pdfOptions);
}`