Aspose.PDF for Rust via C++
Contents
[
Hide
]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. |
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
Function | Description |
---|---|
optimize | Optimize PDF-document content. |
optimize_resource | Optimize resources of PDF-document. |
grayscale | Convert PDF-document to black and white. |
rotate | Rotate PDF-document. |
set_background | Set PDF-document background color using RGB values. |
repair | Repair PDF-document. |
page_rotate | Rotate a page in the PDF-document. |
page_set_size | Set the size of a page in the PDF-document. |
page_grayscale | Convert page to black and white. |
page_add_text | Add text on page. |
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. |
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,
}