ByteScout Premium Suite - C# - Load existing pdf document with pdf sdk - ByteScout

ByteScout Premium Suite – C# – Load existing pdf document with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – C# – Load existing pdf document with pdf sdk

How to load existing pdf document with pdf sdk in C# and ByteScout Premium Suite

Learn to code in C# to load existing pdf document with pdf sdk with this step-by-step tutorial

ByteScout simple and easy to understand tutorials are planned to describe the code for both C# beginners and advanced programmers. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording and you can use it to load existing pdf document with pdf sdk with C#.

The SDK samples given below describe how to quickly make your application do load existing pdf document with pdf sdk in C# with the help of ByteScout Premium Suite. Just copy and paste the code into your C# application’s code and follow the instructions. Enjoy writing a code with ready-to-use sample codes in C#.

You can download free trial version of ByteScout Premium Suite from our website to see and try many others source code samples for C#.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System.Diagnostics; using Bytescout.PDF; namespace LoadDocument { /// <summary> /// This example demonstrates how to load and modify an existing document. /// </summary> class Program { static void Main() { // Create new Document object Document pdfDocument = new Document(); pdfDocument.RegistrationName = "demo"; pdfDocument.RegistrationKey = "demo"; // Load existing document pdfDocument.Load("sample.pdf"); // Add new page to loaded document Page page = new Page(PaperFormat.A4); Font font = new Font(StandardFonts.Times, 24); Brush brush = new SolidBrush(); page.Canvas.DrawString("New Page", font, brush, 20, 20); pdfDocument.Pages.Add(page); // Save document to file pdfDocument.Save("result.pdf"); // Cleanup pdfDocument.Dispose(); // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("result.pdf"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next