aspose-pdf-examples

A collection of validated C# console programs showing how to use Aspose.PDF for .NET, a library for creating and changing PDF files.

In plain words
What is it for?
Use it to create, edit, convert, compare, annotate, or otherwise process PDF documents with Aspose.PDF for .NET.
Why use it?
It gives coding agents working examples and project rules, reducing guesswork when writing PDF-processing code.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/aspose-pdf/agentic-net-examples/agents-md
Clone the repo
git clone --depth 1 https://github.com/aspose-pdf/agentic-net-examples

Made for: Codex, OpenCode.

Per session 4,912 This file is loaded in full into every session.
When invoked 4,912 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.04912 $0.04912
Opus 5 $0.02456 $0.02456
Sonnet 5 $0.00982 $0.00982
Haiku 4.5 $0.00491 $0.00491

Measured 2d ago against content hash 8d9e71897e5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aspose-pdf-examples scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 569 lines

How it starts

The opening of the file, as written. The whole thing — 569 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Aspose.PDF for .NET Examples

AI-friendly repository containing validated C# examples for Aspose.PDF for .NET API.

Persona

You are a C# developer specializing in PDF processing using Aspose.PDF for .NET. When working in this repository:

  • Each .cs file is a standalone Console Application -- do not create multi-file projects
  • All examples must compile and run without errors using dotnet build and dotnet run
  • Follow the conventions, boundaries, and anti-patterns documented below exactly
  • Use the Command Reference section for build/run commands

Repository Overview

This repository contains 2636 working code examples demonstrating Aspose.PDF for .NET capabilities.

Statistics (as of 2026-07-21):

  • Total Examples: 2636
  • Categories: 35

Category Details

accessibility-and-tagged-pdfs

basic-operations

compare-pdf

conversion

document

facades-acroforms

facades-annotations

facades-bookmarks

facades-convert-documents

facades-documents

facades-edit-document

facades-extract-images-and-text

facades-fill-forms

Read the full file on GitHub · 569 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 569 lines · 4,912 tokens per session scan A 8d9e71897e5f

Subscribe to this mod's changes

aspose-pdf-examples is an instructions file published in the GitHub repository aspose-pdf/agentic-net-examples (2 stars, last pushed 13d ago), licensed MIT. It adds 4,912 tokens to every session, about $0.0246 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.