mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-23 03:07:13 +00:00
pdfgutter: drop a doctest marker from prose
This commit is contained in:
@@ -143,14 +143,13 @@ nothing to do.
|
|||||||
## As a library
|
## As a library
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
let mut pdf = pdfgutter::pdf::Pdf::open(std::path::Path::new("scan.pdf"))?;
|
let mut pdf = pdfgutter::pdf::Pdf::open(Path::new("scan.pdf"))?;
|
||||||
for index in pdfgutter::sample_indices(pdf.len()) {
|
for index in pdfgutter::sample_indices(pdf.len()) {
|
||||||
println!("page {} ratio {:.2}", index + 1, pdf.geometry(index).ratio());
|
println!("page {} ratio {:.2}", index + 1, pdf.geometry(index).ratio());
|
||||||
}
|
}
|
||||||
let pages = pdf.split(pdfgutter::MIN_RATIO);
|
let pages = pdf.split(pdfgutter::MIN_RATIO);
|
||||||
pdf.save(std::path::Path::new("split.pdf"))?;
|
pdf.save(Path::new("split.pdf"))?;
|
||||||
println!("{pages} pages");
|
println!("{pages} pages");
|
||||||
# Ok::<(), pdfgutter::pdf::Error>(())
|
|
||||||
```
|
```
|
||||||
|
|
||||||
`pdfgutter::has_gutter` takes a column ink profile and answers on its own, for
|
`pdfgutter::has_gutter` takes a column ink profile and answers on its own, for
|
||||||
|
|||||||
Reference in New Issue
Block a user