Skip to content

Commit 64e2305

Browse files
Aspose.PDF for Go via C++: SaveSvgZip
1 parent ebf21d5 commit 64e2305

File tree

3 files changed

+60
-15
lines changed

3 files changed

+60
-15
lines changed

english/go-cpp/_index.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type Document struct {
4040
| [SaveMarkdown](./convert/savemarkdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
4141
| [SaveTiff](./convert/savetiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
4242
| [SaveDocXEnhanced](./convert/savedocxenhanced/) | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
43+
| [SaveSvgZip](./convert/savesvgzip/) | Convert and save the previously opened PDF-document as SVG-archive. |
4344
| [ExportFdf](./convert/exportfdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
4445
| [ExportXfdf](./convert/exportxfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
4546
| [ExportXml](./convert/exportxml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |
@@ -122,6 +123,21 @@ type Document struct {
122123
| [About](./miscellaneous/about/) | Return metadata information about the Aspose.PDF for Go via C++. |
123124

124125

126+
# Types secondary
127+
128+
## ProductInfo contains metadata about the Aspose.PDF for Go via C++.
129+
```go
130+
type ProductInfo struct {
131+
Product string `json:"product"` // Name
132+
Family string `json:"family"` // Family (e.g., "Aspose.PDF")
133+
Version string `json:"version"` // Version
134+
ReleaseDate string `json:"releasedate"` // Release date in ISO format (YYYY-MM-DD)
135+
Producer string `json:"producer"` // Producer
136+
IsLicensed bool `json:"islicensed"` // License status (true if licensed)
137+
}
138+
```
139+
140+
125141
# Constants
126142

127143
## Enumeration of possible rotation values.
@@ -152,18 +168,3 @@ const (
152168
PageSizeP11x17 int32 = 11 // P11x17 size.
153169
)
154170
```
155-
156-
# Structs
157-
158-
## ProductInfo contains metadata about the Aspose.PDF for Go via C++.
159-
```go
160-
type ProductInfo struct {
161-
Product string `json:"product"` // Name
162-
Family string `json:"family"` // Family (e.g., "Aspose.PDF")
163-
Version string `json:"version"` // Version
164-
ReleaseDate string `json:"releasedate"` // Release date in ISO format (YYYY-MM-DD)
165-
Producer string `json:"producer"` // Producer
166-
IsLicensed bool `json:"islicensed"` // License status (true if licensed)
167-
}
168-
```
169-

english/go-cpp/convert/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ url: /go-cpp/convert/
2323
| [SaveMarkdown](./savemarkdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
2424
| [SaveTiff](./savetiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
2525
| [SaveDocXEnhanced](./savedocxenhanced/) | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
26+
| [SaveSvgZip](./savesvgzip/) | Convert and save the previously opened PDF-document as SVG-archive. |
2627
| [ExportFdf](./exportfdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
2728
| [ExportXfdf](./exportxfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
2829
| [ExportXml](./exportxml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "SaveSvgZip"
3+
second_title: Aspose.PDF for Go via C++
4+
description: "Convert and save the previously opened PDF-document as SVG-archive."
5+
type: docs
6+
url: /go-cpp/convert/savesvgzip/
7+
---
8+
9+
_Convert and save the previously opened PDF-document as SVG-archive._
10+
11+
```go
12+
func (document *Document) SaveSvgZip(filename string) error
13+
```
14+
15+
**Parameters**:
16+
* **filename** - new filename
17+
18+
**Return**:
19+
* **error** - contains an error or nil if absent
20+
21+
22+
**Example**:
23+
```go
24+
package main
25+
26+
import "github.com/aspose-pdf/aspose-pdf-go-cpp"
27+
import "log"
28+
29+
func main() {
30+
// Open(filename string) opens a PDF-document with filename
31+
pdf, err := asposepdf.Open("sample.pdf")
32+
if err != nil {
33+
log.Fatal(err)
34+
}
35+
// SaveSvgZip(filename string) saves previously opened PDF-document as SVG-archive with filename
36+
err = pdf.SaveSvgZip("sample_svg.zip")
37+
if err != nil {
38+
log.Fatal(err)
39+
}
40+
// Close() releases allocated resources for PDF-document
41+
defer pdf.Close()
42+
}
43+
```

0 commit comments

Comments
 (0)