Ƙirƙirar gabatarwa mai tasiri da jan hankali yawanci yana buƙatar tsari mai kyau da jeri na nunin faifai. Ko kuna buƙatar sake yin odar nunin faifai don gudana mai sauƙi, haɗa su ta jigo ko jigo, ko tsara tsarin gabatarwa, ikon sake tsara nunin faifan PowerPoint yana da mahimmanci. Yana ba ku damar haɓaka labarin gaba ɗaya, haskaka mahimman bayanai, da isar da saƙonku yadda ya kamata. A cikin wannan labarin, za mu bincika ikon amfani da Aspose.Slides Cloud SDK don NET don sake tsarawa PowerPoint nunin faifai ba tare da wahala ba.
- Matsar da Slides na PowerPoint ta amfani da NET Cloud SDK
- Sake tsara Slides na PowerPoint ta amfani da C# .NET
- Sake Shirya Slides a PowerPoint ta amfani da Umarnin CURL
Matsar da Slides na PowerPoint ta amfani da NET Cloud SDK
Aspose.Slides Cloud SDK for .NET yana ba da cikakkiyar tsarin fasali da ayyuka don sarrafa gabatarwar PowerPoint da tsari. Tare da wannan API mai ƙarfi, ba za ku iya sake tsara nunin faifai kawai ba amma har ma da aiwatar da wasu ayyuka daban-daban kamar ƙarawa, sharewa, da gyara nunin faifai, aiwatar da tsari da salo, sarrafa abun ciki na nunin faifai, da ƙari mai yawa. SDK yana ba da haɗin kai mara kyau tare da aikace-aikacen NET ɗinku, yana ba ku damar yin amfani da cikakkiyar damar yin amfani da PowerPoint ta hanyar dacewa da inganci.
Yanzu, don amfani da SDK, muna buƙatar bincika ‘Aspose.Slides-Cloud’ a cikin manajan fakitin NuGet kuma danna maɓallin ‘Ƙara Kunshin’. Bugu da ƙari, da fatan za a ziyarci sashin saurin farawa don bayani kan yadda ake ƙirƙirar asusu a kan dashboard ɗin girgije (idan ba ku da asusun da ke akwai).
Sake tsara Slides na PowerPoint ta amfani da C# .NET
Da fatan za a duba snippet na lamba mai zuwa, wanda ke nuna cikakkun bayanai kan yadda ake sake tsara nunin faifai a PowerPoint.
// Don ƙarin misalai, da fatan za a ziyarci https://github.com/aspose-slides-cloud
// Samu bayanan abokin ciniki daga https://dashboard.aspose.cloud/
string clientSecret = "7f098199230fc5f2175d494d48f2077c";
string clientID = "ee170169-ca49-49a4-87b7-0e2ff815ea6e";
// ƙirƙirar misali na SlidesApi
SlidesApi slidesApi = new SlidesApi(clientID, clientSecret);
// sunan shigar da gabatarwar PowerPoint
string inputPPT = "Prismatic design.pptx";
// index of slide da za a motsa
int slideIndex = 1;
// sabon index don nunin faifai
int newIndex = 7;
// kira API don matsar da zamewa zuwa sabon matsayi
var responseStream = slidesApi.MoveSlide(inputPPT, slideIndex, newIndex);
An ba da cikakkun bayanai game da snippet code na sama.
SlidesApi slidesApi = new SlidesApi(clientID, clientSecret);
Ƙirƙiri wani abu na ajin SlidesApi inda muka wuce bayanan abokin ciniki azaman muhawara.
var responseStream = slidesApi.MoveSlide(inputPPT, slideIndex, newIndex);
Kira API don matsar da nunin faifai akan fihirisar 1 zuwa fihirisa 7. Bayan nasarar aiwatarwa, ana adana PowerPoint da aka sabunta a cikin ma’ajiyar girgije iri ɗaya.
Sake Shirya Slides a PowerPoint ta amfani da Umarnin CURL
Yin amfani da umarnin cURL da Aspose.Slides Cloud, za mu iya cimma gyare-gyaren faifai mara kyau ta hanyar yin buƙatun HTTP zuwa wuraren ƙarshen API, saboda yana ba da fa’idodi da yawa. Da fari dai, yana ba da tsarin tsarin umarni, yana sauƙaƙa haɗawa cikin ayyukan da kuke ciki ko rubutun sarrafa kansa. Abu na biyu, tare da umarnin cURL, zaku iya hulɗa tare da Aspose.Slides Cloud API kai tsaye daga layin umarni, ba tare da buƙatar hadaddun shirye-shirye ba.
A taƙaice, wannan hanyar tana ba da sassauci da kuma iko akan tsarin tsara zane.
Yanzu, muna buƙatar aiwatar da umarni mai zuwa don samar da alamar samun damar JWT:
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"
Kuna iya la’akari da ziyartar sashin saurin farawa a cikin takaddun samfur don ƙarin bayani kan yadda ake samar da alamar samun damar JWT.
Da fatan za a aiwatar da umarnin CURL mai zuwa don matsar da nunin a fihirisa 2 zuwa sabon fihirisar # 4.
curl -v "https://api.aspose.cloud/v3.0/slides/{inputPPT}/slides/2/move?newPosition=4" \
-X POST \
-H "accept: application/json" \
-H "authorization: Bearer {accessToken}" \
-d {}
Sauya inputPPT
tare da sunan shigar da PowerPoint da ake samu a cikin ma’ajiyar gajimare, da ‘accessToken’ tare da alamar samun damar JWT da aka samar a matakin sama.
Za a iya sauke samfurin gabatarwar PowerPoint da aka yi amfani da shi a cikin misalin da ke sama daga Prismatic design.pptx .
Kammalawa
A ƙarshe, ikon sake tsara nunin faifan PowerPoint ta amfani da .NET Cloud SDK, umarnin cURL, da Aspose.Slides Cloud yana buɗe sabbin dama don sarrafawa da haɓaka gabatarwar ku. Ko kun zaɓi yin amfani da fasalin-arziƙin Aspose.Slides Cloud SDK don NET ko zaɓi don sauƙi da sassauƙar umarnin cURL, zaku iya cimma nasarar sake tsara faifai maras kyau cikin sauƙi.
Ta hanyar amfani da ƙarfin waɗannan kayan aikin, zaku iya canza tsari na nunin faifan ku ba tare da wahala ba, daidaita matsayinsu, da ƙirƙirar gabatarwa mai ban sha’awa na gani waɗanda ke isar da saƙonku yadda ya kamata.
Hanyoyin haɗi masu amfani
- Jagorar Mai Haɓakawa
- Reference
- SDK Source Code
- [Zauren Tallafawa Kyauta 6
- Live Demos
Labarai masu alaka
Muna ba da shawarar ziyartar shafukan yanar gizo masu zuwa: