नोट
Contents
[
Hide
]
कैसे Aspose.Slides for PHP via Java का उपयोग करके नोट्स स्लाइड जोड़ना, पढ़ना, हटाना और अपडेट करना है, दिखाता है।
नोट्स स्लाइड जोड़ें
एक नोट्स स्लाइड बनाएं और उसमें टेक्स्ट असाइन करें।
function addNote() {
$presentation = new Presentation();
try {
$slide = $presentation->getSlides()->get_Item(0);
$notesSlide = $slide->getNotesSlideManager()->addNotesSlide();
$notesSlide->getNotesTextFrame()->setText("My note");
$presentation->save("note.pptx", SaveFormat::Pptx);
} finally {
$presentation->dispose();
}
}
नोट्स स्लाइड तक पहुँचें
मौजूदा नोट्स स्लाइड से टेक्स्ट पढ़ें।
function accessNote() {
$presentation = new Presentation("note.pptx");
try {
$slide = $presentation->getSlides()->get_Item(0);
$notesSlide = $slide->getNotesSlideManager()->getNotesSlide();
$notes = $notesSlide->getNotesTextFrame()->getText();
} finally {
$presentation->dispose();
}
}
नोट्स स्लाइड हटाएँ
स्लाइड से जुड़ी नोट्स स्लाइड को हटाएँ।
function removeNote() {
$presentation = new Presentation("note.pptx");
try {
$slide = $presentation->getSlides()->get_Item(0);
$slide->getNotesSlideManager()->removeNotesSlide();
$presentation->save("note_removed.pptx", SaveFormat::Pptx);
} finally {
$presentation->dispose();
}
}
नोट्स टेक्स्ट अपडेट करें
नोट्स स्लाइड का टेक्स्ट बदलें।
function updateNoteText() {
$presentation = new Presentation("note.pptx");
try {
$slide = $presentation->getSlides()->get_Item(0);
$notesSlide = $slide->getNotesSlideManager()->getNotesSlide();
$notesSlide->getNotesTextFrame()->setText("Updated");
$presentation->save("note_updated.pptx", SaveFormat::Pptx);
} finally {
$presentation->dispose();
}
}