Aspose.PDF for Rust via C++
Aspose.PDF for Rust via C++ allows developers manipulate them PDF files directly in the Rust.
Structs
Document
Document represents a PDF-document.
pub struct Document { /* private fields */ }
Implementations
Convert from PDF functions
Function | Description |
---|
save_docx | Convert and save the previously opened PDF-document as DocX-document. |
save_doc | Convert and save the previously opened PDF-document as Doc-document. |
save_xlsx | Convert and save the previously opened PDF-document as XlsX-document. |
save_txt | Convert and save the previously opened PDF-document as Txt-document. |
save_pptx | Convert and save the previously opened PDF-document as PptX-document. |
save_xps | Convert and save the previously opened PDF-document as Xps-document. |
save_tex | Convert and save the previously opened PDF-document as TeX-document. |
save_epub | Convert and save the previously opened PDF-document as Epub-document. |
save_booklet | Convert and save the previously opened PDF-document as booklet PDF-document. |
save_n_up | Convert and save the previously opened PDF-document as N-Up PDF-document. |
save_markdown | Convert and save the previously opened PDF-document as Markdown-document. |
save_tiff | Convert and save the previously opened PDF-document as Tiff-document. |
save_docx_enhanced | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
save_svg_zip | Convert and save the previously opened PDF-document as SVG-archive. |
export_fdf | Export from the previously opened PDF-document with AcroForm to FDF-document. |
export_xfdf | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
export_xml | Export from the previously opened PDF-document with AcroForm to XML-document. |
page_to_jpg | Convert and save the specified page as Jpg-image. |
page_to_png | Convert and save the specified page as Png-image. |
page_to_bmp | Convert and save the specified page as Bmp-image. |
page_to_tiff | Convert and save the specified page as Tiff-image. |
page_to_svg | Convert and save the specified page as Svg-image. |
page_to_pdf | Convert and save the specified page as PDF-document. |
page_to_dicom | Convert and save the specified page as DICOM-image. |
Organize PDF functions
Core PDF functions
Function | Description |
---|
new | Create a new PDF-document. |
open | Open a PDF-document with filename. |
save | Save the previously opened PDF-document. |
save_as | Save the previously opened PDF-document with new filename. |
set_license | Set license with filename. |
extract_text | Return the PDF-document contents as plain text. |
page_add | Add new page in PDF-document. |
page_insert | Insert new page at the specified position in PDF-document. |
page_delete | Delete specified page in PDF-document. |
page_count | Return the number of pages in the PDF-document. |
Miscellaneous
Function | Description |
---|
about | Return metadata information about the Aspose.PDF for Rust via C++. |
Structs secondary
#[derive(Debug, Deserialize)]
pub struct ProductInfo {
#[serde(rename = "product")]
pub product: String,
#[serde(rename = "family")]
pub family: String,
#[serde(rename = "version")]
pub version: String,
#[serde(rename = "releasedate")]
pub release_date: String,
#[serde(rename = "producer")]
pub producer: String,
#[serde(rename = "islicensed")]
pub is_licensed: bool,
}
Enums
Enumeration of possible page size values.
pub enum PageSize {
/// A0 size.
A0 = 0,
/// A1 size.
A1 = 1,
/// A2 size.
A2 = 2,
/// A3 size.
A3 = 3,
/// A4 size.
A4 = 4,
/// A5 size.
A5 = 5,
/// A6 size.
A6 = 6,
/// B5 size.
B5 = 7,
/// PageLetter size.
PageLetter = 8,
/// PageLegal size.
PageLegal = 9,
/// PageLedger size.
PageLedger = 10,
/// P11x17 size.
P11x17 = 11,
}
Enumeration of possible rotation values.
pub enum Rotation {
/// Non-rotated.
None = 0,
/// Rotated on 90 degrees clockwise.
On90 = 1,
/// Rotated on 180 degrees.
On180 = 2,
/// Rotated on 270 degrees clockwise.
On270 = 3,
/// Rotated on 360 degrees clockwise.
On360 = 4,
}