agentic-net-examples / parse-pdf
AGENTS.md2 starsChanged 4 months agoMITView on GitHub
C# examples for parse-pdf using Aspose.PDF for .NET
In this repository36 other files it gives its agents.
- accessibility-and-tagged-pdfsAGENTS.md
- aspose-pdf-examplesAGENTS.md
- basic-operationsAGENTS.md
- compare-pdfAGENTS.md
- conversionAGENTS.md
- documentAGENTS.md
- facades-acroformsAGENTS.md
- facades-annotationsAGENTS.md
- facades-bookmarksAGENTS.md
- facades-convert-documentsAGENTS.md
- facades-documentsAGENTS.md
- facades-edit-documentAGENTS.md
- facades-extract-images-and-textAGENTS.md
- facades-fill-formsAGENTS.md
- facades-formsAGENTS.md
- facades-metadataAGENTS.md
- facades-pagesAGENTS.md
- facades-secure-documentsAGENTS.md
- facades-sign-documentsAGENTS.md
- facades-stampsAGENTS.md
- facades-texts-and-imagesAGENTS.md
- facades-xmp-metadataAGENTS.md
- graphs-zugferd-operatorsAGENTS.md
- pagesAGENTS.md
- securing-and-signing-pdfAGENTS.md
- stampingAGENTS.md
- uncategorizedAGENTS.md
- working-with-annotationsAGENTS.md
- working-with-attachmentsAGENTS.md
- working-with-formsAGENTS.md
- working-with-graphsAGENTS.md
- working-with-imagesAGENTS.md
- working-with-tablesAGENTS.md
- working-with-textAGENTS.md
- working-with-xmlAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
The file
Files
AGENTS - parse-pdf
Parse PDF in PDF using C# / .NET -- 64 verified, compile-tested examples for Aspose.PDF for .NET 26.8.0. Each
.csfile is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing.
Persona
You are a C# developer specializing in PDF processing using Aspose.PDF for .NET, working within the parse-pdf category. This folder contains standalone C# examples for parse-pdf operations. See the root agents.md for repository-wide conventions and boundaries.
Scope
- This folder contains examples for parse-pdf.
- Files are standalone
.csexamples stored directly in this folder.
Required Namespaces
using Aspose.Pdf;(64/64 files) ← category-specificusing Aspose.Pdf.Forms;(22/64 files)using Aspose.Pdf.Text;(16/64 files)using Aspose.Pdf.Vector;(12/64 files)using Aspose.Pdf.Drawing;(4/64 files)using Aspose.Pdf.Annotations;(3/64 files)using Aspose.Pdf.Devices;(2/64 files)using System;(64/64 files)using System.IO;(64/64 files)using System.Collections.Generic;(9/64 files)using System.Text;(8/64 files)using System.Linq;(4/64 files)using System.Text.Json;(4/64 files)using System.Reflection;(2/64 files)using System.Drawing;(1/64 files)using System.Drawing.Imaging;(1/64 files)using System.Globalization;(1/64 files)using System.Text.Json.Nodes;(1/64 files)using System.Threading;(1/64 files)using System.Threading.Tasks;(1/64 files)using System.Xml;(1/64 files)
Common Code Pattern
Most files follow this pattern:
using (Document doc = new Document("input.pdf"))
{
// ... operations ...
}Files in this folder
| File | Title | Key APIs | Description |
| batch-extract-vector-graphics-to-svg | Batch Extract Vector Graphics from PDFs to SVG | Document, Page, HasVectorGraphics | Shows how to iterate over PDF files in a folder, detect pages containing vector graphics, and sav... |
| combine-pdf-form-data-into-json-array | Combine PDF Form Data into a Single JSON Array | Document, Form, ExportToJson | Demonstrates loading multiple PDF files, exporting each form's fields to JSON using Aspose.Pdf, a... |
| combine-pdf-page-vector-graphics-into-svg | Combine PDF Page Vector Graphics into a Single SVG | Document, Page, SvgExtractor | Loads a PDF, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges ... |
| combine-pdf-vectors-to-svg | Combine Vector Graphics from Multiple PDFs into a Single SVG | Document, Page, HasVectorGraphics | The example loads several PDF files, extracts vector graphics from each page using Aspose.Pdf's S... |
| count-acroform-fields-in-pdf | Count AcroForm Fields in PDF | Document, Form | Loads a PDF with Aspose.Pdf and retrieves the total number of AcroForm fields using Document.Form... |
| count-form-fields-on-each-pdf-page | Count Form Fields on Each PDF Page | Document, Form, Page | Demonstrates opening a PDF with Aspose.Pdf, verifying the presence of an AcroForm, iterating thro... |
| enumerate-pdf-form-fields | Enumerate PDF Form Fields on a Page | Document, Page, Field | Loads a PDF, accesses a specific page, and lists each form field on that page with its name, type... |
| export-acroform-fields-to-json | Export AcroForm Fields to JSON | Document, Form, ExportToJson | Shows how to load a PDF containing AcroForm fields and export the field names and values directly... |
| export-acroform-to-xfdf | Export AcroForm Fields to XFDF | Document, ExportAnnotationsToXfdf | Shows how to load a PDF with Aspose.Pdf, create a FileStream, and export the document's AcroForm ... |
| export-pdf-annotations-to-xfdf | Export PDF Annotations to XFDF using FileStream | Document, ExportAnnotationsToXfdf | Demonstrates how to load a PDF with Aspose.Pdf, export all its annotations to an XFDF file via a ... |
| export-pdf-form-data-to-fdf | Export PDF Form Data to FDF Using Aspose.Pdf | Document, Form, BindPdf | Loads a PDF document, binds it to the Aspose.Pdf.Facades.Form facade, and exports the form fields... |
| export-pdf-form-data-to-json | Export PDF Form Data to JSON | Document, Form, ExportToJson | Shows how to load a PDF document with Aspose.Pdf, export all form fields to a JSON string using t... |
| export-pdf-form-data-to-json__v2 | Export PDF Form Data to JSON File | Document, Form, ExportToJson | Demonstrates loading a PDF with Aspose.Pdf, extracting all form fields, and saving them as a UTF‑... |
| export-pdf-form-data-to-json__v3 | Export PDF Form Data to JSON Files | Document, Form, ExportToJson | Iterates through PDF files in a folder, loads each with Aspose.Pdf, and exports the document's fo... |
| export-pdf-form-data-to-json__v4 | Export PDF Form Data to JSON | Document, Form, Form | Shows how to load a PDF with Aspose.Pdf and export its interactive form fields to a JSON file usi... |
| export-pdf-form-data-to-json__v5 | Export PDF Form Data to JSON via Stream | Document, Form, ExportToJson | Shows how to load a PDF document and export its form fields directly to a JSON file using a FileS... |
| export-pdf-form-data-to-xml | Export PDF Form Data to XML Using MemoryStream | Document, Form, Fields | Loads a PDF, verifies the presence of form fields, and writes the form data as XML directly into ... |
| export-pdf-form-fields-to-xml | Export PDF Form Fields to XML | Document, SaveXml | Loads a PDF document and saves its complete model, including form field definitions and values, t... |
| export-pdf-form-fields-with-prefix-to-json | Export PDF Form Fields with Specific Prefix to JSON | Document, Field, Form | Loads a PDF, filters its form fields to only those whose names start with a given prefix, and wri... |
| export-pdf-form-to-fdf | Export PDF Form Data to FDF | Document, Form, BindPdf | Shows how to extract form field values from a PDF document and write them to an FDF file using As... |
| export-pdf-page-as-png | Export PDF Page as PNG Image | Document, Resolution, PngDevice | Loads a PDF document, creates a resolution and PNG device, and rasterizes the first page to a PNG... |
| export-pdf-pages-to-svg-preserving-coordinate-syst... | Export PDF Pages to SVG Preserving Coordinate System | Document, Page, TrySaveVectorGraphics | Loads a PDF, iterates through each page, and saves any vector graphics as SVG files while keeping... |
| export-pdf-tables-to-csv-with-borders | Export PDF Tables to CSV with Visual Border Markers | Document, Page, TableAbsorber | Demonstrates how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write them to ... |
| export-pdf-to-html-png-xfdf | Export PDF to HTML, PNG, and XFDF with Proper Stream Disposa... | Document, HtmlSaveOptions, PngDevice | Demonstrates how to export a PDF document to HTML, a PNG image of the first page, and XFDF annota... |
| export-pdf-to-svg-with-custom-options | Export PDF to SVG with Custom Rendering Options | Document, SvgSaveOptions, SvgExtractionOptions | Shows how to save a PDF as a single SVG file and extract per‑page vector graphics while applying ... |
| extract-checkbox-states-from-pdf | Extract Checkbox States from PDF AcroForm | Document, Field, CheckboxField | Shows how to read checkbox fields from a PDF's AcroForm using Aspose.Pdf and write their checked ... |
| extract-first-page-text-to-utf8-file | Extract First Page Text from PDF to UTF-8 File | Document, TextAbsorber, Accept | Demonstrates how to load a PDF with Aspose.Pdf, extract the text from its first page using a Text... |
| extract-fonts-from-pdf-ttf | Extract Fonts from PDF and Save as TTF Files | Document, FontUtilities, GetAllFonts | Loads a PDF document, retrieves all embedded fonts, and exports each font to a .ttf file in a des... |
| extract-graphic-element-as-svg | Extract Graphic Element as SVG from PDF | Document, Page, SvgExtractor | Loads a PDF, extracts vector graphic elements on a page as SVG strings, selects one by index, and... |
| extract-graphics-from-specific-pdf-pages | Extract Graphics from Specific PDF Pages to SVG | Document, Page, GraphicsAbsorber | Shows how to use GraphicsAbsorber together with SvgExtractor to collect vector graphics from sele... |
| ... | and 34 more files |
Category Statistics
- Total examples: 64
General Tips
- See parent AGENTS.md for:
- Boundaries -- Always / Ask First / Never rules for all examples
- Common Mistakes -- verified anti-patterns that cause build failures
- Domain Knowledge -- cross-cutting API-specific gotchas
- Testing Guide -- build and run verification steps
- Review code examples in this folder for parse-pdf patterns
<!-- AUTOGENERATED:START -->Updated: 2026-08-20 | Run: 20260820_001147_12d7b3
<!-- AUTOGENERATED:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

