Ir para o conteúdo do rodapé

Como Obter a Contagem de Páginas PDF em C# | IronPDF

Reading the number of pages in a PDF is a small step that a lot of document workflows depend on.

This video walks through getting the total page count of a PDF document in C# with IronPDF. It covers loading an existing PDF file, accessing the document's properties, and reading the page count programmatically inside a .NET application. A reliable page count helps with validating uploads, driving reporting systems, enforcing size limits, and processing large batches of documents. Because IronPDF reads the file directly, you do not need an external PDF reader or extra dependencies, and the same pattern extends to other document metadata you might need later.

Vídeos relacionados

Pronto para começar?
Nuget Downloads 20,296,129 | Versão: 2026.7 recém-lançado
Still Scrolling Icon

Ainda está rolando a tela?

Quer provas rápidas? PM > Install-Package IronPdf
executar um exemplo Veja seu HTML se transformar em um PDF.

Equipe de Suporte Iron

Estamos online 24 horas por dia, 5 dias por semana.
Bater papo
E-mail
Liga para mim