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

agentic-net-examples / facades-metadata

AGENTS.md2 starsChanged 4 months agoMITView on GitHub

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

The file

Files
AGENTS.md

AGENTS - facades-metadata

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

Scope

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

Required Namespaces

  • using Aspose.Pdf.Facades; (39/40 files) ← category-specific
  • using Aspose.Pdf; (5/40 files)
  • using System; (40/40 files)
  • using System.IO; (35/40 files)
  • using System.Collections.Generic; (4/40 files)
  • using System.Text.Json; (2/40 files)
  • using System.Threading.Tasks; (2/40 files)
  • using System.Collections.Concurrent; (1/40 files)
  • using System.Linq; (1/40 files)
  • using System.Text.RegularExpressions; (1/40 files)

Common Code Pattern

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

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

Files in this folder

FileTitleKey APIsDescription
add-custom-metadata-field-to-pdfAdd Custom Metadata Field to PDF Using PdfFileInfoPdfFileInfo, SetMetaInfo, SaveNewInfoDemonstrates how to preserve existing custom metadata in a PDF and add a new "Version" field usin...
add-custom-metadata-reviewedby-to-pdfAdd Custom Metadata 'ReviewedBy' to PDFPdfFileInfo, SetMetaInfo, SaveNewInfoDemonstrates how to set a custom metadata field in a PDF using Aspose.Pdf.Facades.PdfFileInfo and...
add-custom-metadata-to-pdfAdd Custom Metadata to PDF using PdfFileInfoPdfFileInfo, SetMetaInfo, SaveNewInfoDemonstrates how to add a custom metadata entry (ProjectCode) to an existing PDF and save the upd...
add-department-metadata-to-pdfsAdd Custom Department Metadata to PDFsPdfFileInfo, SetMetaInfo, SaveNewInfoDemonstrates how to loop through PDF files, set a custom "Department" metadata field using PdfFil...
add-lastupdated-metadata-to-pdfAdd LastUpdated Metadata to PDFPdfFileInfo, BindPdf, SetMetaInfoDemonstrates how to add a custom metadata field named "LastUpdated" with the current UTC timestam...
apply-metadata-changes-to-multiple-pdfs-in-paralle...Apply Metadata Changes to Multiple PDFs in ParallelPdfFileInfo, Title, AuthorDemonstrates how to update the Title, Author, and Subject metadata of several PDF files concurren...
audit-pdf-metadata-to-csvAudit PDF Metadata Changes and Log to CSVPdfFileInfo, Title, AuthorDemonstrates how to read existing PDF metadata with Aspose.Pdf.Facades, modify selected fields, s...
backup-and-update-pdf-metadataBackup PDFs and Update Metadata with PdfFileInfoPdfFileInfo, Title, AuthorThe example creates a backup of each PDF in a folder, then uses Aspose.Pdf.Facades.PdfFileInfo to...
convert-pdf-to-pdfa-1b-using-pdffileinfoConvert PDF to PDF/A-1B Using PdfFileInfoPdfFileInfo, Document, ConvertDemonstrates how to load a PDF with PdfFileInfo, convert it to PDF/A‑1B compliance, and save the ...
export-pdf-metadata-to-jsonExport PDF Metadata to JSONPdfFileInfo, BindPdf, TitleThe program scans a folder for PDF files, extracts their metadata using Aspose.Pdf.Facades.PdfFil...
handle-readonly-file-errors-when-saving-pdf-metada...Handle Read‑Only File Errors When Saving PDF MetadataPdfFileInfo, Title, SaveNewInfoDemonstrates how to modify PDF metadata with Aspose.Pdf.Facades and reliably save it even when th...
import-json-metadata-to-pdfImport JSON Metadata and Apply to PDF FilesPdfFileInfo, Title, AuthorThe example reads a JSON file containing metadata definitions and applies the standard and custom...
list-custom-pdf-metadata-keysList Custom PDF Metadata Keys AlphabeticallyPdfFileInfo, GetMetaInfo, DocumentShows how to extract all custom metadata keys from a PDF, sort them alphabetically, and output ea...
load-pdf-retrieve-file-info-and-saveLoad PDF, Retrieve File Info, and Save with Proper DisposalDocument, PdfFileInfo, SaveDemonstrates loading a PDF using Aspose.Pdf.Document inside a using block, accessing file‑level i...
merge-xmp-metadata-with-pdf-fileinfoMerge XMP Metadata with PDF FileInfoDocument, Info, MetadataDemonstrates how to combine standard PDF FileInfo metadata with custom XMP metadata in a PDF usin...
read-custom-pdf-metadata-existence-checkRead Custom PDF Metadata with Existence CheckPdfFileInfo, GetMetaInfoShows how to verify a PDF file exists and safely read a custom metadata key "Confidential" using ...
read-pdf-author-metadataRead PDF Author Metadata Using PdfFileInfoPdfFileInfo, AuthorDemonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and retrieve the Author metada...
read-pdf-creator-metadataRead PDF Creator MetadataPdfFileInfo, CreatorShows how to use Aspose.Pdf.Facades.PdfFileInfo to retrieve the Creator metadata property from an...
read-pdf-metadata-with-null-handlingRead PDF Metadata with Null HandlingPdfFileInfo, GetMetaInfo, TitleShows how to read custom and standard PDF metadata using PdfFileInfo and gracefully handle null o...
read-pdf-modification-dateRead PDF Modification Date with PdfFileInfoPdfFileInfo, ModDate, DisposeShows how to use Aspose.Pdf.Facades.PdfFileInfo to obtain the ModDate metadata from a PDF and out...
read-pdf-title-metadata-logRead PDF Title Metadata and Write to LogPdfFileInfo, TitleDemonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read the Title metadata from a PDF file...
read-pdf-versionRead PDF Version Using Aspose.Pdf FacadePdfFileInfo, BindPdf, GetPdfVersionShows how to bind a PDF file with PdfFileInfo and retrieve its version string for later use.
read-update-pdf-metadataRead and Update PDF MetadataPdfFileInfo, BindPdf, TitleDemonstrates how to open a PDF, read its existing metadata, modify fields such as title and autho...
remove-custom-pdf-metadata-entryRemove Custom PDF Metadata EntryPdfFileInfo, BindPdf, SetMetaInfoDemonstrates how to delete a specific custom metadata field from a PDF by setting its value to an...
retrieve-custom-pdf-metadata-reviewedbyRetrieve Custom PDF Metadata (ReviewedBy)PdfFileInfo, GetMetaInfoDemonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read a custom metadata property from a ...
retrieve-custom-pdf-metadataRetrieve Custom PDF Metadata (ProjectCode)PdfFileInfo, GetMetaInfoShows how to read a custom metadata entry named "ProjectCode" from a PDF file using Aspose.Pdf.Fa...
retrieve-pdf-keywords-metadataRetrieve PDF Keywords Metadata using PdfFileInfoPdfFileInfo, KeywordsDemonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and read the Keywords metadata...
set-pdf-creator-metadataSet PDF Creator Metadata Using PdfFileInfoPdfFileInfo, Creator, SaveNewInfoDemonstrates how to assign a custom Creator value to a PDF file by using Aspose.Pdf.Facades.PdfFi...
set-pdf-document-id-using-guidSet PDF Document ID Using GUID MetadataDocument, PdfFileInfo, BindPdfGenerates a new GUID and stores it as a custom metadata entry (DocumentID) in a PDF using the Pdf...
set-pdf-keywords-metadataSet PDF Keywords Metadata Using PdfFileInfoPdfFileInfo, Keywords, SaveNewInfoDemonstrates how to assign a Keywords metadata value to a PDF file with Aspose.Pdf.Facades.PdfFil...
...and 10 more files

Category Statistics

  • Total examples: 40

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-metadata 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.