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_duc_to_pdf_crop
Conversion function with crop mode
convert_duc_to_pdf_crop_scaled_wasm
WASM binding for crop conversion with explicit manual drawing scale.
convert_duc_to_pdf_crop_wasm
WASM binding for crop conversion
convert_duc_to_pdf_crop_with_dimensions
Conversion function with crop mode and specific dimensions
convert_duc_to_pdf_crop_with_fonts_scaled_wasm
WASM binding for crop conversion with fonts and explicit manual drawing scale.
convert_duc_to_pdf_crop_with_fonts_wasm
WASM binding for crop conversion with custom font data
convert_duc_to_pdf_crop_with_options
convert_duc_to_pdf_rs
WASM binding for the main conversion function
convert_duc_to_pdf_with_fonts_and_options
Main conversion function with options and custom font data
convert_duc_to_pdf_with_fonts_rs
WASM binding for conversion with custom font data font_map_js: a JS Map<string, Uint8Array> mapping font family names to TTF/OTF bytes
convert_duc_to_pdf_with_fonts_scaled_wasm
WASM binding for standard conversion with fonts and an explicit manual drawing scale.
convert_duc_to_pdf_with_options
Main conversion function with options
convert_duc_to_pdf_with_scale_wasm
WASM binding for standard conversion with an explicit manual drawing scale.
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