Getting Started with .NET MAUI - A PDF Splitter

Search for a command to run...

No comments yet. Be the first to comment.
In this series I will be building a PDF splitting application for Windows using .NET MAUI.
Introduction This article is the third article in my PDF Splitter series but the first one in which we start to drill down into the code. Creating the Project For this tutorial, I'm going to be using Visual Studio, in my case, I'm using Visual Studio...
Introduction Semantic Kernel is an open-source framework by Microsoft that integrates machine learning and natural language processing to build AI applications. It offers tools for tasks like language understanding, text generation, and semantic sear...

Introduction In the earlier articles in my PDF Splitter series, we have relied on the inbuild .NET libraries to handle working with PDF files in MAUI, but these only support opening and displaying of PDF files. Now that we are looking to save our new...

Introduction In the previous article, we created a PDF model and service to allow us to work with and track PDF pages. The next step is to build the UI to allow us to interact with the service. To do this we will create a single 'view' and a 'view mo...

Introduction For the fourth article in my PDF Splitter series, we will start working with PDF files in .NET MAUI. Helpfully, MAUI contains a lot of useful PDF tools for reading PDF files out of the box, so we do not need to use any additional librari...

Introduction In this article, I'm going to introduce basic navigation into my .NET MAUI PDF Splitter application. If you're following my PDF Splitter Application series, you will have a simple application based on the out-the-box .NET template with a...

For this series, I will create a PDF Splitter application using .NET MAUI. This will be a Windows application which will enable me to split out pages from a PDF file into multiple pdf files as required.
.NET Multi-platform App UI (MAUI) is a user interface framework that is designed to allow a developer to create applications that target one or multiple different platforms.
In my previous post about becoming a better developer, I talk a bit about how this project came about, my background with WPF, a precursor to MAUI, and also how I believe personal projects can help us on our journey to become better developers.
This series goes through the key steps I take as I create the PDF Splitter application.
The application will be designed to:
Allow me to open a PDF and display the list of pages
Allow me to select a page and view the page's contents
Allow a page to be marked to be extracted into a new PDF
Allow me to save any pages marked for extraction into a new PDF file.
Although it will evolve as the project progresses, the design is a pretty simple component-based layout. There will be three main components to the design, that allow me to:
Display the pages of the selected PDF
View a selected page
Display and save a list of pages selected for extraction
Although this isn't going to be a step-by-step guide, I will cover some of the key topics as I go through the journey, including:
Components and Views
The Model - View - ViewModel (MVVM) approach
Adding controls and model binding
Working with random access memory streams to display images in C#
The full code is available here, and the full series can be found here.