1. Produkter
  2.   Conholdate.Total
  3.   .NET
  4.   Opdel enkelt PS til mange PS-filer i .NET

Opdel enkelt PS til mange PS-filer i .NET

C# .NET PS splitter API til at opdele en enkelt PS-fil til flere en-sides eller flersidede PS-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.

Hent

Opdel PS-fil og tilføj vandmærker i .NET

Opdel et enkelt PS-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.

  • Instantiér Watermarker med opdelt dokument
  • Instantér vandmærkeskrifttype, opret TextWatermark-objekt og indstil vandmærkeegenskaber
  • Tilføj vandmærke og gem vandmærket dokument
  • Indstil outputsti, hvor filerne gemmes efter opdeling
  • Instantiér SplitOptions-objektet med stien til opdelt fil og antallet af sider, der skal opdeles
  • Opret Merger-objekt med inputdokument og opdel ved hjælp af SplitOptions

Hent Dokument Dele API

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);
}

Opdel tekstfil i mange filer i C# .NET

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.

  • Initialiser TextSplitOptions-klassen med outputfilstiformat, ønsket TextSplitMode og linjenumre
  • Instantiér Merger-objekt med kildedokumentsti eller strøm
  • Kald Split-metoden og send TextSplitOptions-objektet for at gemme de resulterende tekstfiler

Enkeltdokumentændringsoperationer

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);
}

What is PS file format?

The PPS file format is specifically designed for presentations and is commonly used in Microsoft PowerPoint. It serves as a container for slides and images, allowing users to create engaging visual presentations. Similar to the PPT format, which is part of the Microsoft Office Suite, PPS files provide a convenient way to share and deliver presentations.

One of the notable advantages of the PPS file format is its self-contained nature. This means that the file includes all the necessary components, such as slides, images, and formatting, making it independent of external dependencies. As a result, PPS files can be opened and viewed without requiring the installation of Microsoft PowerPoint. This portability makes it easy to share presentations with others who may not have the software installed.

Furthermore, PPS files are designed to be lightweight and efficient in terms of memory usage. They consume only a small amount of memory, ensuring smooth performance even on systems with limited resources. This efficiency is particularly beneficial when transporting presentations to different computers or devices. Whether it’s emailing the file or sending it via an instant messaging service, the compact size of PPS files enables quick transmission without overwhelming network bandwidth or storage limitations.

In addition to their convenience and portability, PPS files enhance the presentation experience. When opened, the files seamlessly transition between slides, providing a smooth and professional flow to captivate the audience. This feature is especially important during live presentations, where a fluid transition between slides contributes to a cohesive and engaging delivery.

Moreover, the PPS format allows users to compress their presentations, reducing the file size for faster transmission. By compressing the images, videos, and other multimedia elements within the presentation, users can optimize the file without compromising its visual quality. This compression feature is particularly useful when sharing presentations over the internet or via other communication channels, as it minimizes transfer times and ensures a prompt delivery.

Lære

Populære muligheder for dokumentfusion med .NET

Flet PDF-filer

(Portable Document Format)

Flet WORD-filer

(Word Processing Files)

Flet EXCEL-filer

(Spreadsheet Files)

Flet VISIO-filer

(Visio Diagram Files)

Flet WEB-filer

(Web Files)

Flet DOC-filer

(Microsoft Word Binary Format)

Flet DOCX-filer

(Office 2007+ Word Document)

Flet DOCM-filer

(Microsoft Word 2007 Marco File)

Flet DOT-filer

(Microsoft Word Template Files)

Flet DOTM-filer

(Microsoft Word 2007+ Template File)

Flet DOTX-filer

(Microsoft Word Template File )

Flet RTF-filer

(Rich Text Format)

Flet TXT-filer

(Text Document)

Flet XLS-filer

(Microsoft Excel Spreadsheet (Legacy))

Flet XLSB-filer

(Excel Binary Workbook)

Flet XLSM-filer

(Macro-enabled Spreadsheet)

Flet XLSX-filer

(Open XML Workbook)

Flet XLT-filer

(Excel 97 - 2003 Template)

Flet XLTM-filer

(Excel Macro-Enabled Template)

Flet XLTX-filer

(Excel Template)

Flet XLAM-filer

(Excel Macro-Enabled Add-In)

Flet CSV-filer

(Comma Seperated Values)

Flet TSV-filer

(Tab Seperated Values)

Flet PPT-filer

(Microsoft PowerPoint 97-2003)

Flet PPTX-filer

(Open XML presentation Format)

Flet PPS-filer

(PowerPoint Slide Show)

Flet PPSX-filer

(PowerPoint Slide Show)

Flet VDX-filer

(Vector Design eXchange)

Flet VSDM-filer

(Visio Macro-Enabled Drawing)

Flet VSDX-filer

(Visio Drawing)

Flet VSSM-filer

(Visio SmartShape Master)

Flet VSSX-filer

(Visio Stencil File)

Flet VSTM-filer

(Visio Macro-Enabled Drawing Template)

Flet VSTX-filer

(Visio Drawing Template)

Flet VSX-filer

(Visio Stencil XML File)

Flet VTX-filer

(Anim8or 3D Model)

Flet ONE-filer

(OneNote Document)

Flet HTML-filer

(Hyper Text Markup Language)

Flet MHT-filer

(MHTML Web Archive)

Flet MHTML-filer

(Web Page Archive Format)

Flet ODP-filer

(OpenDocument Presentation Format)

Flet ODS-filer

(OpenDocument Spreadsheet)

Flet ODT-filer

(OpenDocument Text File Format)

Flet OTP-filer

(OpenDocument Standard Format)

Flet OTT-filer

(OpenDocument Standard Format)

Flet EPUB-filer

(Open eBook File)

Flet ERR-filer

(Error Report File)

Flet PS-filer

(PostScript File)

Flet TEX-filer

(LaTeX Source Document)

Flet XPS-filer

(XML Paper Specifications)

 Dansk