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.
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 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.
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);
Instal 'Aspose.Words Cloud SDK for Java' nggunakake alat otomatisasi mbangun Maven.
Tambah ketergantungan iki menyang POM proyek sampeyan:
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.
Deleng Repository Documentation kanggo ndeleng rincian.
Sampeyan bisa ngowahi PDF menyang akeh format file liyane: