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

agentic-net-examples / facades-documents

AGENTS.md2 starsChanged 4 months agoMITView on GitHub

C# examples for facades-documents using Aspose.PDF for .NET

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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
  1. Distinctive:

    Create AutoFiller with parameterless constructor: new AutoFiller().

    line 112
  2. Distinctive:

    Call AutoFiller.Save() to persist changes to the output file.

    line 113
  3. Distinctive:

    Create PdfFileSanitization with parameterless constructor: new PdfFileSanitization().

    line 116

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS - facades-documents

Facades documents in PDF using C# / .NET -- 101 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 facades-documents category. This folder contains standalone C# examples for facades-documents operations. See the root agents.md for repository-wide conventions and boundaries.

Scope

  • This folder contains examples for facades-documents.
  • Files are standalone .cs examples stored directly in this folder.

Required Namespaces

  • using Aspose.Pdf.Facades; (98/101 files) ← category-specific
  • using Aspose.Pdf; (37/101 files)
  • using Aspose.Pdf.Text; (8/101 files)
  • using Aspose.Pdf.Devices; (1/101 files)
  • using Aspose.Pdf.Drawing; (1/101 files)
  • using System; (101/101 files)
  • using System.IO; (99/101 files)
  • using System.Collections.Generic; (11/101 files)
  • using System.Diagnostics; (3/101 files)
  • using System.Linq; (3/101 files)
  • using NUnit.Framework; (2/101 files)
  • using System.Threading.Tasks; (2/101 files)
  • using System.Globalization; (1/101 files)
  • using System.IO.Compression; (1/101 files)
  • using System.Net.Http; (1/101 files)

Common Code Pattern

Most files in this category use PdfFileEditor from Aspose.Pdf.Facades:

PdfFileEditor tool = new PdfFileEditor();
tool.BindPdf("input.pdf");
// ... PdfFileEditor operations ...
tool.Save("output.pdf");

Files in this folder

FileTitleKey APIsDescription
append-pages-from-multiple-pdfsAppend Pages from Multiple PDFs to a Base PDFPdfFileEditor, TryAppend, LastExceptionDemonstrates inserting a specific page range from several source PDFs into a base PDF in a single...
append-pages-to-pdfAppend Pages from One PDF to AnotherDocument, PdfFileEditor, AppendShows how to append all pages of a source PDF to the end of a destination PDF using Aspose.Pdf's ...
audit-log-pdf-page-deletionAudit Log for PDF Page DeletionDocument, PdfFileEditor, TryDeleteDemonstrates how to delete specific pages from a PDF using Aspose.Pdf's facade API and log the nu...
batch-concatenate-pdfsBatch Concatenate PDFs in a FolderPdfFileEditor, ConcatenateShows how to gather all PDF files from a directory and merge them into a single PDF using Aspose....
batch-create-nup-pdfs-3x2Batch Create N‑up PDFs with 3 Columns and 2 RowsPdfFileEditor, MakeNUpShows how to iterate over a list of PDF files and generate N‑up versions using a 3‑column by 2‑ro...
batch-delete-pages-from-multiple-pdfsBatch Delete Pages from Multiple PDFsPdfFileEditor, DeleteDemonstrates how to loop through PDF files in a folder and delete specific pages from each using ...
batch-delete-pages-merge-pdfsBatch Delete Pages and Merge PDFsPdfFileEditor, Delete, ConcatenateShows how to remove specific pages from multiple PDF files and then concatenate the cleaned PDFs ...
batch-insert-page-rangesBatch Insert Page Ranges from Multiple PDFsPdfFileEditor, TryInsertShows how to insert selected pages from several source PDFs into a single destination PDF in a lo...
batch-resize-pdfs-to-a4Batch Resize PDFs to A4PdfPageEditor, BindPdf, PageSizeIterates through all PDF files in a source folder, resizes each document to A4 page size using As...
batch-resize-pdfs-to-a5-and-create-bookletsBatch Resize PDFs to A5 and Create BookletsPdfFileEditor, ResizeContents, MakeBookletProcesses each PDF in a folder, resizes its pages to A5 dimensions, and then generates a booklet ...
compare-pdf-concatenation-paths-streamsCompare PDF Concatenation via File Paths and StreamsPdfFileEditor, Concatenate(string, string, string), Concatenate(Stream, Stream, Stream)Demonstrates how to concatenate two PDF files using Aspose.Pdf.Facades.PdfFileEditor with both fi...
concatenate-multiple-pdfs-measure-timeConcatenate Multiple PDFs and Measure Execution TimePdfFileEditor, Concatenate, CloseConcatenatedStreamsDemonstrates how to concatenate fifty small PDF files using Aspose.Pdf.Facades.PdfFileEditor stre...
concatenate-multiple-pdfs-with-loggingConcatenate Multiple PDFs with LoggingPdfFileEditor, Concatenate, CopyLogicalStructureDemonstrates how to merge several PDF files into a single document using Aspose.Pdf.Facades.PdfFi...
concatenate-multiple-pdfsConcatenate Multiple PDFsPdfFileEditor, Concatenate, CloseConcatenatedStreamsShows how to merge several PDF files into a single document using Aspose.Pdf's PdfFileEditor facade.
concatenate-multiple-pdfs__v2Concatenate Multiple PDFs Using Aspose.PdfPdfFileEditor, Concatenate, CloseConcatenatedStreamsDemonstrates reading PDF files as streams, merging them with Aspose.Pdf.Facades.PdfFileEditor, an...
concatenate-pdfs-add-page-numbersConcatenate PDFs and Add Page NumbersPdfFileEditor, Concatenate, PdfFileStampShows how to merge multiple PDF files into a single document and automatically insert page number...
concatenate-pdfs-from-memory-streamsConcatenate PDFs from Memory Streams to FileDocument, Page, TextFragmentCreates PDF documents in memory, concatenates them using Aspose.Pdf.Facades.PdfFileEditor, and wr...
concatenate-pdfs-in-zipConcatenate PDFs Inside a Zip ArchivePdfFileEditor, Concatenate, DocumentShows how to read PDF files from a zip archive, merge them with Aspose.Pdf.Facades.PdfFileEditor,...
concatenate-pdfs-preserve-metadataConcatenate PDFs While Preserving Original MetadataPdfFileInfo, PdfFileEditor, ConcatenateDemonstrates how to merge multiple PDF files using PdfFileEditor and then copy the author, title,...
concatenate-pdfs-using-stream-overloadsConcatenate PDFs Using Stream OverloadsPdfFileEditor, Concatenate, CloseConcatenatedStreamsShows how to merge multiple PDF files passed as command‑line arguments into a single PDF using As...
concatenate-pdfs-with-blank-pagesConcatenate PDFs with Blank PagesDocument, Add, SaveShows how to merge multiple PDF files and automatically insert a blank page between each document...
concatenate-split-pdfsConcatenate Split PDFs into a Single DocumentPdfFileEditor, Insert, DocumentShows how to merge a series of split PDF files into one PDF using Aspose.Pdf's PdfFileEditor.Inse...
concatenate-three-pdfs-into-oneConcatenate Three PDFs into a Single DocumentPdfFileEditor, ConcatenateDemonstrates how to merge three PDF files into one using Aspose.Pdf.Facades.PdfFileEditor and the...
concatenate-two-pdfs-using-pdffileeditorConcatenate Two PDFs Using PdfFileEditorPdfFileEditor, Concatenate, DocumentShows how to merge two PDF files into a single document using the two‑file overload of PdfFileEdi...
create-2up-pdf-layoutCreate 2-up PDF Layout with Aspose PdfFileEditorPdfFileEditor, MakeNUpDemonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to combine two PDF pages onto a single p...
create-4up-pdf-with-pdffileeditorCreate 4‑up PDF using PdfFileEditor and MemoryStreamPdfFileEditor, TryMakeNUpDemonstrates how to apply a 4‑up (2×2) layout to an existing PDF by using the PdfFileEditor.TryMa...
create-a5-booklet-from-pdfCreate A5 Booklet from PDFPdfFileEditor, MakeBooklet, PageSizeDemonstrates how to generate a booklet with A5 page size from an existing PDF using Aspose.Pdf's ...
create-booklet-custom-page-orderCreate Booklet with Custom Left/Right Page OrderDocument, TextFragment, TextAbsorberDemonstrates adding visible page numbers, defining custom left and right page arrays, and using A...
create-booklet-from-second-halfCreate Booklet from Second Half of PDFDocument, PdfFileEditor, MakeBookletDemonstrates how to generate a booklet PDF where the left pages come from the first half of a sou...
create-booklet-pdf-custom-page-orderCreate Booklet PDF with Custom Page OrderPdfFileEditor, MakeBookletDemonstrates how to generate a booklet PDF by specifying left‑hand and right‑hand page sequences ...
...and 71 more files

Category Statistics

  • Total examples: 101

Category-Specific Tips

Key API Surface

  • Aspose.Pdf.Facades.AutoFiller
  • Aspose.Pdf.Facades.AutoFiller.BindPdf
  • Aspose.Pdf.Facades.AutoFiller.Close
  • Aspose.Pdf.Facades.AutoFiller.Dispose
  • Aspose.Pdf.Facades.AutoFiller.ImportDataTable
  • Aspose.Pdf.Facades.AutoFiller.InputFileName
  • Aspose.Pdf.Facades.AutoFiller.InputStream
  • Aspose.Pdf.Facades.AutoFiller.OutputStream
  • Aspose.Pdf.Facades.AutoFiller.OutputStreams
  • Aspose.Pdf.Facades.AutoFiller.Save
  • Aspose.Pdf.Facades.AutoFiller.UnFlattenFields
  • Aspose.Pdf.Facades.BDCProperties
  • Aspose.Pdf.Facades.BDCProperties.E
  • Aspose.Pdf.Facades.BDCProperties.Lang
  • Aspose.Pdf.Facades.BDCProperties.MCID

Rules

  • Create AutoFiller with parameterless constructor: new AutoFiller().
  • Call AutoFiller.Save() to persist changes to the output file.
  • AutoFiller implements IDisposable — wrap in a using block for deterministic cleanup.
  • Configure AutoFiller by setting properties: UnFlattenFields, OutputStream, OutputStreams, InputStream, InputFileName.
  • Create PdfFileSanitization with parameterless constructor: new PdfFileSanitization().

Warnings

  • AutoFiller is in the Facades namespace — add 'using Aspose.Pdf.Facades;' explicitly.
  • PdfFileSanitization is in the Facades namespace — add 'using Aspose.Pdf.Facades;' explicitly.
  • FontColor is in the Facades namespace — add 'using Aspose.Pdf.Facades;' explicitly.
  • BDCProperties is in the Facades namespace — add 'using Aspose.Pdf.Facades;' explicitly.
  • Facade is in the Facades namespace — add 'using Aspose.Pdf.Facades;' explicitly.

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 facades-documents 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.