Skip to content

Commit 76b5cb2

Browse files
Aspose.PDF for Rust via C++: save_svg_zip
1 parent 1e6d7e7 commit 76b5cb2

File tree

3 files changed

+67
-27
lines changed

3 files changed

+67
-27
lines changed

english/rust-cpp/_index.md

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pub struct Document { /* private fields */ }
3939
| [save_markdown](./convert/save_markdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
4040
| [save_tiff](./convert/save_tiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
4141
| [save_docx_enhanced](./convert/save_docx_enhanced/) | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
42+
| [save_svg_zip](./convert/save_svg_zip/) | Convert and save the previously opened PDF-document as SVG-archive. |
4243
| [export_fdf](./convert/export_fdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
4344
| [export_xfdf](./convert/export_xfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
4445
| [export_xml](./convert/export_xml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |
@@ -106,6 +107,34 @@ pub struct Document { /* private fields */ }
106107
| [about](./miscellaneous/about/) | Return metadata information about the Aspose.PDF for Rust via C++. |
107108

108109

110+
111+
# Structs secondary
112+
113+
## ProductInfo contains metadata about the Aspose.PDF for Rust via C++.
114+
```rust
115+
#[derive(Debug, Deserialize)]
116+
pub struct ProductInfo {
117+
#[serde(rename = "product")]
118+
pub product: String,
119+
120+
#[serde(rename = "family")]
121+
pub family: String,
122+
123+
#[serde(rename = "version")]
124+
pub version: String,
125+
126+
#[serde(rename = "releasedate")]
127+
pub release_date: String,
128+
129+
#[serde(rename = "producer")]
130+
pub producer: String,
131+
132+
#[serde(rename = "islicensed")]
133+
pub is_licensed: bool,
134+
}
135+
```
136+
137+
109138
# Enums
110139

111140
## Enumeration of possible page size values.
@@ -153,30 +182,3 @@ pub enum Rotation {
153182
On360 = 4,
154183
}
155184
```
156-
157-
158-
# Structs
159-
160-
## ProductInfo contains metadata about the Aspose.PDF for Rust via C++.
161-
```rust
162-
#[derive(Debug, Deserialize)]
163-
pub struct ProductInfo {
164-
#[serde(rename = "product")]
165-
pub product: String,
166-
167-
#[serde(rename = "family")]
168-
pub family: String,
169-
170-
#[serde(rename = "version")]
171-
pub version: String,
172-
173-
#[serde(rename = "releasedate")]
174-
pub release_date: String,
175-
176-
#[serde(rename = "producer")]
177-
pub producer: String,
178-
179-
#[serde(rename = "islicensed")]
180-
pub is_licensed: bool,
181-
}
182-
```

english/rust-cpp/convert/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ url: /rust-cpp/convert/
2323
| [save_markdown](./save_markdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
2424
| [save_tiff](./save_tiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
2525
| [save_docx_enhanced](./save_docx_enhanced/) | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
26+
| [save_svg_zip](./save_svg_zip/) | Convert and save the previously opened PDF-document as SVG-archive. |
2627
| [export_fdf](./export_fdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
2728
| [export_xfdf](./export_xfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
2829
| [export_xml](./export_xml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: "save_svg_zip"
3+
second_title: Aspose.PDF for Rust via C++
4+
description: "Converts and saves the previously opened PDF-document as a SVG-archive."
5+
type: docs
6+
url: /rust-cpp/convert/save_svg_zip/
7+
---
8+
9+
_Converts and saves the previously opened PDF-document as a SVG-archive._
10+
11+
```rust
12+
pub fn save_svg_zip(&self, filename: &str) -> Result<(), PdfError>
13+
```
14+
15+
**Arguments**
16+
* **filename** - the path to the output file
17+
18+
**Returns**
19+
* **Ok(())** - if the operation succeeds
20+
* **Err(PdfError)** - if the operation fails
21+
22+
**Example**
23+
24+
```rust
25+
use asposepdf::Document;
26+
27+
fn main() -> Result<(), Box<dyn std::error::Error>> {
28+
// Open a PDF-document with filename
29+
let pdf = Document::open("sample.pdf")?;
30+
31+
// Convert and save the previously opened PDF-document as SVG-archive
32+
pdf.save_svg_zip("sample_svg.zip")?;
33+
34+
Ok(())
35+
}
36+
37+
```

0 commit comments

Comments
 (0)