How to setup a new iPad pro from an existing iPad

 

To setup my new iPad pro based on my existing iPad pro I used the quick start feature (https://support.apple.com/en-us/HT210216).

At first the quick start screen did not appear on the old iPad.

I fixed this by enabeling Bluetooth on the old iPad and then rebooting the new iPad by pressing and holding the power button and the up volume button at the same time.

The iPad then powers off. Wait for 10 seconds then press the power button to turn it on. Now the quick start screen appeared on the old iPad.

 

Also make sure you don’t have your iPhone nearby, because then it will try to start the quick start from your iPhone.

 

Split PDF in C# for free with .NET Core and iText.Kernel.Pdf

using iText.Kernel.Pdf;

namespace RvvFacturatie.Services
{
    public class PdfService
    {
        public void Split(string filePath, string outputFolderPath)
        {
            // Make sure the output folder exists and is empty.
            if (Directory.Exists(filePath))
            {
                Directory.Delete(filePath, true);
            }
            Directory.CreateDirectory(outputFolderPath);

            using (var pdfDoc = new PdfDocument(new PdfReader(filePath)))
            {
                // Loop pages in the given document.
                int numberOfPages = pdfDoc.GetNumberOfPages();
                for (int i = 0; i < numberOfPages; i++)
                {
                    // Determine destination file path for current page.
                    int currentPageNumber = i + 1;
                    string fileName = $"Page - {currentPageNumber}.pdf";
                    string pageFilePath = Path.Combine(outputFolderPath, fileName);

                    // Write current page to disk.
                    using (PdfWriter writer = new PdfWriter(pageFilePath))
                    {
                        using (var pdf = new PdfDocument(writer))
                        {
                            pdfDoc.CopyPagesTo(pageFrom: currentPageNumber, pageTo: currentPageNumber, toDocument: pdf, insertBeforePage: 1);
                        }
                    }
                }
            }
        }
    }
}