Skip to main content

Crate duc2pdf

Crate duc2pdf 

Source

Modules§

builder
scaling
Data scaling utilities for DUC to PDF conversion
streaming
utils

Structs§

ConversionOptions

Enums§

ConversionError
ConversionMode

Constants§

MAX_COORDINATE_MM
MIN_PRECISION_MM
PDF_USER_UNIT

Functions§

calculate_bounding_box
Calculate bounding box for DUC data in millimeters
calculate_required_scale
Calculate required scale to fit content within safe bounds
calculate_required_scale_with_crop_dimensions
Calculate required scale to fit both content AND crop dimensions within safe bounds
convert_exported_data_to_pdf_wasm
convert_exported_data_to_pdf_with_fonts_and_options
validate_coordinates
Validates coordinates are within safe bounds
validate_coordinates_with_scale
Validates coordinates are within safe bounds with optional scaling
validate_precision
Validates precision is above minimum threshold

Type Aliases§

ConversionResult