//// This code is part of Document Solutions for PDF .NET demos.// Copyright (c) MESCIUS inc. All rights reserved.//usingSystem.IO;usingGrapeCity.Documents.Pdf; namespaceDsPdfWeb.Demos{// This example shows how to duplicate a page of a PDF using the PageCollection.ClonePage() method.publicclassClonePage {publicintCreatePDF(Stream stream) {var doc = newGcPdfDocument();usingvar fs = File.OpenRead(Path.Combine("Resources", "PDFs", "Wetlands.pdf")); doc.Load(fs);// Clone the first page of the PDF, insert it into the beginning of the document: doc.Pages.ClonePage(0, 0, true, true); // Save the PDF: doc.Save(stream);return doc.Pages.Count; } }}