Exportieren Sie BILD von Excel nach TIFF

Java-Bibliothek zum Exportieren von PICTURE in die Datei TIFF

Verwenden Sie Export API von Cells Cloud, um Excel Datei-interne Objekt-Workflows in Java zu exportieren. Dies ist eine professionelle Lösung, um PICTURE online mit Java aus einer Tabellenkalkulation in das Format TIFF zu exportieren.

Exportieren Sie das PICTURE-Objekt mit dem Cells Cloud SDK for Java in eine Datei im Format TIFF

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

Das Exportieren des PICTURE-Objekts aus der Datei Excel in die Datei TIFF ist eine komplexe Aufgabe. Der Export von PICTURE-Formatübergängen in das TIFF-Format wird von unserem Java-SDK durchgeführt, während der strukturelle und logische Hauptinhalt der PICTURE-Quelltabelle erhalten bleibt. Unsere Java-Bibliothek ist eine professionelle Lösung, um PICTURE-Objekte online in Dateien im Format TIFF zu exportieren. Dieses Cloud SDK bietet Java Entwicklern leistungsstarke Funktionalität und eine perfekte TIFF Ausgabe.

Codebeispiel in Java mit REST API zum Exportieren von PICTURE in das Format TIFF aus der Tabellenkalkulation

// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/
    import java.io.*;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Base64;
    import com.aspose.cloud.cells.api.*;
    import com.aspose.cloud.cells.model.*;
    public class Export {
        public static void main(String[] args) {
            String format = "tiff";
            String objectType = "picture";
            HashMap<String,File> fileMap = new HashMap<String,File>();
            fileMap.put("Book1.xlsx" ,new File("C:\Book1.xlsx") );
            fileMap.put("myDocument.xlsx" ,new File("C:\myDocument.xlsx") );
            try {
                LightCellsApi cellsApi = new LightCellsApi(System.getenv("ProductClientId"), System.getenv("ProductClientSecret"),"v3.0","https://api.aspose.cloud");
                FilesResult response = cellsApi.postExport(fileMap,objectType, format,null);            
                List<FileInfo> files = response.getFiles();
                String filename = files.get(0).getFilename();
                String fileContent = files.get(0).getFileContent();
                byte[] data = Base64.getDecoder().decode(fileContent);
                OutputStream outputStream = new FileOutputStream(filename);
                outputStream.write(data,0,data.length);
                outputStream.close();
            }catch(Exception exception )
            {
                System.out.print(exception);
            }
        }
    }

So verwenden Sie Cells Cloud SDK for Java, um Objekte von Excel PICTURE nach TIFF 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. Maven 2.2.0 oder neuer
  2. Java(TM) SE-Laufzeitumgebung