Mai kallon PowerPoint

Haɓaka mai kallon PowerPoint ta amfani da NET Cloud SDK.

Buɗe cikakken damar PowerPoint gabatarwa ta hanyar gina aikace-aikacen kallon PowerPoint ta al’ada ta amfani da NET Cloud SDK. Tare da mai kallon PowerPoint, zaku iya ba wa masu amfani da ku mara sumul da ƙwarewa, ba su damar dubawa da mu’amala tare da fayilolin gabatarwa. Ta hanyar ƙirƙirar mai kallon PowerPoint, zaku iya haɓaka haɗin gwiwa, raba gabatarwa, da samun damar abun ciki. A cikin wannan labarin, za mu jagorance ku ta hanyar da ke ba ku damar isar da ƙwarewar mai amfani ta amfani da NET Cloud SDK.

Ko kuna nuna filayen tallace-tallace, sadar da abun ciki na ilimi, ko raba sabuntawar ayyuka, ƙa’idar mai duba PowerPoint mai sadaukarwa tana buɗe duniyar yuwuwar.

Gudanar da PowerPoint tare da NET Cloud SDK

Aspose.Slides Cloud SDK for .NET kayan aiki ne mai ƙarfi wanda ke ba da dama mai yawa don aiki tare da gabatarwar PowerPoint. Tare da wannan SDK, zaku iya aiwatar da ayyuka daban-daban kamar ƙirƙira, gyarawa, juyawa, da sarrafa fayilolin PowerPoint da tsari. Yana goyan bayan juyawa tsakanin nau’ikan gabatarwa daban-daban. Kuma, kuna iya ma musanya fayilolin PowerPoint zuwa wasu tsari kamar PDF, hotuna (JPG /), [PNG] (https://docs.fileformat.com/image/png/), [TIFF] (https://docs.fileformat.com/image/tiff/), da sauransu), [HTML] (https://docs.fileformat.com/web/html/), da ƙari. Don haka, wannan sassauci yana ba ku damar raba abubuwan gabatarwa a cikin nau’i daban-daban masu dacewa da dandamali da na’urori daban-daban.

Saboda waɗannan damar masu ban mamaki, za mu iya sanya PowerPoint zuwa HTML ko Tsarin Hoto kuma mu nuna su a cikin mai binciken gidan yanar gizo.

Yanzu, don amfani da SDK, da fatan za a bincika ‘Aspose.Slides-Cloud’ a cikin manajan fakitin NuGet kuma danna maɓallin ‘Ƙara Kunshin’. Hakanan, da fatan za a ziyarci sashin saurin farawa don koyon matakai kan yadda ake ƙirƙirar asusu akan dashboard ɗin girgije (idan ba ku da wanda yake akwai).

Maida PowerPoint zuwa HTML ta amfani da C# .NET

Ɗaya daga cikin zaɓuɓɓukan farko don duba gabatarwar PowerPoint ba tare da buƙatar kowane software na musamman ba shine canza su zuwa tsarin HTML. Canjin PowerPoint zuwa HTML yana kawo fa’idodi masu yawa waɗanda ke faɗaɗa isarwa da samun damar gabatarwar ku. Bugu da ƙari, HTML kasancewa tsari ne mai tallafi da yawa, yana ba da damar kallon gabatarwar ku akan kowace na’ura ko dandamali, yana kawar da matsalolin daidaitawa. A ƙarshe, ƙarfin ƙira mai amsawa na HTML yana tabbatar da cewa gabatarwar ku ta dace da girman allo daban-daban, tana ba da kyakkyawar ƙwarewar kallo ga masu sauraron ku.

Don haka, da fatan za a yi amfani da snippet code mai zuwa don canza PowerPoint zuwa HTML akan layi.

// 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);

// Kira API don canza nunin faifan PowerPoint zuwa tsarin HTML
var responseStream = slidesApi.DownloadPresentation("Summer invitations.pptx", ExportFormat.Html);

// Ajiye sakamakon HTML akan faifan gida
using var pdfStream = File.Create("converted.html");
responseStream.CopyTo(pdfStream);
Canza PPT zuwa HTML

Hoto:- PowerPoint zuwa samfoti na canza HTML.

An bayar a ƙasa shine bayanin snippet code na sama.

  • Da farko, ƙirƙiri misali na ajin SlidesApi inda muke ƙaddamar da bayanan abokin ciniki azaman mahawara.
  • Hanyar Zazzagewar Kira (…) don canza nunin faifan PowerPoint zuwa tsarin HTML da dawo da fitarwa azaman abin Rafi.
  • Ajiye sakamakon HTML zuwa faifan gida.

Canza PPT zuwa JPG ta amfani da C# .NET

A gefe guda, wata mafita mai mahimmanci ita ce canza gabatarwar PowerPoint zuwa tsarin hoto na raster, watau JPG, sannan a nuna hoton a cikin shafin yanar gizon. Canjin PowerPoint zuwa JPG yana ba da fa’idodi da yawa waɗanda suka sa ya zama sanannen zaɓi don rabawa da rarraba gabatarwa.

  • Da fari dai, JPG tsari ne na hoto da ake tallafawa da yawa wanda za’a iya kallo cikin sauƙi akan na’urori da dandamali daban-daban ba tare da buƙatar takamaiman software ba.
  • Na biyu, fayilolin JPG yawanci ƙanƙanta ne a girman, idan aka kwatanta da fayil ɗin PowerPoint.
  • Na uku, tsarin JPG yana kiyaye mutuncin gani na nunin faifai, gami da launuka, hotuna, da zane-zane, yana sa ya dace da raba hotuna masu inganci na gabatarwa.
// 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);

// Karanta shigar da gabatarwar PowerPoint daga faifan gida
using var slideStream = File.OpenRead("Colorful conference presentation.pptx");
slidesApi.UploadFile("Colorful conference presentation.pptx", slideStream);

// kira API don canza duk nunin faifan PowerPoint zuwa tsarin JPG 
using var responseStream = slidesApi.DownloadPresentation("Colorful conference presentation.pptx", ExportFormat.Jpeg, null, null);

// Ajiye sakamakon sakamakon hotunan JPG zuwa faifan gida
using var pdfStream = File.Create("output.zip");
responseStream.CopyTo(pdfStream);
Powerpoint zuwa jpg

Hoto:-PowerPoint zuwa JPG samfoti.

A ƙasa akwai cikakkun bayanai game da guntun lambar da aka raba a sama.

  • Ƙirƙiri misali na ajin SlidesApi yayin ƙaddamar da shaidar abokin ciniki azaman hujja ga mai ginin sa.
  • Karanta shigar da gabatarwar PowerPoint kuma loda shi zuwa ma’ajiyar girgije.
  • Kira hanyar Zazzagewa(…) kuma wuce ƙimar ‘ExportFormat.Jpeg’ azaman hujja. Ana dawo da fitarwa azaman misali rafi.
  • Ajiye fitarwa azaman ma’ajiyar zip akan faifan gida.

Maida PPTX zuwa HTML ko JPG ta amfani da Umarnin CURL

Aspose.Slides Cloud API yana ba da madaidaicin dubawa, wanda ke nufin za ku iya mu’amala da shi ta amfani da daidaitattun hanyoyin HTTP kamar SAMU, POST, PUT, da GAME. Ganin cewa, cURL kayan aiki ne na layin umarni wanda ke ba ku damar yin buƙatun HTTP kuma ana amfani da su sosai don hulɗar API. Don haka, zamu iya canza PowerPoint zuwa hotuna HTML ko JPG ta amfani da umarnin CURL. Wannan tsarin yana ba da fa’idodi da yawa:

  • Da fari dai, yana ba da hanya madaidaiciya kuma mai inganci don sarrafa tsarin jujjuyawar.
  • Abu na biyu, yin amfani da umarnin CURL don PPTX zuwa HTML ko JPG yana ba da ‘yancin kai na dandamali.

Don haka, ta hanyar bin tsarin CURL, zaku iya amfani da ikon Aspose.Slides Cloud’s juyawa damar yin amfani da sauƙi, sassauƙa, da daidaituwar giciye da aka bayar ta umarnin cURL.

Yanzu, muna buƙatar aiwatar da umarni mai zuwa don samar da ‘accessToken’ dangane da shaidar abokin cinikinmu.

curl -v "https://api.aspose.cloud/connect/token" \
 -X POST \
 -d "grant_type=client_credentials&client_id=ee170169-ca49-49a4-87b7-0e2ff815ea6e&client_secret=7f098199230fc5f2175d494d48f2077c" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Accept: application/json"

Da fatan za a aiwatar da umarni mai zuwa don canza PPTX zuwa tsarin HTML.

curl -v "https://api.aspose.cloud/v3.0/slides/{inputPPT}/Html?slides=3" \
-X POST \
-H  "accept: multipart/form-data" \
-H  "authorization: Bearer {accessToken}" \
-H  "Content-Type: application/json" \
-d "{}" \
-o "{resultantHTML}"

Sauya {inputPPT} da sunan PowerPoint da ake samu a ma’ajiyar gajimare. Sannan maye gurbin {accessToken} tare da alamar shiga JWT da {resultantHTML} tare da sunan sakamakon HTML fayil da za’a adana a cikin gida.

Bugu da ƙari, don canza PowerPoint zuwa tsarin JPG, da fatan za a aiwatar da umarni mai zuwa.

curl -v "https://api.aspose.cloud/v3.0/slides/{sourceFile}/Jpeg?slides=2%2C7" \
-X POST \
-H  "accept: multipart/form-data" \
-H  "authorization: Bearer {accessToken}" \
-H  "Content-Type: application/json" \
-d "{  \"DefaultRegularFont\": \"string\",  \"FontFallbackRules\": [    {      \"RangeStartIndex\": 0,      \"RangeEndIndex\": 0,      \"FallbackFontList\": [        \"string\"      ]    }  ],  \"FontSubstRules\": [    {      \"SourceFont\": \"string\",      \"TargetFont\": \"string\",      \"NotFoundOnly\": true    }  ]}" \
-o "{resultantZIP}"

‘Maimakon musanya dukkan nunin nunin nunin zuwa hotuna JPG, mun ba da umarnin musanya lambar nunin faifai 2 da 7 kawai.’

Kammalawa

A cikin wannan labarin, mun bincika hanyoyi biyu masu ƙarfi don canza gabatarwar PowerPoint: canza PowerPoint zuwa HTML da canza PowerPoint zuwa JPG. Duk waɗannan hanyoyin za a iya amfani da su don haɓaka aikace-aikacen kallon PowerPoint. Koyaya, hanyoyin biyu suna ba da fa’idodi na musamman.

Lokacin canza PowerPoint zuwa HTML, kuna samun ikon shigar da gabatarwar ku kai tsaye zuwa shafukan yanar gizo, yana sa su zama masu mu’amala da sauƙi a cikin na’urori da dandamali daban-daban. Wannan tsarin yana ba ku damar riƙe ainihin tsarawa, rayarwa, da ma’amala na nunin faifai, ƙirƙirar ƙwarewar mai amfani mara kyau da jan hankali.

A gefe guda, juya PowerPoint zuwa JPG yana ba da hanya mai dacewa don samar da hotuna masu inganci na kowane zane. Wannan hanya tana da amfani musamman lokacin da kuke buƙatar raba ko rarraba nunin faifai ɗaya a matsayin hotuna na tsaye.

Gabaɗaya, ikon juyar da PowerPoint zuwa HTML da JPG yana buɗe sabbin hanyoyi don gabatarwa, rabawa, da sake fasalin abun cikin PowerPoint ɗinku, yana ba da ingantacciyar dama, juzu’i, da wakilcin gani.

Hanyoyin haɗi masu amfani

Labarai masu alaka

Muna ba da shawarar ziyartar shafukan yanar gizo masu zuwa: