DWFx ドローイング
Contents
[
Hide
]DWFx ドローイング
DWFxはDWFファイル形式の最新バージョンです。DWFxファイルはAutodesk CADソフトウェアで作成された2Dまたは3Dのドローイングです。これはXML Paper Specification (XPS)に基づいており、したがってMicrosoft XPS Viewerで表示および印刷することができます。
Aspose.CAD for .NETを使用すると、開発者はDWFxファイルを開いてPDF形式にエクスポートすることができます。次に、DWFxファイルを開き、それをPDF形式で保存する方法を示すコードがあります。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cad/Aspose.CAD-for-.NET | |
string SourceDir = RunExamples.GetDataDir_DWFXDrawings(); | |
string OutputDir = RunExamples.GetDataDir_Output(); | |
using (Image cadDrawing = Image.Load(SourceDir + "Tyrannosaurus.dwfx")) | |
{ | |
var rasterizationOptions = new CadRasterizationOptions(); | |
rasterizationOptions.PageWidth = cadDrawing.Size.Width; | |
rasterizationOptions.PageHeight = cadDrawing.Size.Height; | |
PdfOptions CADf = new PdfOptions(); | |
CADf.VectorRasterizationOptions = rasterizationOptions; | |
cadDrawing.Save(OutputDir + "OpenDwfxFile_out.pdf", CADf); | |
} |