Exportieren Sie das Arbeitsblatt von Excel nach SVG

Go-Bibliothek zum Exportieren von WORKSHEET in die Datei SVG

Verwenden Sie Export API von Cells Cloud, um interne Objektworkflows der Datei Excel in Go zu exportieren. Dies ist eine professionelle Lösung zum Exportieren von WORKSHEET in eine Datei im SVG-Format aus einer Tabellenkalkulation online mit Go.

Exportieren Sie das WORKSHEET-Objekt mit dem Cloud SDK for Go Cells in eine Datei im Format SVG

API
POST
https://api.aspose.cloud/v3.0/cells/export

Das Exportieren eines WORKSHEET-Objekts aus der Datei Excel in die Datei SVG ist eine komplexe Aufgabe. Der Export von WORKSHEET in das SVG-Format wird von unserem Go SDK durchgeführt, während der strukturelle und logische Hauptinhalt der Quell-WORKSHEET-Tabelle erhalten bleibt. Unsere Go-Bibliothek ist eine professionelle Lösung zum Online-Export von WORKSHEET-Objekten in Dateien im Format SVG. Dieses Cloud SDK bietet Go-Entwicklern leistungsstarke Funktionalität und eine perfekte SVG-Ausgabe.

Codebeispiel in Go mit REST API zum Exportieren von WORKSHEET in das SVG-Format aus der Tabellenkalkulation

// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-go/
    package main
    import (
	    "encoding/base64"
	    "os"
	    asposecellscloud "github.com/aspose-cells-cloud/aspose-cells-cloud-go/v22"
    )
    func main() {
	    instance := asposecellscloud.NewLightCellsApiService(os.Getenv("ProductClientId"), os.Getenv("ProductClientSecret"))
	    var files map[string]string
	    files = make(map[string]string)
	    files["Book1.xlsx"] = "C:/Book1.xlsx"
	    files["myDocument.xlsx"] = "C:/myDocument.xlsx"
	    postExportOpts := new(asposecellscloud.PostExportOpts)
	    postExportOpts.ObjectType = "worksheet"
	    postExportOpts.Format = "svg"
	    filesresult, _, err := instance.PostExport(files, postExportOpts)
	    if err != nil {
		    return
	    }
	    print(filesresult.Files[0].Filename)
	    originalStringBytes, err1 := base64.StdEncoding.DecodeString(filesresult.Files[0].FileContent)
	    if err1 != nil {
		    return
	    }
	    f, err2 := os.Create(filesresult.Files[0].Filename)
	    if err2 != nil {
		    return
	    }
	    _, err3 := f.Write(originalStringBytes)
	    if err3 != nil {
		    return
	    }
	    f.Close()
    }

So verwenden Sie Cells Cloud SDK für Go, um Objekte von Excel WORKSHEET nach SVG zu exportieren

  1. Registrieren Sie ein Konto unterArmaturenbrett um ein kostenloses API-Kontingent und Autorisierungsdetails zu erhalten
  2. Initialisieren Sie Cells API mit Ihrer Client-ID, Ihrem Client-Geheimnis, Ihrer Basis-URL und Ihrer Version API.
  3. Verwenden Sie die Methode `postExport`, um den resultierenden Stream abzurufen.

System Anforderungen

  1. Go-Version go1.13.0 oder neuer