DWFx 도면
Contents
[
Hide
]DWFx 도면
DWFx는 DWF 파일 형식의 최신 버전입니다. DWFx 파일은 Autodesk CAD 소프트웨어로 생성된 2D 또는 3D 도면입니다. 이는 XML 종이 사양(XPS)을 기반으로 하며, 따라서 Microsoft XPS Viewer로 볼 수 있고 인쇄할 수 있습니다.
Aspose.CAD for Java는 개발자들이 DWFx 파일을 열고 PDF 형식으로 내보낼 수 있도록 합니다. 다음은 DWFx 파일을 열고 PDF 형식으로 저장하는 방법을 보여주는 코드입니다.
This file contains hidden or 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-Java | |
String SourceDir = Utils.getDataDir_DWFXDrawings(); | |
String OutputDir = Utils.getDataDir_Output(); | |
String filePath = SourceDir + "Tyrannosaurus.dwfx"; | |
Image cadImageDwf = Image.load(filePath); | |
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions(); | |
rasterizationOptions.setPageWidth(cadImageDwf.getSize().getWidth()); | |
rasterizationOptions.setPageHeight(cadImageDwf.getSize().getHeight()); | |
PdfOptions CADf = new PdfOptions(); | |
CADf.setVectorRasterizationOptions(rasterizationOptions); | |
cadImageDwf.save(OutputDir + "OpenDwfxFile_out.pdf", CADf); |