Java API kanggo ngowahi PDF dadi XPS

Pustaka Java kanggo ngowahi PDF dadi XPS

Gunakake PDF Conversion REST API kanggo nggawe alur kerja dokumen sing disesuaikan ing Java. Iki minangka solusi profesional kanggo ngowahi PDF dadi XPS lan format dokumen liyane kanthi online nggunakake Java.

Ndeleng potongan kode

Ngonversi PDF menyang XPS Java REST API

Ngonversi file PDF menyang format XPS ing Java. Pustaka Java iki dirancang kanggo ngowahi file PDF menyang macem-macem format file nggunakake REST API.

Konversi API PDF menyang XPS ngidini pangembang Java ngonversi PDF dadi XPS kanthi gampang lan njupuk kauntungan saka loro format file kasebut.

Ngonversi file PDF menyang XPS ing Java

Ngonversi format file saka PDF menyang XPS minangka tugas sing rumit. Kabeh transisi format PDF menyang XPS ditindakake dening Java SDK, nalika njaga isi struktural lan logis utama dokumen PDF sumber.

Pustaka Java minangka solusi profesional kanggo ngowahi file PDF, XPS kanthi online. Cloud SDK iki menehi Java pangembang fungsi kuat lan output XPS kualitas sampurna.

Conto Java ing ngisor iki nggunakake API Konversi bakal miwiti kanthi cepet.

Unggah file sing pengin diowahi
Kode roto
Pilih format target saka dhaptar
import com.aspose.words.cloud.*;

ApiClient apiClient = new ApiClient("####-####-####-####-####",
   "##################", null);
WordsApi wordsApi = new WordsApi(apiClient);

byte[] doc = Files.readAllBytes(Paths.get("Input.pdf").toAbsolutePath());
ConvertDocumentRequest request = new ConvertDocumentRequest(
   doc, "xps", null, null, null, null);
ConvertDocument convert = wordsApi.convertDocument(request);
Kode roto
  
Nyalin kode Java menyang clipboard

Carane nggunakake API kanggo ngowahi PDF dadi XPS

  1. Instal perpustakaan Java lan tambahake referensi (ngimpor perpustakaan) menyang proyek sampeyan.
  2. Bukak PDF berkas sumber ing Java.
  3. Telpon metode convertDocument(), ngliwati PDF file lan opsi XPS.
  4. Simpen asil konversi minangka XPS file.

Pustaka Java kanggo ngowahi PDF dadi XPS

Instal 'Aspose.Words Cloud SDK for Java' nggunakake alat otomatisasi mbangun Maven.

Tambah ketergantungan iki menyang POM proyek sampeyan: aspose-cloud artifact.aspose-cloud-releases http://artifact.aspose.cloud/repo com.aspose aspose-words-cloud 22.4.0

Minangka alternatif, sampeyan bisa clone Aspose.Words Cloud SDK for Java saka GitHub lan nggunakake ing project. Tututi Instructions iki supaya cepet entuk kredensial keamanan sing dibutuhake lan ngakses REST API kita.

Requirements Sistem

Deleng Repository Documentation kanggo ndeleng rincian.

Konversi PDF liyane sing didhukung

Sampeyan bisa ngowahi PDF menyang akeh format file liyane:

5%

Langganan kanggo Aspose Update Product

Entuk buletin saben wulan lan tawaran langsung dikirim menyang kothak layang.

© Aspose Pty Ltd 2001-2024. Kabeh hak dilindhungi undhang-undhang.