agentic-net-examples / document
AGENTS.md2 starsChanged 4 months agoMITView on GitHub
C# examples for document using Aspose.PDF for .NET
31 other projects use a version of this.
Adopted by
Most recently taken up by
- thekinv21/NotificationServicetheir own version, first seen Oct 3, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- thekinv21/RBAC_Authenticationtheir own version, first seen Oct 1, 2026
- Nagacash/naga-codex-skillstheir own version, first seen Sep 25, 2026
- ilanbm/kpoppertheir own version, first seen Sep 23, 2026
- elfrost/ai-patchlabtheir own version, first seen Sep 22, 2026
Other versions31 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 31
- jsmastery-pro/skills★ 1.4ksame name
- vladikk/modularity★ 549same name
- epicsagas/epic-harness★ 19same name
- domengabrovsek/agent-config★ 17same name
- ilanbm/kpopper★ 12same name
- agoodway/.claude★ 11same name
- jsmastery-pro/pilot★ 8same name
- nicolasestrem/antigravity-gemini-skills★ 8same name
- Akindu23/my-agent-skills★ 4same name
- bitcraft-apps/spec-first★ 4same name
21 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
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
- 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
- parse-pdfAGENTS.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
We split this AGENTS.md into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 30 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 122
Create MarkdownSaveOptions with parameterless constructor: new MarkdownSaveOptions().
- Distinctive: line 125
Create Matrix3D with parameterless constructor: new Matrix3D().
- Distinctive: line 126
Create Matrix3D with: new Matrix3D(double[] matrix3DArray).
- Distinctive: line 129
Ensure the output file extension matches the format when using MarkdownSaveOptions.
- Distinctive: line 130
Ensure the output file extension matches the format when using SaveOptions.
“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS - document
Document in PDF using C# / .NET -- 120 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 document category. This folder contains standalone C# examples for document operations. See the root agents.md for repository-wide conventions and boundaries.
Scope
- This folder contains examples for document.
- Files are standalone
.csexamples stored directly in this folder.
Required Namespaces
using Aspose.Pdf;(120/120 files) ← category-specificusing Aspose.Pdf.Text;(33/120 files)using Aspose.Pdf.Annotations;(23/120 files)using Aspose.Pdf.Forms;(12/120 files)using Aspose.Pdf.Optimization;(7/120 files)using Aspose.Pdf.Tagged;(7/120 files)using Aspose.Pdf.LogicalStructure;(6/120 files)using Aspose.Pdf.Devices;(5/120 files)using Aspose.Pdf.Drawing;(3/120 files)using Aspose.Pdf.Facades;(2/120 files)using Aspose.Pdf.Multithreading;(1/120 files)using Aspose.Pdf.Security.HiddenDataSanitization;(1/120 files)using System;(120/120 files)using System.IO;(101/120 files)using System.Collections.Generic;(3/120 files)using System.Data;(2/120 files)using System.Diagnostics;(2/120 files)using System.Drawing;(2/120 files)using System.Text;(2/120 files)using NUnit.Framework;(1/120 files)using System.Linq;(1/120 files)using System.Reflection;(1/120 files)using System.Threading;(1/120 files)using System.Threading.Tasks;(1/120 files)
Common Code Pattern
Most files follow this pattern:
using (Document doc = new Document("input.pdf"))
{
// ... operations ...
doc.Save("output.pdf");
}Files in this folder
| File | Title | Key APIs | Description |
| add-accessibility-tags-to-pdf | Add Accessibility Tags to PDF (Headings, Paragraphs, Tables) | Document, ITaggedContent, StructureElement | Loads an existing PDF, enables auto‑tagging, sets language and title metadata, and creates tagged... |
| add-background-color-to-pdf-page | Add Background Color to PDF Page with Opacity | Document, Page, Graph | Demonstrates how to fill an entire PDF page with a semi‑transparent color by adding a rectangle s... |
| add-background-template-to-pdf-pages | Add Background Template to All PDF Pages | Document, Page, PdfPageStamp | Shows how to load a PDF and a single‑page background template, then stamp each page of the target... |
| add-captions-below-images-in-pdf | Add Captions Below Images in PDF | Document, Page, XImage | Shows how to iterate over image resources in a PDF and insert a styled caption paragraph beneath ... |
| add-checked-checkbox-form-field | Add Checked Checkbox Form Field to PDF | Document, Page, Rectangle | Shows how to create a PDF document, add a checkbox form field, set its default state to checked, ... |
| add-company-logo-header-to-pdf-pages | Add Company Logo Header to PDF Pages | Document, Page, ImageStamp | Shows how to load an existing PDF, create an ImageStamp for a logo, position it as a top‑center h... |
| add-custom-document-info-and-xmp-metadata | Add Custom Document Info and XMP Metadata to PDF | Document, DocumentInfo, Add | Demonstrates how to add custom key/value pairs to a PDF's DocumentInfo dictionary and embed XMP m... |
| add-diagonal-text-stamp-to-pdf | Add Diagonal Text Stamp Watermark to PDF | Document, TextStamp, FontRepository | Shows how to load a PDF with Aspose.Pdf, create a TextStamp with a custom message, configure its ... |
| add-digital-signature-to-pdf | Add Digital Signature Field and Sign PDF with Self‑Signed Ce... | Document, Rectangle, SignatureField | Demonstrates how to create a signature field in a PDF, configure a PKCS#1 signature using a self‑... |
| add-dynamic-heading-to-pdf | Add Dynamic Heading to PDF | Document, Page, Heading | Shows how to load a PDF template, create a heading with dynamic date and user information, positi... |
| add-hierarchical-numbered-headings | Add Hierarchical Numbered Headings to PDF | Document, Page, Heading | Shows how to apply decimal numbering to headings and create hierarchical numbering (chapters and ... |
| add-hyperlink-annotation-to-pdf | Add Hyperlink Annotation to PDF | Document, Page, Rectangle | Shows how to insert a clickable hyperlink annotation that opens an external website in a PDF docu... |
| add-indented-paragraph-with-line-spacing | Add Indented Paragraph with Line Spacing to PDF | Document, Page, TextParagraph | Shows how to load a PDF, create a TextParagraph with first‑line and subsequent line indentation, ... |
| add-javascript-open-action-to-pdf | Add JavaScript Open Action to PDF | Document, Save, JavascriptAction | Demonstrates embedding JavaScript in a PDF with Aspose.Pdf so an alert dialog appears when the do... |
| add-javascript-sum-calculation-to-pdf-form | Calculate Sum of Two PDF Form Fields with JavaScript | Document, Page, NumberField | Demonstrates creating a PDF with two numeric input fields and a read‑only sum field, then attachi... |
| add-javascript-sum-numeric-pdf-form-fields | Add JavaScript to Sum Numeric PDF Form Fields | Document, Form, TextBoxField | Demonstrates embedding Acrobat JavaScript in a PDF with Aspose.Pdf to calculate the total of two ... |
| add-level-1-heading-to-pdf | Add Level 1 Heading to PDF using Tagged Content | Document, ITaggedContent, HeaderElement | Demonstrates how to create a PDF document, use the tagged content API to insert a Level 1 heading... |
| add-line-annotation-with-custom-color-thickness | Add Line Annotation with Custom Color and Thickness to PDF | Document, Page, Rectangle | Demonstrates how to create a line annotation on a PDF page, set its color, and adjust its thickne... |
| add-line-separator-annotation-to-pdf-page | Add Line Separator Annotation to PDF Page | Document, Page, Point | Demonstrates how to insert a horizontal line annotation as a visual separator on a specific PDF p... |
| add-link-annotation-open-pdf-attachment | Add Link Annotation to Open PDF Attachment | Document, Page, Rectangle | Shows how to create a link annotation on a PDF page that opens an external PDF attachment using A... |
| add-multi-level-toc-to-pdf | Add Multi‑Level Table of Contents to PDF | Document, AutoTaggingSettings, ProcessParagraphs | Demonstrates how to enable auto‑tagging, detect headings, create a TOC element, insert a dedicate... |
| add-new-bookmark-to-pdf-outline | Add New Bookmark to PDF Outline | Document, OutlineItemCollection, XYZExplicitDestination | Demonstrates how to create an outline (bookmark) in an existing PDF, set its title, style, and de... |
| add-page-count-footer-to-pdf | Add Page Count Footer to PDF Pages | Document, Page, TextFragment | Demonstrates how to add a custom footer that shows "Page X of Y" on each page of a PDF using Aspo... |
| add-page-numbers-to-pdf-footer | Add Page Numbers to PDF Footer | Document, Page, PageNumberStamp | Demonstrates how to insert sequential page numbers into the footer of each page in a PDF using As... |
| add-popup-note-annotation | Add Pop‑up Note Annotation to PDF | Document, Page, Rectangle | Shows how to create a TextAnnotation with a linked PopupAnnotation in a PDF using Aspose.Pdf and ... |
| add-signature-field-to-pdf | Add Signature Field to PDF with Matching Appearance | Document, SignatureField, DefaultAppearance | Shows how to insert a user signature form field into an existing PDF and configure its default ap... |
| add-signature-image-stamp-to-last-page | Add Signature Image Stamp to Last PDF Page | Document, Page, ImageStamp | Shows how to load a PDF with Aspose.Pdf, create an ImageStamp from a signature image, position it... |
| add-styled-table-alternating-row-colors | Add Styled Table with Alternating Row Colors to PDF | Document, Page, Table | Demonstrates creating a table with borders, header styling, and alternating row background colors... |
| add-visible-digital-signature-and-lock-pdf | Add Visible Digital Signature Field and Lock PDF | Document, SignatureField, PKCS1 | The example loads an existing PDF, creates a visible signature field on the first page, signs it ... |
| add-watermark-layer-merge-layers | Add Watermark Layer and Merge Layers in PDF | Document, Layer, ImageStamp | Demonstrates how to create a watermark as an optional content group (layer), add it to each page ... |
| ... | and 90 more files |
Category Statistics
- Total examples: 120
Category-Specific Tips
Key API Surface
Aspose.Pdf.ArtifactCollectionAspose.Pdf.ArtifactCollection.AddAspose.Pdf.ArtifactCollection.CopyToAspose.Pdf.ArtifactCollection.CountAspose.Pdf.ArtifactCollection.DeleteAspose.Pdf.ArtifactCollection.FindByValueAspose.Pdf.ArtifactCollection.GetEnumeratorAspose.Pdf.ArtifactCollection.IsReadOnlyAspose.Pdf.ArtifactCollection.IsSynchronizedAspose.Pdf.ArtifactCollection.ItemAspose.Pdf.ArtifactCollection.SyncRootAspose.Pdf.ArtifactCollection.UpdateAspose.Pdf.AutoTaggingSettingsAspose.Pdf.AutoTaggingSettings.DefaultAspose.Pdf.AutoTaggingSettings.EnableAutoTagging
Rules
- Create MarkdownSaveOptions with parameterless constructor: new MarkdownSaveOptions().
- To convert PDF to Markdown: create MarkdownSaveOptions, configure options, then call document.Save(outputPath, options).
- Configure MarkdownSaveOptions by setting properties: ExtractVectorGraphics, AreaToExtract, SubscriptAndSuperscriptConversion, ResourcesDirectoryName, UseImageHtmlTag.
- Create Matrix3D with parameterless constructor: new Matrix3D().
- Create Matrix3D with: new Matrix3D(double[] matrix3DArray).
Warnings
- Ensure the output file extension matches the format when using MarkdownSaveOptions.
- Ensure the output file extension matches the format when using SaveOptions.
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 document 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.

