| Crates.io | duc2pdf |
| lib.rs | duc2pdf |
| version | 2.3.1 |
| created_at | 2025-10-21 13:04:32.46022+00 |
| updated_at | 2025-12-16 21:34:27.883531+00 |
| description | A library to convert DUC files to PDF format. |
| homepage | |
| repository | https://github.com/ducflair/duc/tree/main/packages/ducpdf/src/duc2pdf |
| max_upload_size | |
| id | 1893781 |
| size | 532,797 |
Rust CLI Tool for duc to PDF Conversion
The duc2pdf crate provides a robust Rust implementation for converting duc 2D CAD files to PDF format. Designed for professionals seeking precision and efficiency, this crate ensures industry-grade PDF output that adheres to ISO 32000-2 standards.
The duc2pdf crate offers comprehensive Rust types and helper functions to convert duc CAD files to high-quality PDF documents. Built with efficiency and performance in mind, this crate enables you to process complex CAD data and generate professional PDF output for sharing, printing, and archiving.
For a 2D CAD industry grade PDF export, we need to adhere to the ISO 32000-2 which PDFs support, ensuring precise vector graphics, proper scaling, and accurate color representation.
duc to PDF conversion process, ensuring type safety and performance.Install the crate using Cargo:
cargo add duc2pdf
Or install the CLI tool:
cargo install duc2pdf
use duc2pdf::*;
// Convert duc file to PDF
let result = duc2pdf::convert("input.duc", "output.pdf").unwrap();
duc2pdf input.duc output.pdf
For detailed documentation, including all available types and utility functions, visit our Documentation.
Playground: Experiment with the duc format in a live environment.
Documentation: Comprehensive guides and API references.
This project is licensed under the MIT License. See the LICENSE file for more details.
To ensure smooth releases with semantic-release, please follow these guidelines.
The duc format and libraries are constantly evolving, aiming to set new standards in the 2D CAD industry. Be a part of this transformation and help shape the future of design technology!