{"id":48340121,"url":"https://github.com/aspose-pdf/agentic-net-examples","last_synced_at":"2026-04-05T04:30:21.478Z","repository":{"id":342025539,"uuid":"1155300797","full_name":"aspose-pdf/agentic-net-examples","owner":"aspose-pdf","description":"AI verified C# code examples for Aspose.PDF for .NET. Each example compiles, runs, and includes an agents.md guide for AI coding agents..","archived":false,"fork":false,"pushed_at":"2026-04-02T12:05:59.000Z","size":4418,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-02T19:07:41.343Z","etag":null,"topics":["agents-md","ai-agents","aspose-pdf","code-examples","csharp","dotnet","pdf"],"latest_commit_sha":null,"homepage":"https://products.aspose.com/pdf/net/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aspose-pdf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"agents.md","dco":null,"cla":null}},"created_at":"2026-02-11T11:02:02.000Z","updated_at":"2026-03-12T18:39:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aspose-pdf/agentic-net-examples","commit_stats":null,"previous_names":["aspose-pdf/agentic-net-examples"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aspose-pdf/agentic-net-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-pdf%2Fagentic-net-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-pdf%2Fagentic-net-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-pdf%2Fagentic-net-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-pdf%2Fagentic-net-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aspose-pdf","download_url":"https://codeload.github.com/aspose-pdf/agentic-net-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-pdf%2Fagentic-net-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31424929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T02:22:46.605Z","status":"ssl_error","status_checked_at":"2026-04-05T02:22:33.263Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents-md","ai-agents","aspose-pdf","code-examples","csharp","dotnet","pdf"],"created_at":"2026-04-05T04:30:21.011Z","updated_at":"2026-04-05T04:30:21.466Z","avatar_url":"https://github.com/aspose-pdf.png","language":"C#","readme":"# Aspose.PDF for .NET Examples\n\nAI-friendly repository containing validated C# examples for Aspose.PDF for .NET API.\n\n## Overview\n\nThis repository provides working code examples demonstrating Aspose.PDF for .NET capabilities. All examples are automatically generated, compiled, and validated using the Aspose.PDF Examples Generator.\n\n## Repository Structure\n\nExamples are organized by feature category:\n- `accessibility-and-tagged-pdfs/` - 70 example(s)\n- `basic-operations/` - 78 example(s)\n- `compare-pdf/` - 30 example(s)\n- `conversion/` - 230 example(s)\n- `document/` - 72 example(s)\n- `facades-acroforms/` - 35 example(s)\n- `facades-annotations/` - 9 example(s)\n- `facades-bookmarks/` - 23 example(s)\n- `facades-convert-documents/` - 28 example(s)\n- `facades-documents/` - 56 example(s)\n- `facades-edit-document/` - 60 example(s)\n- `facades-extract-images-and-text/` - 12 example(s)\n- `facades-fill-forms/` - 12 example(s)\n- `facades-forms/` - 24 example(s)\n- `facades-metadata/` - 59 example(s)\n- `facades-pages/` - 43 example(s)\n- `facades-secure-documents/` - 31 example(s)\n- `facades-sign-documents/` - 14 example(s)\n- `facades-stamps/` - 50 example(s)\n- `facades-texts-and-images/` - 22 example(s)\n- `graphs-zugferd-operators/` - 9 example(s)\n- `javascript/` - 9 example(s)\n- `operators/` - 7 example(s)\n- `pages/` - 45 example(s)\n- `parse-pdf/` - 76 example(s)\n- `securing-and-signing-pdf/` - 25 example(s)\n- `stamping/` - 17 example(s)\n- `working-with-annotations/` - 252 example(s)\n- `working-with-attachments/` - 95 example(s)\n- `working-with-forms/` - 74 example(s)\n- `working-with-graphs/` - 33 example(s)\n- `working-with-images/` - 27 example(s)\n- `working-with-tables/` - 118 example(s)\n- `working-with-text/` - 62 example(s)\n- `working-with-xml/` - 16 example(s)\n\nEach category contains standalone `.cs` files that can be compiled and run independently.\n\n## Getting Started\n\n### Prerequisites\n- .NET SDK (net10.0 or compatible version)\n- Aspose.PDF for .NET NuGet package\n- Valid Aspose license (for production use)\n\n### Running Examples\n\nEach example is a self-contained C# file. To run an example:\n\n```bash\ncd \u003cCategoryFolder\u003e\ndotnet new console -o ExampleProject\ncd ExampleProject\ndotnet add package Aspose.PDF\n# Copy the example .cs file as Program.cs\ndotnet run\n```\n\n## Code Patterns\n\n### Loading a PDF\n```csharp\nusing (Document pdfDoc = new Document(\"input.pdf\"))\n{\n    // Work with document\n}\n```\n\n### Error Handling\n```csharp\nif (!File.Exists(inputPath))\n{\n    Console.Error.WriteLine($\"Error: File not found – {inputPath}\");\n    return;\n}\n\ntry\n{\n    // Operations\n}\ncatch (Exception ex)\n{\n    Console.Error.WriteLine($\"Error: {ex.Message}\");\n}\n```\n\n### Important Notes\n- **One-based indexing**: Aspose.PDF uses 1-based page indexing (`Pages[1]` = first page)\n- **Deterministic cleanup**: All IDisposable objects wrapped in `using` blocks\n- **Console output**: Success/error messages written to Console.WriteLine/Console.Error\n\n## Contributing\n\nExamples in this repository are **automatically generated**. To suggest new examples:\n1. Submit tasks to the Aspose.PDF Examples Generator\n2. Generated examples are validated via compilation\n3. Passing examples are included in monthly batches\n\n## Related Resources\n\n- [Aspose.PDF for .NET Documentation](https://docs.aspose.com/pdf/net/)\n- [API Reference](https://reference.aspose.com/pdf/net/)\n- [Aspose Forum](https://forum.aspose.com/c/pdf/10)\n- [AI Agent Guide](./agents.md) - For AI agents and code generation tools\n\n## License\n\nAll examples use Aspose.PDF for .NET and require a valid license for production use. See [licensing](https://purchase.aspose.com/).\n\n---\n\n*This repository is maintained by automated code generation. For AI-friendly guidance, see [agents.md](./agents.md).*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspose-pdf%2Fagentic-net-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faspose-pdf%2Fagentic-net-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspose-pdf%2Fagentic-net-examples/lists"}