Konvertera MHTML till bilder med Python

MHTML till PNG JPG BMP IMAGES- och TIFF-bildkonvertering i dina Python-applikationer utan att installera Microsoft Word®.

 

För en Python-utvecklare, vem försöker lägga till en MHTML och HtmlFixed to Images-konverteringsfunktion i applikationen? Aspose.Total for Python via .NET API kan hjälpa till att automatisera konverteringsprocessen. Det är ett komplett paket med olika API:er som hanterar olika format inklusive Microsoft Word-format, webbarkiv MHTML, HTML och HTMLFixed-format för att spara dokumentet i HTML-format med hjälp av absolut placerade element. Aspose.Words for Python via .NET API som är en del av Aspose.Total for Python via .NET -paketet gör denna konvertering lätt att exportera och importera MHTML, PDF och olika andra format med Python.

Hur man konverterar MHTML till bilder i Python

  • Öppna MHTML-källfilen med klassen Document
  • Gå igenom varje sida och välj en i taget
  • Anropa “spara”-metoden medan du anger sökvägen till utdatafilen med relevant bildformat som parameter. Så din MHTML-fil konverteras till önskad bild på den angivna sökvägen

Konverteringskrav

  • För konvertering av MHTML till bilder krävs Python 3.5 eller senare
  • Referera till API:er inom projektet direkt från PyPI ( Aspose.Words )
  • Eller använd följande pip-kommando pip install aspose.words
  • Dessutom, Microsoft Windows eller Linux-baserade operativsystem (se mer för Words ) och för Linux kontrollera ytterligare krav för gcc och libpython och följ steg för steg instruktioner INSTALL
 

Spara MHTML till bilder i Python

 

Explore MHTML Conversion Options with Python

Konvertera BMPs till EMAIL (Bitmap Image File)
Konvertera BMPs till EML (Bitmap Image File)
Konvertera BMPs till EMLX (Bitmap Image File)
Konvertera BMPs till ICS (Bitmap Image File)
Konvertera BMPs till MBOX (Bitmap Image File)
Konvertera BMPs till MSG (Bitmap Image File)
Konvertera BMPs till OFT (Bitmap Image File)
Konvertera BMPs till OST (Bitmap Image File)
Konvertera BMPs till PST (Bitmap Image File)
Konvertera BMPs till VCF (Bitmap Image File)
Konvertera CSVs till DOC (Comma Seperated Values)
Konvertera CSVs till DOCM (Comma Seperated Values)
Konvertera CSVs till DOCX (Comma Seperated Values)
Konvertera CSVs till DOT (Comma Seperated Values)
Konvertera CSVs till DOTM (Comma Seperated Values)
Konvertera CSVs till DOTX (Comma Seperated Values)
Konvertera CSVs till MOBI (Comma Seperated Values)
Konvertera CSVs till ODT (Comma Seperated Values)
Konvertera CSVs till OTT (Comma Seperated Values)
Konvertera CSVs till POT (Comma Seperated Values)
Konvertera CSVs till POTX (Comma Seperated Values)
Konvertera CSVs till POWERPOINT (Comma Seperated Values)
Konvertera CSVs till PPS (Comma Seperated Values)
Konvertera CSVs till PPSM (Comma Seperated Values)
Konvertera CSVs till PPSX (Comma Seperated Values)
Konvertera CSVs till PPT (Comma Seperated Values)
Konvertera CSVs till PPTM (Comma Seperated Values)
Konvertera CSVs till PPTX (Comma Seperated Values)
Konvertera CSVs till RTF (Comma Seperated Values)
Konvertera CSVs till WORD (Comma Seperated Values)
Konvertera CSVs till WORDML (Comma Seperated Values)
Konvertera DIFs till DOC (Data Interchange Format)
Konvertera DIFs till DOCM (Data Interchange Format)
Konvertera DIFs till DOCX (Data Interchange Format)
Konvertera DIFs till DOT (Data Interchange Format)
Konvertera DIFs till DOTM (Data Interchange Format)
Konvertera DIFs till DOTX (Data Interchange Format)
Konvertera DIFs till MOBI (Data Interchange Format)
Konvertera DIFs till ODT (Data Interchange Format)
Konvertera DIFs till OTT (Data Interchange Format)