INNER CODE UNIT · Rust
test_create_pdf_defaults
matiaskorhonen/paper-age · src/convenience.rs:105
fn test_create_pdf_defaults() {
let result = create_pdf(
"Test Document".to_string(),
&mut &b"hello world"[..],
"passphrase",
None,
None,
None,
None,
);
assert!(result.is_ok());
let bytes = result.unwrap();
assert!(!bytes.is_empty());
}
#[test]
fn test_create_pdf_with_options() {
let result = create_pdf(