PowerPoint zuwa html

Maida PowerPoint zuwa HTML ta amfani da NET REST API.

Buɗe ikon abubuwan gabatarwar [PowerPoint] (https://docs.fileformat.com/presentation/pptx/) ta hanyar canza su zuwa fayilolin [HTML] (https://docs.fileformat.com/web/html/) masu ma’amala . Mayar da PowerPoint zuwa HTML ta amfani da .NET REST API yana buɗe duniyar yuwuwar, yana ba ku damar shigar da nunin faifai a cikin gidajen yanar gizo, shafukan yanar gizo, da dandamali na kan layi. A cikin HTML, gabatarwar ku ta zama mai ƙarfi, amsawa, da samun dama ga na’urori da tsarin aiki daban-daban. Bugu da ƙari, ta hanyar juyar da nunin faifan ku zuwa HTML, zaku iya haɓaka haɗin gwiwa, ba da damar mu’amala, da isa ga jama’a masu yawa.

Don haka bari mu bincika tsarin juyar da PPT zuwa HTML ta amfani da .NET REST API kuma mu gano damammaki mara iyaka da yake kawowa don rabawa, gabatarwa, da jan hankalin masu sauraron ku akan layi.

API ɗin REST don Maida PowerPoint zuwa HTML

Tare da taimakon Aspose.Slides Cloud SDK don NET, canza PowerPoint zuwa HTML ya zama iska. Wannan bayani na tushen girgije yana ba da cikakkiyar tsari na fasali da ayyuka don tabbatar da tsarin juzu’i mara kyau. Ta amfani da Aspose.Slides Cloud SDK don NET, za ku iya fitar da abun ciki na gabatarwar PowerPoint ta atomatik kuma ku canza su zuwa tsarin HTML tare da ƴan layukan lamba.

Yanzu, don amfani da SDK, da fatan za a bincika ‘Aspose.Slides-Cloud’ a cikin manajan fakitin NuGet kuma danna maɓallin ‘Ƙara Kunshin’. Na biyu, ƙirƙiri asusu a kan dashboard ɗin girgije kuma sami keɓaɓɓen bayanan abokin ciniki na keɓaɓɓen ku. Don ƙarin bayani, da fatan za a ziyarci sashin saurin farawa a cikin takardun.

PPT zuwa HTML ta amfani da C# .NET

Bari mu kalli snippet code wanda ke taimaka mana mu canza PPTX zuwa HTML akan layi. Tsarin jujjuyawar yana kiyaye amincin gani na nunin faifan ku, gami da rubutu, hotuna, da tsarawa.

// 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.

SlidesApi slidesApi = new SlidesApi(clientID, clientSecret);

Ƙirƙiri misali na ajin SlidesApi inda muka wuce bayanan abokin ciniki azaman muhawara.

var responseStream = slidesApi.DownloadPresentation("Summer invitations.pptx", ExportFormat.Html);

Kira REST API don canza nunin faifan PowerPoint zuwa tsarin HTML kuma dawo da abin fitarwa azaman abin Rafi.

using var pdfStream = File.Create("converted.html");
responseStream.CopyTo(pdfStream);

Ajiye sakamakon HTML zuwa faifan gida.

Ta hanyar tsoho, duk nunin nunin faifai na nunin PowerPoint ana canza su amma idan kuna buƙatar canza takamaiman nunin faifai, da fatan za a samar da cikakkun bayanai ta hanyar abin Lissafi. Da fatan za a duba layin lambar da ke gaba, wanda ke canza faifan gabatarwa na 2 da 3 kawai.

var responseStream = slidesApi.DownloadPresentation("Summer invitations.pptx", ExportFormat.Html, null, null, null, null, null, new List<int> {2,3});

Za a iya sauke gabatarwar PowerPoint da aka yi amfani da shi a cikin misalin da ke sama daga [gayyatar bazara] (https://create.microsoft.com/en-us/template/summer-invitations-dc36583d-ebb5-43a5-b782-334e7b643a14).

Canza PowerPoint zuwa Shafin Yanar Gizo ta amfani da Umarnin CURL{#PowerPoint-zuwa-Shafin Yanar Gizo-Conversion-using-cURL-Commands}

Idan kun fi son tsarin layin umarni, zaku iya yin amfani da sassaucin umarnin cURL don canza PPTX zuwa HTML ba tare da wahala ba. Ta hanyar yin amfani da API ɗin Aspose.Slides Cloud, zaku iya aika buƙatun HTTP tare da cURL kuma kuyi jujjuya cikin sauƙi. Wannan hanya tana ba da madaidaiciyar hanya mai sauƙi don sarrafa sarrafa abubuwan gabatarwar PowerPoint zuwa shafin yanar gizon, yana mai da shi sauƙi kuma mai dacewa da dandamali na yanar gizo daban-daban.

Yanzu, don farawa da wannan hanyar, fara aiwatar da umarni mai zuwa don samar da ‘accessToken’ dangane da shaidar abokin ciniki.

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 zarar an samar da alamar samun damar JWT, da fatan za a aiwatar da wannan umarni don canza PowerPoint zuwa HTML akan layi. Lura cewa a cikin umarni mai zuwa, muna canza nunin nunin 3rd na gabatarwa ne kawai.

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 ɗin da za a adana a cikin gida.

Kammalawa

A ƙarshe, ikon canza PowerPoint zuwa HTML yana buɗe duniyar yuwuwar rabawa da nuna abubuwan gabatarwa akan gidan yanar gizo. Ko kun zaɓi yin amfani da Aspose.Slides Cloud SDK don NET ko kuma sassaucin umarnin cURL, kuna iya canza nunin faifan PowerPoint ɗinku cikin sauƙi zuwa tsarin HTML, sanya su samun dama, hulɗa, da dacewa cikin na’urori da dandamali daban-daban.

Don haka, ta hanyar amfani da waɗannan fasahohin, zaku iya cike gibin da ke tsakanin gabatarwar PowerPoint da gidan yanar gizo, ba tare da ɓata lokaci ba, buɗe sabbin hanyoyin shiga da jan hankalin masu sauraron ku. Don haka, fara bincika ikon PowerPoint zuwa canza HTML kuma ku ɗaga gabatarwarku zuwa mataki na gaba.

Hanyoyin haɗi masu amfani

Labarai masu alaka

Muna ba da shawarar ziyartar shafukan yanar gizo masu zuwa: