remove_tables
Удаляет таблицы из PDF-документа.
pub fn remove_tables(&self) -> Result<(), PdfError>
Arguments
Returns
- Ok(()) - if the operation succeeds
- Err(PdfError) - if the operation fails
Example
use asposepdf::Document;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Откройте PDF‑документ с именем файла
let pdf = Document::open("sample.pdf")?;
// Удалить таблицы из PDF-документа
pdf.remove_tables()?;
// Сохранить ранее открытый PDF-документ с новым именем файла
pdf.save_as("sample_remove_tables.pdf")?;
Ok(())
}