- DocImaging for C#
- DocImaging for VB.NET
- KNOWLEDGE BASE
Guide for C#
Core Document Formats
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!
C#.NET PDF Page Modifier Control Overview
RasterEdge C#.NET PDF document editor SDK, following .NET class library design guidance, offers a robust feature set to support all your PDF document level processing needs. In this article, we will mainly talk about its page modifying functions. Following is a feature list of C#.NET PDF page modifier control.
This C#.NET online tutorial page aims to tell developers how to modify PDF pages in C#.NET imaging application. Here is the article layout of this C#.NET PDF page manipulating tutorial page.
C#.NET Programming Classes Introduction
In the process of document page modification and manipulation using C#.NET PDF page modifier control, there are two programming classes that will be used. One is PDFPage and the other is PDFDocument. And in this section, in order to eliminate the possible confusions in understanding following PDF page processing APIs, we here briefly introduce these two programming classes.
How to Insert PDF Page Using C#
If you want add an empty page to source PDF document file in C#.NET program, you should call the AddPage method which allows you to decide where the blank page will be inserted on source PDF file. For example, if you input the page index as 2, then, the created empty PDF page will be inserted into source PDF file as the third page.
What should be noted here is that, apart from inserting an empty page into target PDF file, this C#.NET PDF page modifier control also enables developer to add certain page that he gets from other PDFDocument.
C#.NET PDF Processing APIs to Add PDF Page
PDFDocument PDFDocument.AddPage(BasePage page);
C#.NET Demo Code for PDF Page Insertion
How to Remove PDF Page Using C#
If you want to delete or remove a page from PDFDocument in C# project, you can call DeletePage method and provide the input as the page index that you need to remove from source PDF file. For example, if you want to delete the second page from source multi-page PDF file, you just need to input the page index as 1 using DeletePage method.
C#.NET PDF Processing APIs to Delete PDF Page
PDFDocument PDFDocument.DeletePage(int pageIdx);
C#.NET Demo Code for PDF Page Deletion
public void DeletePage(String filePath, int pageIndx)
How to Reorganize PDF Pages Using C#
If you want to change the page order of source PDF document file, you should call SortPage method and provide the input as new PDF page order.
C#.NET PDF Processing APIs to Reorder PDF Pages
PDFDocument PDFDocument.SortPage(List<int> pageOrder);
C#.NET Demo Code for Sorting PDF Page Order
public void SortPageOrder(String filePath, List<int> pageOrder)
If you want to see more C#.NET online tutorials on PDF document processing at page level, like C#.NET sample code to add image to PDF page, C#.NET guidance on PDF document merger or splitter control and C#.NET demo code for PDF page extraction from source multi-page document file, please follow the links directly.