mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 10:39:01 -06:00
Office export encoded and kept a separate copy of an image for every place a page drew it, so a short content stream repeating Do on one large image multiplied it into gigabytes before the writers' limits applied. Each image object is now encoded once and its bytes shared (pdfcraft_export::Image holds an Arc<[u8]>), distinct pictures share a 512 MiB budget whose overflow lists the page as truncated, and RTF, which leaves pictures out, prepares none.
14 lines
268 B
Rust
14 lines
268 B
Rust
//! The crate's integration tests, linked into one test binary.
|
|
|
|
mod support {
|
|
pub mod font_fixture;
|
|
}
|
|
|
|
mod document_fonts;
|
|
mod form_rotation;
|
|
mod marked_content_isolation;
|
|
mod ocr_edit;
|
|
mod office_export_images;
|
|
mod private_image_resize;
|
|
mod private_text_glyphs;
|