संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Presentation ऑब्जेक्ट की लाइफ़ साइकल में तीन मुख्य चरण होते हैं: खोलना, बदलाव करना, और सेव करना.
प्रज़ेंटेशन खोलना
Slides सेवा का इस्तेमाल करते समय, पहला चरण किसी प्रज़ेंटेशन को लोड करना होता है. SlidesApp.openById() और SlidesApp.getActivePresentation() जैसे तरीके, मौजूदा Slides प्रज़ेंटेशन को लोड करते हैं. वहीं, SlidesApp.create() एक नया प्रज़ेंटेशन बनाता है. ये तरीके, Presentation ऑब्जेक्ट दिखाते हैं. यह ऑब्जेक्ट, लोड किए गए प्रज़ेंटेशन को दिखाता है.
प्रेज़ेंटेशन खोलने के बाद, सहयोगी उपयोगकर्ताओं से कोई अपडेट नहीं मिलता है. आम तौर पर, प्रज़ेंटेशन को Drive में सेव किए गए सबसे नए वर्शन में खोला जाता है. हालांकि, अगर कोई स्क्रिप्ट किसी प्रज़ेंटेशन से कंटेनर-बाउंड है, तो उस प्रज़ेंटेशन को Slides एडिटर के साथ-साथ उसी वर्शन में लोड किया जाएगा.
किसी प्रज़ेंटेशन में बदलाव करना
प्रज़ेंटेशन खुलने के बाद, स्क्रिप्ट उसे पढ़ सकती है और उसमें बदलाव कर सकती है. स्क्रिप्ट, प्रज़ेंटेशन में जो भी बदलाव करती है वे स्क्रिप्ट के चलने के दौरान, बाद में किए जाने वाले बदलावों और पढ़ने की कार्रवाइयों में दिखते हैं.
बदलाव सेव किए जा रहे हैं
किसी प्रज़ेंटेशन में बदलाव करने के बाद, स्क्रिप्ट के पूरा होने पर या Presentation.saveAndClose() को कॉल करने पर, सभी बदलाव एक साथ सेव हो जाते हैं. बदलाव सेव होने के बाद, वे उपयोगकर्ता के एडिटर में एसिंक्रोनस तरीके से दिखते हैं. ऐसा लगता है कि बदलाव किसी सहयोगी ने किए हैं.
Presentation.saveAndClose() का इस्तेमाल करके प्रज़ेंटेशन बंद करने के बाद, उसे फिर से खोला जा सकता है. इसके लिए, प्रज़ेंटेशन लोड करने के किसी एक तरीके का इस्तेमाल करें.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Slides service allows you to open existing or create new Google Slides presentations for manipulation within Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eScripts can modify presentations, with changes reflected immediately within the script but saved and propagated to the editor upon script completion or explicit save.\u003c/p\u003e\n"],["\u003cp\u003eSaving changes to a presentation is done automatically at the end of script execution or manually using \u003ccode\u003ePresentation.saveAndClose()\u003c/code\u003e, after which the presentation can be reopened.\u003c/p\u003e\n"]]],[],null,["# Life cycle of a presentation update\n\nThere are three main phases in the life cycle of a\n[Presentation](/apps-script/reference/slides/presentation) object: opening,\nediting, and saving.\n\nOpening a presentation\n----------------------\n\nWhen using the Slides Service, the first step is to load a presentation. Methods\nlike [SlidesApp.openById()](/apps-script/reference/slides/slides-app#openbyidid)\nand [SlidesApp.getActivePresentation()](/apps-script/reference/slides/slides-app#getactivepresentation)\nload an existing Slides presentation, while\n[SlidesApp.create()](/apps-script/reference/slides/slides-app#createname)\ncreates a new presentation. These methods return a\n[Presentation](/apps-script/reference/slides/presentation) object that\nrepresents the loaded presentation.\n\nOnce a presentation is open, it does not receive any further updates from\ncollaborators. Presentations are usually opened at their latest version that has\nbeen saved in Drive. However, if a script is container-bound to a presentation,\nthat presentation will be loaded at the same version as the accompanying Slides\neditor.\n\nModifying a presentation\n------------------------\n\nOnce a presentation is open, a script can read and modify it. Any changes that\nthe script makes to the presentation are reflected in subsequent reads and\nmodifications for the duration of the script execution.\n\nSaving changes\n--------------\n\nAfter making changes to a presentation, the changes are saved all at once\nwhen the script execution completes, or when [Presentation.saveAndClose()](/apps-script/reference/slides/presentation#saveandclose) is\ncalled. After changes are saved, they propagate asynchronously to the\nuser's editor, as if the changes were made by a collaborator.\n\nAfter a presentation is closed using `Presentation.saveAndClose()`, it can be\nreopened for editing using one of the presentation loading methods."]]