Merge image in Python

High-speed and cross-platform Python library for merging HTML to image using Python code

Aspose.Slides का उपयोग करके HTML को इमेज में मर्ज करें

Aspose.Slides for Python via .NET is a powerful Python library used to merge and manipulate presentations, HTML docs, and other files. When you merge HTML to image, you are effectively combining the contents in HTML documents to obtain a single image.

Merge HTML to image in Python

Using Aspose.Slides for Python via .NET , you can merge image files quickly with just a few lines of code

Python code for merging HTML to image


import aspose.slides as slides
import aspose.pydrawing as drawing

with slides.Presentation() as pres:
    pres.slides.remove_at(0)
    pres.slides.add_from_html(htmlText1)
    pres.slides.add_from_html(htmlText2)

    for sld in pres.slides:
        bmp = sld.get_thumbnail(1, 1)
        bmp.save("Slide_{num}.png".format(num=str(sld.slide_number)), drawing.imaging.ImageFormat.png)

How to merge HTML to image in Python

  1. Install Aspose.Slides for Python via .NET. See Installation .

  2. पुस्तकालय को अपनी परियोजना में संदर्भ के रूप में जोड़ें।

  3. प्रेजेंटेशन क्लास का एक उदाहरण बनाएं।

  4. उन HTML डॉक्स को लोड करें जिन्हें आप मर्ज करना चाहते हैं।

  5. परिणामी छवि को सहेजें।

पीडीएफ फाइलों को ऑनलाइन मर्ज करें

पायथन में पीडीएफ को कैसे मर्ज करें

अन्य फ़ाइलें मर्ज करें

आप एकल फ़ाइल प्राप्त करने के लिए फ़ाइलों को अन्य स्वरूपों में भी संयोजित कर सकते हैं