Canza gabatarwar PowerPoint ([PPT] (https://docs.fileformat.com/presentation/ppt/), PPTX) zuwa tsarin PDF yana da mahimmanci don tabbatar da samun dama ga duniya baki ɗaya, adana ingantaccen tsarin tsarawa a cikin dandamali, adana mahimman bayanai tare da kariyar kalmar sirri, inganta girman fayil don sauƙin rabawa, ba da damar iya bugawa, da saduwa da ƙa’idodi da ƙa’idodi. Wannan aikin jujjuyawar yana daidaita haɗin gwiwa, yana haɓaka ƙwarewa, kuma yana magance buƙatu daban-daban na rabawa da gabatar da bayanai a cikin yanayi daban-daban.
A cikin wannan labarin, za mu yi la’akari da wani muhimmin fasali na Aspose.Slides Cloud API yana ba mu damar yin gabatarwar PowerPoint zuwa takaddun PDF. API ɗin yana ba ku damar sauya gabaɗayan gabatarwa zuwa PDF tare da kiran API guda ɗaya. Hakanan zaka iya canza takamaiman zamewar zuwa takaddar PDF. Da fari dai, muna buƙatar loda gabatarwar tushen zuwa Ma’ajiyar girgije. Aspose Cloud yana ba da ƙarfin ajiyar kansa. Hakanan yana goyan bayan ma’ajiyar ƙungiya ta 3 da yawa ciki har da Amazon S3, Azure, Dropbox, da sauransu. Kuna iya daidaita kowane ma’ajiyar girgije ta ɓangare na uku tare da Aspose Cloud.
Da fatan za a aiwatar da umarnin cURL mai zuwa don loda gabatarwar daga ma’ajiyar gida zuwa ma’ajiyar gajimare.
// Da farko sami JSON Yanar Gizo Token don tantancewa
// Samu App Key da App SID daga https://dashboard.aspose.cloud/
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_KEY]" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
// misalin cURL don loda fayil zuwa Ma'ajiyar gajimare
curl -v "https://api.aspose.cloud/v3.0/slides/storage/file/CloudSample.pptx" \
-X PUT \
-T CloudSample.pptx \
-H "accept: application/json" \
-H "Content-Length: 0" \
-H "authorization: Bearer <jwt token>" \
-H "Content-Type: application/json" \
-H "x-aspose-client: Containerize.Swagger" \
-d {"file":{}}
Bayan loda fayil ɗin, zaku iya canza takamaiman zamewa zuwa takaddar PDF ta hanyar tantance lambar nunin. Misali, don yin nunin faifai na biyu, saka lamba kamar yadda yake cikin snippet na ƙasa:
// Da farko sami JSON Yanar Gizo Token don tantancewa
// Samu App Key da App SID daga https://dashboard.aspose.cloud/
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_KEY]" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
// CURL misali don canza zane zuwa PDF
curl -v "https://api.aspose.cloud/v3.0/slides/CloudSample.pptx/slides/2/Pdf" \
-X POST \
-H "accept: multipart/form-data" \
-H "authorization: Bearer <jwt token>" \
-H "Content-Type: application/json" \
-H "x-aspose-client: Containerize.Swagger" \
-d "{ \"Format\": \"pdf\"}" \
-o Slide.pdf
Canza PPTX zuwa PDF ko PPT zuwa PDF
A cikin wannan sashe, za mu koyi matakai kan yadda ake canza cikakkiyar gabatarwar PowerPoint zuwa tsarin PDF.
// Da farko sami JSON Yanar Gizo Token don tantancewa
// Samu App Key da App SID daga https://dashboard.aspose.cloud/
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_KEY]" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
// CURL misali don canza zane zuwa PDF
curl -v "https://api.aspose.cloud/v3.0/slides/CloudSample.pptx/slides/2/Pdf" \
-X POST \
-H "accept: multipart/form-data" \
-H "authorization: Bearer <jwt token>" \
-H "Content-Type: application/json" \
-H "x-aspose-client: Containerize.Swagger" \
-d "{ \"Format\": \"pdf\"}" \
-o Slide.pdf
Masu zuwa akwai wasu hotunan kariyar kwamfuta na tushe da fayilolin da aka ƙirƙira:
Shigar da fayil PPTX
Slide Na biyu zuwa fitarwa na PDF
Gabaɗaya Gabaɗaya zuwa fayil ɗin PDF
Hanyoyin haɗi masu amfani
Labari mai alaƙa
Muna ba da shawarar ziyartar hanyoyin haɗin yanar gizo masu zuwa don ƙarin koyo game da sauran abubuwan ban sha’awa na APIs ɗin mu: