The specific operation is as follows: Right click the Reference and select "Manage NuGet Packages.", then type "DocumentUltimate" in the search barĪs for how to use control "Adobe PDF Reader", you can refer to the following thread: Var result = (documentConverter, outputDocument, outputFormat) īefore using it, you need to add "DocumentUltimate" from "NuGet". Var outputFormat = (DocumentFormat)Enum.Parse(typeof(DocumentFormat), "Pdf") Private static void createPdf(string dxfPath, string pdfPath)īackSlashPath documentConverter = new BackSlashPath(dxfPath) īackSlashPath outputDocument = new BackSlashPath(pdfPath) Here is the conversion code: private void import_Click(object sender, EventArgs e) There is an alternative solution is you can convert the dxf file to a pdf file and then use the control "Adobe PDF Reader" to view it instead of the "PictureBox". >Is there an easy way to load dxf files(2D) in picturebox without using autocad ?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |