agentleFS
aspose-pdfaspose-pdf/agentic-net-examples/parse-pdf/AGENTS.md

agentic-net-examples / parse-pdf

AGENTS.md2 starsChanged 4 months agoMITView on GitHub

C# examples for parse-pdf using Aspose.PDF for .NET

The file

Files
AGENTS.md

AGENTS - parse-pdf

Parse PDF in PDF using C# / .NET -- 64 verified, compile-tested examples for Aspose.PDF for .NET 26.8.0. Each .cs file 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 .cs examples stored directly in this folder.

Required Namespaces

  • using Aspose.Pdf; (64/64 files) ← category-specific
  • using 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

FileTitleKey APIsDescription
batch-extract-vector-graphics-to-svgBatch Extract Vector Graphics from PDFs to SVGDocument, Page, HasVectorGraphicsShows how to iterate over PDF files in a folder, detect pages containing vector graphics, and sav...
combine-pdf-form-data-into-json-arrayCombine PDF Form Data into a Single JSON ArrayDocument, Form, ExportToJsonDemonstrates loading multiple PDF files, exporting each form's fields to JSON using Aspose.Pdf, a...
combine-pdf-page-vector-graphics-into-svgCombine PDF Page Vector Graphics into a Single SVGDocument, Page, SvgExtractorLoads a PDF, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges ...
combine-pdf-vectors-to-svgCombine Vector Graphics from Multiple PDFs into a Single SVGDocument, Page, HasVectorGraphicsThe example loads several PDF files, extracts vector graphics from each page using Aspose.Pdf's S...
count-acroform-fields-in-pdfCount AcroForm Fields in PDFDocument, FormLoads a PDF with Aspose.Pdf and retrieves the total number of AcroForm fields using Document.Form...
count-form-fields-on-each-pdf-pageCount Form Fields on Each PDF PageDocument, Form, PageDemonstrates opening a PDF with Aspose.Pdf, verifying the presence of an AcroForm, iterating thro...
enumerate-pdf-form-fieldsEnumerate PDF Form Fields on a PageDocument, Page, FieldLoads a PDF, accesses a specific page, and lists each form field on that page with its name, type...
export-acroform-fields-to-jsonExport AcroForm Fields to JSONDocument, Form, ExportToJsonShows how to load a PDF containing AcroForm fields and export the field names and values directly...
export-acroform-to-xfdfExport AcroForm Fields to XFDFDocument, ExportAnnotationsToXfdfShows how to load a PDF with Aspose.Pdf, create a FileStream, and export the document's AcroForm ...
export-pdf-annotations-to-xfdfExport PDF Annotations to XFDF using FileStreamDocument, ExportAnnotationsToXfdfDemonstrates how to load a PDF with Aspose.Pdf, export all its annotations to an XFDF file via a ...
export-pdf-form-data-to-fdfExport PDF Form Data to FDF Using Aspose.PdfDocument, Form, BindPdfLoads a PDF document, binds it to the Aspose.Pdf.Facades.Form facade, and exports the form fields...
export-pdf-form-data-to-jsonExport PDF Form Data to JSONDocument, Form, ExportToJsonShows 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__v2Export PDF Form Data to JSON FileDocument, Form, ExportToJsonDemonstrates loading a PDF with Aspose.Pdf, extracting all form fields, and saving them as a UTF‑...
export-pdf-form-data-to-json__v3Export PDF Form Data to JSON FilesDocument, Form, ExportToJsonIterates through PDF files in a folder, loads each with Aspose.Pdf, and exports the document's fo...
export-pdf-form-data-to-json__v4Export PDF Form Data to JSONDocument, Form, FormShows 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__v5Export PDF Form Data to JSON via StreamDocument, Form, ExportToJsonShows how to load a PDF document and export its form fields directly to a JSON file using a FileS...
export-pdf-form-data-to-xmlExport PDF Form Data to XML Using MemoryStreamDocument, Form, FieldsLoads a PDF, verifies the presence of form fields, and writes the form data as XML directly into ...
export-pdf-form-fields-to-xmlExport PDF Form Fields to XMLDocument, SaveXmlLoads a PDF document and saves its complete model, including form field definitions and values, t...
export-pdf-form-fields-with-prefix-to-jsonExport PDF Form Fields with Specific Prefix to JSONDocument, Field, FormLoads a PDF, filters its form fields to only those whose names start with a given prefix, and wri...
export-pdf-form-to-fdfExport PDF Form Data to FDFDocument, Form, BindPdfShows how to extract form field values from a PDF document and write them to an FDF file using As...
export-pdf-page-as-pngExport PDF Page as PNG ImageDocument, Resolution, PngDeviceLoads 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 SystemDocument, Page, TrySaveVectorGraphicsLoads a PDF, iterates through each page, and saves any vector graphics as SVG files while keeping...
export-pdf-tables-to-csv-with-bordersExport PDF Tables to CSV with Visual Border MarkersDocument, Page, TableAbsorberDemonstrates how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write them to ...
export-pdf-to-html-png-xfdfExport PDF to HTML, PNG, and XFDF with Proper Stream Disposa...Document, HtmlSaveOptions, PngDeviceDemonstrates how to export a PDF document to HTML, a PNG image of the first page, and XFDF annota...
export-pdf-to-svg-with-custom-optionsExport PDF to SVG with Custom Rendering OptionsDocument, SvgSaveOptions, SvgExtractionOptionsShows how to save a PDF as a single SVG file and extract per‑page vector graphics while applying ...
extract-checkbox-states-from-pdfExtract Checkbox States from PDF AcroFormDocument, Field, CheckboxFieldShows how to read checkbox fields from a PDF's AcroForm using Aspose.Pdf and write their checked ...
extract-first-page-text-to-utf8-fileExtract First Page Text from PDF to UTF-8 FileDocument, TextAbsorber, AcceptDemonstrates how to load a PDF with Aspose.Pdf, extract the text from its first page using a Text...
extract-fonts-from-pdf-ttfExtract Fonts from PDF and Save as TTF FilesDocument, FontUtilities, GetAllFontsLoads a PDF document, retrieves all embedded fonts, and exports each font to a .ttf file in a des...
extract-graphic-element-as-svgExtract Graphic Element as SVG from PDFDocument, Page, SvgExtractorLoads a PDF, extracts vector graphic elements on a page as SVG strings, selects one by index, and...
extract-graphics-from-specific-pdf-pagesExtract Graphics from Specific PDF Pages to SVGDocument, Page, GraphicsAbsorberShows 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 -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.