save_n_up
Converts and saves the previously opened PDF-document as a N-Up PDF-document.
pub fn save_n_up(&self, filename: &str, columns: i32, rows: i32) -> Result<(), PdfError>
Arguments
- filename - the path to the output file
- columns - the number of columns
- rows - the number of rows
Returns
- Ok(()) - if the operation succeeds
- Err(PdfError) - if the operation fails
Example
use asposepdf::Document;
fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Open a PDF-document with filename
    let pdf = Document::open("sample.pdf")?;
    // Convert and save the previously opened PDF-document as N-Up PDF-document
    pdf.save_n_up("sample_n_up.pdf", 2, 2)?;
    Ok(())
}