C# .NET PS сплитер API за разделяне на един PS файл на няколко едностранични или многостранични PS файла. Разделете документи и изображения с помощта на различни филтри, като посочите точни номера на страници, начални или крайни номера на страници и четни или нечетни номера на страници. Извършете операция за разделяне, за да разделите HTML, PDF, Text, OpenDocument, Microsoft Word, Excel, PowerPoint, Visio и OneNote документи на множество получени документи.
ИзтеглиРазделете един PS документ на множество независими документи и вмъкнете изображение или текстови водни знаци към всеки от разделените файлове с помощта на C# .NET.
Необходими са ви пространства от имена GroupDocs.Merger
& GroupDocs.Watermark
, за да извършвате операции за разделяне на документи в PDF, Microsoft Office, HTML, OpenDocument и много други файлови формати. Разгледайте други .NET API за документи на Office, предлагани от Conholdate.Total.
Вземете съответните асемблиращи файлове от изтегляния или изтеглете целия пакет от NuGet, за да добавите Conholdate.Total
директно във вашето работно пространство.
// 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); | |
} |
Използване на библиотека за разделяне на текст за .NET приложения – разделете всеки ред или няколко реда от изходния текстов файл в отделен получен .txt файл, като използвате няколко реда C# код.
Изпълнявайте многофункционални функции за манипулиране на документи в различни формати на документи като Word, електронна таблица на Excel, презентации, RTF, PDF, Visio, HTML, OneNote, XPS и много други, като добавите само няколко реда C# код.
Основните операции с един документ включват преместване на страници в документа на нова позиция, премахване на отделна страница или колекция или избрани страници, смяна на позициите на страницата, извличане на конкретни страници от документа, промяна на ориентацията на страницата в портретен или пейзажен режим и завъртане страниците на изходния документ под ъгъл от 90, 180 или 270 градуса.
// 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); | |
} |
The PS (PostScript) file format is a popular vector graphics format developed by Adobe Systems. It is based on a scripting language of the same name and can be used to create high-quality, resolution-independent graphics. PostScript files are used for professional printing, as well as for digital illustration, page layout, and digital typesetting. It is an open standard and is widely supported by professional graphics and design software such as Adobe Illustrator and CorelDRAW. PostScript files are composed of a sequence of commands written in the PostScript language. These commands describe how the graphics should be printed or displayed. When opened, the commands are interpreted and the file is rendered on the device. The PostScript format also supports compression. Compressed PS files have the extension “PS.gz” and are much smaller in size than uncompressed files. PostScript files are ideal for printing, as they are resolution-independent, meaning that the document will print out correctly on different printers, regardless of their resolution. The PostScript format is also used extensively in laser printers.
Уча(Portable Document Format)
(word processing Files)
(Spreadsheet Management)
(Visio 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)
(The 7th Guest Video File)
(Visio Macro-Enabled Drawing)
(Visio Drawing)
(Visio Macro-Enabled Stencil File)
(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)
(PostScript File)
(LaTeX Source Document)
(XML Paper Specifications)