Excel kanggo PowerPoint

Ngonversi Excel menyang PowerPoint ing Jawa

Excel lan PowerPoint minangka rong aplikasi sing akeh digunakake sing penting ing akeh bisnis lan industri. Excel biasane digunakake kanggo nyimpen lan ngatur data, nalika PowerPoint asring digunakake kanggo nggawe presentasi lan slideshow. Ngonversi file Excel menyang presentasi PowerPoint minangka tugas umum sing kudu ditindakake dening akeh wong, lan nindakake kanthi manual bisa mbutuhake wektu lan rawan kesalahan. Ing kirim blog iki, kita bakal menehi pandhuan lengkap babagan carane ngowahi Excel dadi PowerPoint nggunakake Java REST API. Kita bakal nyakup macem-macem teknik sing bisa digunakake kanggo ngotomatisasi proses konversi lan nggawe proses kasebut efisien. Apa sampeyan minangka pangembang utawa profesional bisnis, pandhuan iki bakal mbantu nyepetake alur kerja lan ngirit wektu. Ayo dadi miwiti!

Excel kanggo PowerPoint Conversion API

Aspose.Cells Cloud SDK for Java minangka API berbasis awan sing kuat sing nyedhiyakake macem-macem kemampuan kanggo nggarap file Excel. Sawetara kemampuan utama kalebu Excel kanggo PowerPoint, XLS nganti PDF, XLS nganti HTML, Gabung lan Split file Excel lan liya-liyane. API dirancang supaya fleksibel lan bisa dikustomisasi, mula pangembang bisa mbangun solusi sing cocog karo kabutuhan tartamtu. Ngotomatisasi lan nyepetake tugas sing gegandhengan karo Excel ing méga, tanpa kudu nginstal piranti lunak utawa hardware.

Saiki langkah pisanan yaiku nambah referensi SDK ing proyek Java.

<repositories>
    <repository>
        <id>AsposeJavaAPI</id>
        <name>Aspose Java API</name>
        <url>https://repository.aspose.cloud/repo/</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-cells-cloud</artifactId>
        <version>22.8</version>
    </dependency>
</dependencies>

Yen sampeyan durung langganan Aspose Cloud, mangga gawe akun gratis nggunakake alamat email sing bener. Banjur jupuk ID Klien lan rincian Rahasia Klien saka dashboard.

Ngonversi Excel menyang PowerPoint ing Jawa

Bagean iki nuduhake rincian babagan carane ngowahi Excel menyang PowerPoint nggunakake Java.

  • Gawe conto CellsApi nalika menehi kredensial klien minangka argumen input.
  • Gawe variabel sing ngemot jeneng Excel input, format asil minangka PowerPoint, lan jeneng file output.
  • Maca file Excel saka drive lokal nggunakake conto File.
  • Banjur upload lembar kerja Excel menyang panyimpenan awan nggunakake metode uploadFile(…).
  • Pungkasan, nelpon cara cellsWorkbookGetWorkbook(…) kanggo nindakake konversi Excel menyang PowerPoint. Sawise konversi, file asil disimpen ing panyimpenan Cloud.
// kanggo conto liyane, bukak https://github.com/aspose-cells-cloud/aspose-cells-cloud-java

try
    {
    // Entuk ClientID lan ClientSecret saka https://dashboard.aspose.cloud/
    String clientId = "bb959721-5780-4be6-be35-ff5c3a6aa4a2";
    String clientSecret = "4d84d5f6584160cbd91dba1fe145db14";
	  
    // nggawe conto CellsApi nggunakake kredensial klien
    CellsApi api = new CellsApi(clientId,clientSecret);
	    		
    // jeneng input buku kerja Excel
    String fileName = "myDocument.xlsx";
    // rincian sandi yen workbook ing ndhelik
    String password = null;
	        
    // Nemtokake kanggo nyetel baris buku kerja dadi pas otomatis.
    Boolean isAutoFit = true;
    // Nemtokake apa mung nyimpen data tabel.
    Boolean onlySaveTable = true;
	    		
    // format file asil
    String format = "PPTX";
	    		
    // mbukak file saka sistem lokal
    File file = new File(fileName);	
	    
    // upload input XLSB menyang panyimpenan maya
    api.uploadFile("input.xlsx", file, "default");
	    	         
    // nindakake operasi konversi dokumen
    File response = api.cellsWorkbookGetWorkbook("input.xlsx", password,format, 
	    			            isAutoFit, onlySaveTable, null,"default", "Resultant.pptx","default", null);       
	    
    // pesen sukses print
    System.out.println("Successfull conversion of Excel to PowerPoint !");
    }catch(Exception ex)
    {
        System.out.println(ex.getMessage());
    }
Excel kanggo pratinjau PPTX

Gambar 1: - Pratinjau Konversi Excel menyang PowerPoint

Sampeyan bisa uga nimbang ngundhuh buku kerja Excel input lan PowerPoint asil saka myDocument.xlsx lan Resultant.pptx.

Nglebokake Excel menyang PowerPoint nggunakake Perintah cURL

Amarga REST API bisa diakses kanthi gampang liwat perintah cURL, mula ing bagean iki, kita bakal ngowahi XLS dadi PPT nggunakake perintah cURL. Saiki, langkah pertama yaiku ngasilake token akses JWT nalika nglakokake perintah ing ngisor iki.

curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=bb959721-5780-4be6-be35-ff5c3a6aa4a2&client_secret=4d84d5f6584160cbd91dba1fe145db14" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"

Saiki kita duwe token JWT pribadi, kita kudu nglakokake prentah ing ngisor iki kanggo mbukak Excel saka panyimpenan maya, nindakake konversi menyang PowerPoint lan nyimpen output ing panyimpenan awan.

curl -v -X GET "https://api.aspose.cloud/v3.0/cells/input.xlsx?format=PPTX&isAutoFit=true&onlySaveTable=true&outPath=Resultant.pptx&checkExcelRestriction=true" \
-H  "accept: application/json" \
-H  "authorization: Bearer <JWT Token>"

Kesimpulan

Kesimpulane, Aspose.Cells Cloud nyedhiyakake solusi sing kuat lan fleksibel kanggo ngowahi file Excel dadi presentasi PowerPoint lan nggarap data Excel ing awan. Kanthi nggunakake API iki, sampeyan bisa nyelarasake alur kerja lan ngotomatisasi tugas sing gegandhengan karo Excel, supaya sampeyan bisa ngirit wektu lan nyilikake kesalahan. Ing kirim blog iki, kita wis menehi pandhuan lengkap babagan carane ngowahi Excel dadi PowerPoint nggunakake Java. Muga-muga kiriman blog iki bisa mbantu nyedhiyakake rincian sing dibutuhake kanggo kabutuhan bisnis utawa pangembangan sampeyan.

Yen sampeyan nemoni masalah nalika nggunakake API, hubungi kita liwat forum dhukungan produk.

Artikel sing gegandhengan

Disaranake ngunjungi tautan ing ngisor iki kanggo sinau luwih lengkap babagan: