Export WORKBOOK to EMF from Excel

Go library for exporting WORKBOOK to EMF file

Use Export API of Cells Cloud to export Excel file internal object workflows in Go. This is a professional solution to export WORKBOOK to EMF format file from spreadsheet online using Go.

Export WORKBOOK object to EMF format file using Cells Cloud SDK for Go

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

Export WORKBOOK object to EMF file from Excel file is a complex task. Export WORKBOOK to EMF format transitions is performed by our Go SDK while maintaining the source WORKBOOK spreadsheet's main structural and logical content. Our Go library is a professional solution to export WORKBOOK objects to EMF format files online. This Cloud SDK gives Go developers powerful functionality and perfect EMF output.

Code example in Go using REST API to export WORKBOOK to EMF format from spreadsheet

// 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 = "workbook"
	    postExportOpts.Format = "emf"
	    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()
    }

How to use Cells Cloud SDK for Go to export objects from Excel WORKBOOK to EMF

  1. Register an account at Dashboard to get free API quota & authorization details
  2. Initialize the Cells API with your Client ID, Client Secret, Base URL, and API version.
  3. Use the `postExport` method to retrieve the resulting stream.

System Requirements

  1. go version go1.13.0 or newer