Link Search Menu Expand Document

Delete Pages From PDF - C#

PDF Delete Pages sample in C# demonstrating ‘Delete Pages From PDF’

using System;
using RestSharp;
namespace HelloWorldApplication {
		class HelloWorld {
				static void Main(string[] args) {
						var client = new RestClient("");
						client.Timeout = -1;
						var request = new RestRequest(Method.POST);
						request.AddHeader("x-api-key", "{{x-api-key}}");
						request.AlwaysMultipartFormData = true;

						// You can also upload your own file into and use it as url. Check "Upload File" samples for code snippets:						
						request.AddParameter("url", "");
						request.AddParameter("name", "result.pdf");
						request.AddParameter("pages", "1-2");
						IRestResponse response = client.Execute(request);
} Web API: the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.

Get your API key here!

Download Source Code (.zip)

return to the previous page explore PDF Delete Pages endpoint