Merge HTML in Python

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

HTML را با HTML با استفاده از Aspose.Slides ادغام کنید

Aspose.Slides for Python via .NET is a powerful Python library used to create, convert, merge, and manipulate presentations, HTML files, and other documents. When you merge HTML to HTML, you are effectively combining the contents from 2 documents to obtain one HTML file. Aspose.Slides allows you merge HTML docs in different ways. You get to merge HTML with all their texts, formatting,styles, etc.

Merge HTML to HTML in Python

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

Python code for merging HTML to HTML


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)

    pres.save("pres.html", slides.export.SaveFormat.HTML5)

How to merge HTML in Python

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

  2. کتابخانه را به عنوان مرجع در پروژه خود اضافه کنید.

  3. یک نمونه از کلاس Presentation ایجاد کنید.

  4. فایل های HTML را که می خواهید ادغام کنید بارگیری کنید.

  5. سند HTML حاصل را ذخیره کنید.

ادغام فایل های PDF به صورت آنلاین

نحوه ادغام PDF در پایتون

فایل های دیگر را ادغام کنید

همچنین می توانید فایل ها را با فرمت های دیگر ترکیب کنید تا یک فایل واحد بدست آورید