DWFx-tekening

DWFx-tekening

DWFx is de nieuwste versie van het DWF-bestandsformaat. Een DWFx-bestand is een 2D- of 3D-tekening gemaakt met Autodesk CAD-software. Het is gebaseerd op de XML Paper Specification (XPS) en kan daarom worden bekeken en afgedrukt met de Microsoft XPS Viewer.

Aspose.CAD voor .NET stelt ontwikkelaars in staat om DWFx-bestanden te openen en te exporteren naar PDF-indeling. Hieronder staat de code die laat zien hoe je DWFx-bestanden kunt openen en ze in PDF-indeling kunt opslaan.

// 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);
}