Google Slides
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি নতুন উপস্থাপনা তৈরি করুন
function createPresentation() {
var presentation =
Slides.Presentations.create({"title": "MyNewPresentation"});
console.log("Created presentation with ID: " + presentation.presentationId);
}
একটি নতুন স্লাইড তৈরি করুন
function createSlide(presentationId) {
// You can specify the ID to use for the slide, as long as it's unique.
var pageId = Utilities.getUuid();
var requests = [{
"createSlide": {
"objectId": pageId,
"insertionIndex": 1,
"slideLayoutReference": {
"predefinedLayout": "TITLE_AND_TWO_COLUMNS"
}
}
}];
var slide =
Slides.Presentations.batchUpdate({'requests': requests}, presentationId);
console.log("Created Slide with ID: " + slide.replies[0].createSlide.objectId);
}
পৃষ্ঠা উপাদান অবজেক্ট আইডি পড়ুন
function readPageElementIds(presentationId, pageId) {
// You can use a field mask to limit the data the API retrieves
// in a get request, or what fields are updated in an batchUpdate.
var response = Slides.Presentations.Pages.get(
presentationId, pageId, {"fields": "pageElements.objectId"});
console.log(response);
}
একটি নতুন টেক্সট বক্স যোগ করুন
function addTextBox(presentationId, pageId) {
// You can specify the ID to use for elements you create,
// as long as the ID is unique.
var pageElementId = Utilities.getUuid();
var requests = [{
"createShape": {
"objectId": pageElementId,
"shapeType": "TEXT_BOX",
"elementProperties": {
"pageObjectId": pageId,
"size": {
"width": {
"magnitude": 150,
"unit": "PT"
},
"height": {
"magnitude": 50,
"unit": "PT"
}
},
"transform": {
"scaleX": 1,
"scaleY": 1,
"translateX": 200,
"translateY": 100,
"unit": "PT"
}
}
}
}, {
"insertText": {
"objectId": pageElementId,
"text": "My Added Text Box",
"insertionIndex": 0
}
}];
var response =
Slides.Presentations.batchUpdate({'requests': requests}, presentationId);
console.log("Created Textbox with ID: " +
response.replies[0].createShape.objectId);
}
ফর্ম্যাট টেক্সট আকার
function formatShapeText(presentationId, shapeId) {
var requests = [{
"updateTextStyle": {
"objectId": shapeId,
"fields": "foregroundColor,bold,italic,fontFamily,fontSize,underline",
"style": {
"foregroundColor": {
"opaqueColor": {
"themeColor": "ACCENT5"
}
},
"bold": true,
"italic": true,
"underline": true,
"fontFamily": "Corsiva",
"fontSize": {
"magnitude": 18,
"unit": "PT"
}
},
"textRange": {
"type": "ALL"
}
}
}];
var response =
Slides.Presentations.batchUpdate({'requests': requests}, presentationId);
}
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-11 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","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"]],["2024-11-11 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The provided Google Apps Script code snippets demonstrate how to programmatically create and manipulate Google Slides presentations."],["The code covers functionalities such as creating presentations and slides, reading element IDs, adding text boxes, and formatting text within those boxes."],["Users can leverage these functions to automate presentation creation, customization, and content population, reducing manual effort and improving efficiency."],["Each function is independent and focuses on a specific task, allowing for flexibility in combining and using them to suit different use cases."],["Developers can adapt these examples to build more complex scripts for diverse slide manipulation scenarios within their applications or workflows."]]],[]]