इंक

मौजूदा इंक आकृतियों तक पहुँचने और उन्हें Aspose.Slides for Python via .NET का उपयोग करके हटाने के उदाहरण प्रदान करता है।

ध्यान दें: इंक आकृतियां विशेष उपकरणों से उपयोगकर्ता इनपुट का प्रतिनिधित्व करती हैं। Aspose.Slides प्रोग्रामmatically नई इंक स्ट्रोक नहीं बना सकता, लेकिन आप मौजूदा इंक को पढ़ और संशोधित कर सकते हैं।

इंक तक पहुँच

स्लाइड से पहला इंक आकार प्राप्त करें।

def access_ink():
    with slides.Presentation("ink.pptx") as presentation:
        slide = presentation.slides[0]

        first_ink = None
        for shape in slide.shapes:
            if isinstance(shape, slides.ink.Ink):
                first_ink = shape
                break

इंक हटाएँ

स्लाइड से इंक आकार हटाएँ।

def remove_ink():
    with slides.Presentation("ink.pptx") as presentation:
        slide = presentation.slides[0]

        # मान लेते हैं कि पहली आकृति एक Ink ऑब्जेक्ट है.
        ink = slide.shapes[0]

        slide.shapes.remove(ink)

        presentation.save("ink_removed.pptx", slides.export.SaveFormat.PPTX)