C# .NET HTML splitter API til at opdele en enkelt HTML-fil til flere en-sides eller flersidede HTML-filer. Opdel dokumenter og billeder ved hjælp af forskellige filtre ved at angive nøjagtige sidetal, start- eller slutsidetal og lige eller ulige sidetal. Udfør opdelt handling for at opdele HTML-, PDF-, Tekst-, OpenDocument-, Microsoft Word-, Excel-, PowerPoint-, Visio- og OneNote-dokumenter til flere resulterende dokumenter.
HentOpdel et enkelt HTML-dokument til flere uafhængige dokumenter, og indsæt billed- eller tekstvandmærker til hver af de opdelte filer ved hjælp af C# .NET.
Du har brug for GroupDocs.Merger
og GroupDocs.Watermark
navneområder for at udføre dokumentopdelingsoperationer i PDF, Microsoft Office, HTML, OpenDocument og mange andre filformater. Udforsk andre .NET API’er til Office-dokumenter, som tilbydes af Conholdate.Total.
Hent de respektive monteringsfiler fra Hent eller hent hele pakken fra NuGet for at tilføje Conholdate.Total
direkte i dit arbejdsområde.
// Supports merging Microsft Word, Excel, PowerPoint, Visio, OpenDocument, HTML, eBook and PostScript file formats | |
// Supported file formats: https://docs.groupdocs.com/merger/net/supported-document-formats/ | |
using (Watermarker watermarker = new Watermarker("input.pdf")) | |
{ | |
Font font = new Font("Arial", 19, FontStyle.Bold | FontStyle.Italic); | |
TextWatermark watermark = new TextWatermark("my watermark", font); | |
watermark.ForegroundColor = Color.Red; | |
watermark.BackgroundColor = Color.Blue; | |
watermark.TextAlignment = TextAlignment.Right; | |
watermark.Opacity = 0.5; | |
watermarker.Add(watermark); | |
watermarker.Save("output.pdf"); | |
} | |
string outputFolder = @"c:\output\"; | |
SplitOptions splitOptions = new SplitOptions(outputFolder + "document_{0}.{1}", new int[] { 1, 2, 4 }); | |
using (Merger merger = new Merger("output.pdf")) | |
{ | |
merger.Split(splitOptions); | |
} |
Brug tekstsplitterbibliotek til .NET-applikationer – opdel hver linje eller flere linjer i kildetekstfilen i en separat resulterende .txt-fil ved at bruge et par linjer C#-kode.
Udfør multifunktionelle dokumentmanipulationsfunktioner i en række dokumentformater såsom Word, Excel-regneark, præsentationer, RTF, PDF, Visio, HTML, OneNote, XPS og mange andre ved at tilføje blot et par linjer C#-kode.
De vigtigste enkeltdokumenthandlinger omfatter flytning af sider i et dokument til en ny position, fjernelse af en enkelt side eller en samling eller udvalgte sider, udskiftning af sidepositioner, udtrækning af bestemte sider fra dokumentet, ændring af sideretningen til stående eller liggende tilstand og rotation siderne i kildedokumentet til en vinkel på 90, 180 eller 270 grader.
// Supports merging Microsft Word, Excel, PowerPoint, Visio, OpenDocument, HTML, eBook and PostScript file formats | |
// Supported file formats: https://docs.groupdocs.com/merger/net/supported-document-formats/ | |
string filePath = @"c:\sample.txt"; | |
string filePathOut = @"c:\output\line_{0}.{1}"; | |
TextSplitOptions splitOptions = new TextSplitOptions(filePathOut, new int[] { 3, 6 }); | |
using (Merger merger = new Merger(filePath)) | |
{ | |
merger.Split(splitOptions); | |
} |
HTML (Hypertext Markup Language) is the fundamental markup language that powers the creation of web pages. It serves as the building block for websites and is responsible for structuring the content, including text, images, audio, and video. HTML, in conjunction with CSS (Cascading Style Sheets), forms the backbone of digital documents on the internet.
In web development, HTML files work hand in hand with CSS files to create visually appealing and well-organized web pages. HTML files contain the markup that defines the structure of the document, while CSS files handle the styling and formatting of the HTML elements. HTML markup is written using tags, which instruct the web browser on how to interpret and display the content. Common HTML tags include HEAD, BODY, TITLE, H1, and P. HTML files are typically saved with a .html file extension and can be opened in web browsers, where they are rendered as web pages. They can also be viewed and edited using text editors like Notepad++ or Sublime Text.
The collaboration between HTML and CSS is essential for creating appealing and functional web pages. HTML provides the underlying structure, defining the layout, headings, paragraphs, links, and other elements that make up a webpage. CSS, on the other hand, allows developers to apply styling rules and visual enhancements, such as colors, fonts, margins, and positioning, to the HTML elements. This separation of structure (HTML) and presentation (CSS) enables efficient design changes and consistent styling across multiple web pages.
HTML is the cornerstone of the web, enabling the creation of interactive and accessible content that can be viewed in web browsers. It forms the foundation for other web technologies, such as JavaScript, which adds interactivity and dynamic behavior to web pages. HTML’s standardized syntax and wide browser support make it a universal language for web development.
Lære(Portable Document Format)
(Word Processing Files)
(Spreadsheet Files)
(Visio Diagram Files)
(Web Files)
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template Files)
(Microsoft Word 2007+ Template File)
(Microsoft Word Template File )
(Rich Text Format)
(Text Document)
(Microsoft Excel Spreadsheet (Legacy))
(Excel Binary Workbook)
(Macro-enabled Spreadsheet)
(Open XML Workbook)
(Excel 97 - 2003 Template)
(Excel Macro-Enabled Template)
(Excel Template)
(Excel Macro-Enabled Add-In)
(Comma Seperated Values)
(Tab Seperated Values)
(Microsoft PowerPoint 97-2003)
(Open XML presentation Format)
(PowerPoint Slide Show)
(PowerPoint Slide Show)
(Vector Design eXchange)
(Visio Macro-Enabled Drawing)
(Visio Drawing)
(Visio SmartShape Master)
(Visio Stencil File)
(Visio Macro-Enabled Drawing Template)
(Visio Drawing Template)
(Visio Stencil XML File)
(Anim8or 3D Model)
(OneNote Document)
(Hyper Text Markup Language)
(MHTML Web Archive)
(Web Page Archive Format)
(OpenDocument Presentation Format)
(OpenDocument Spreadsheet)
(OpenDocument Text File Format)
(OpenDocument Standard Format)
(OpenDocument Standard Format)
(Open eBook File)
(Error Report File)
(PostScript File)
(LaTeX Source Document)
(XML Paper Specifications)