[repo] Format, clippy clean, FORMATS.md, the full crate table in DEPENDENCIES.md

This commit is contained in:
2026-11-16 13:58:06 +01:00
parent 196802863a
commit a06e3f9b73
17 changed files with 2708 additions and 2125 deletions
+2 -3
View File
@@ -20,7 +20,7 @@ mod security;
pub use edit::*;
pub use engine::Engine;
pub use error::PdfError;
pub use geometry::{ViewRect, ViewPoint};
pub use geometry::{ViewPoint, ViewRect};
pub use pages::*;
pub use reader::*;
pub use redact::{RedactOptions, Redacted, Redaction, redact};
@@ -28,8 +28,7 @@ pub use security::{is_encrypted, protect, unlock};
/// lopdf loading with the caps Pictor uses everywhere (a stream may decompress to at most 256 MiB).
pub(crate) fn lopdf_load(bytes: &[u8], password: Option<&str>) -> Result<lopdf::Document, PdfError> {
let mut opts = lopdf::LoadOptions::default();
opts.max_decompressed_size = Some(256 << 20);
let mut opts = lopdf::LoadOptions { max_decompressed_size: Some(256 << 20), ..Default::default() };
if let Some(p) = password {
opts.password = Some(p.to_owned());
}