Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
El siguiente fragmento de código también funciona con la biblioteca Aspose.PDF.Drawing.
Puedes eliminar páginas de un archivo PDF utilizando Aspose.PDF for .NET. Para eliminar una página en particular de la colección PageCollection.
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void DeletePageFromPdfFile()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf_Pages();
// Open PDF document
using (var document = new Aspose.Pdf.Document(dataDir + "DeleteParticularPage.pdf"))
{
// Delete a particular page
document.Pages.Delete(2);
// Save PDF document
document.Save(dataDir + "DeleteParticularPage_out.pdf");
}
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.