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

agentic-net-examples / facades-xmp-metadata

AGENTS.md2 starsChanged 4 months agoMITView on GitHub

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

The file

Files
AGENTS.md

AGENTS - facades-xmp-metadata

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

Scope

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

Required Namespaces

  • using Aspose.Pdf.Facades; (42/44 files) ← category-specific
  • using Aspose.Pdf; (23/44 files) ← category-specific
  • using Aspose.Pdf.Text; (2/44 files)
  • using Aspose.Pdf.Optimization; (1/44 files)
  • using Aspose.Pdf.XfaConverter; (1/44 files)
  • using System; (44/44 files)
  • using System.IO; (37/44 files)
  • using System.Text; (7/44 files)
  • using System.Xml; (5/44 files)
  • using NUnit.Framework; (3/44 files)
  • using System.Xml.Linq; (2/44 files)
  • using Newtonsoft.Json; (1/44 files)
  • using System.Collections.Generic; (1/44 files)
  • using System.Diagnostics; (1/44 files)
  • using System.Drawing; (1/44 files)
  • using System.Threading.Tasks; (1/44 files)
  • using System.Xml.Schema; (1/44 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

FileTitleKey APIsDescription
add-minimal-xmp-metadata-fallbackAdd Minimal XMP Metadata Fallback to PDFDocument, PdfXmpMetadata, BindPdfShows how to detect missing XMP metadata in a PDF and inject a minimal set of metadata entries us...
add-xmp-timestamp-to-pdfAdd XMP Timestamp to PDF during GenerationDocument, Page, TextFragmentShows how to create a PDF with Aspose.Pdf, add a page with sample text, and automatically embed a...
bind-pdf-byte-array-to-pdfxmpmetadataBind PDF Byte Array to PdfXmpMetadata and Extract XMPDocument, Add, SaveDemonstrates how to create a PDF in memory, bind it from a byte array to the PdfXmpMetadata facad...
clear-xmp-metadata-pdfClear All XMP Metadata from PDF while Preserving HeaderPdfXmpMetadata, BindPdf, ClearDemonstrates how to remove all XMP metadata from a PDF using Aspose.Pdf.Facades, keeping only the...
compress-pdf-read-xmp-metadataCompress PDF with High Settings and Read XMP MetadataDocument, OptimizationOptions, OptimizeResourcesDemonstrates compressing a PDF using high‑compression optimization options and then extracting it...
copy-xmp-metadata-and-merge-pdfsCopy XMP Metadata and Merge PDFsDocument, PdfXmpMetadata, BindPdfShows how to extract XMP metadata from a source PDF with the PdfXmpMetadata facade, apply it to a...
create-pdf-with-xmp-metadataCreate PDF with XMP MetadataDocument, Add, RegisterNamespaceUriShows how to generate a new PDF, register XMP namespaces, add custom XMP metadata entries, and sa...
decrypt-update-creatortool-reencrypt-pdfDecrypt PDF, Update CreatorTool, and Re‑encryptDocument, PdfFileSecurity, PdfFileInfoDemonstrates how to open a password‑protected PDF, decrypt it, modify the Creator metadata (Creat...
detect-and-modify-xmp-metadataDetect and Modify XMP Metadata in PDFPdfXmpMetadata, BindPdf, GetXmpMetadataDemonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfXmpMetadata, check for existing XMP met...
disable-baseurl-injection-html-to-pdfDisable BaseUrl Injection When Converting HTML to PDFDocument, HtmlLoadOptions, PdfViewerShows how to use a configuration switch to optionally omit the BaseUrl in HtmlLoadOptions while c...
export-pdf-xmp-metadata-to-jsonExport PDF XMP Metadata to JSONPdfXmpMetadata, BindPdf, GetXmpMetadataShows how to extract XMP metadata from a PDF using Aspose.Pdf.Facades and convert it into JSON fo...
export-xmp-metadata-from-pdfExport XMP Metadata from PDF to a Side‑car FilePdfXmpMetadata, BindPdf, GetXmpMetadataDemonstrates how to bind a PDF document, retrieve its XMP metadata using Aspose.Pdf.Facades, and ...
extract-xmp-metadata-from-pdfExtract XMP Metadata from PDFPdfXmpMetadata, BindPdf, GetXmpMetadataDemonstrates how to bind a PDF with the PdfXmpMetadata facade, retrieve the raw XMP XML bytes, co...
extract-xmp-metadata-to-dictionaryExtract XMP Metadata from PDF to DictionaryPdfXmpMetadata, BindPdf, GetXmpMetadataShows how to read the XMP packet from a PDF using Aspose.Pdf.Facades and convert the XML into a c...
insert-pages-update-xmp-metadataInsert Pages and Update XMP Metadata in PDFPdfFileEditor, TryInsert, PdfXmpMetadataDemonstrates how to insert selected pages from one PDF into another and then add or overwrite XMP...
list-xmp-namespaces-in-pdfList XMP Namespaces in a PDFPdfXmpMetadata, BindPdf, GetXmpMetadataShows how to extract the XMP metadata packet from a PDF using Aspose.Pdf and enumerate the namesp...
load-encrypted-pdf-decrypt-saveLoad Encrypted PDF, Decrypt with Password, and Save Unprotec...Document, ctor(string), ctor(string, string)Demonstrates how to detect an encrypted PDF, handle the InvalidPasswordException, load the docume...
log-original-xmp-metadataLog Original XMP Metadata from PDFPdfXmpMetadata, BindPdf, GetXmpMetadataShows how to bind a PDF using the PdfXmpMetadata facade, extract the XMP metadata as XML, and sav...
log-xmp-metadata-size-before-after-modificationLog XMP Metadata Size Before and After ModificationDocument, PdfXmpMetadata, GetXmpMetadataDemonstrates how to retrieve, log, and modify the XMP metadata block of a PDF using Aspose.Pdf, s...
modify-xmp-creator-propertyModify XMP Creator Property in PDFDocument, PdfXmpMetadata, BindPdfDemonstrates reading XMP metadata from a PDF, updating the dc:creator element, and writing the mo...
persist-custom-xmp-metadata-pdfPersist Custom XMP Metadata in PDFDocument, PdfFileInfo, CreatorThe example creates a PDF, sets the Creator property and custom XMP metadata entries (BaseUrl and...
read-xmp-metadata-from-large-pdfRead XMP Metadata from Large PDF and Measure PerformancePdfXmpMetadata, BindPdf, GetXmpMetadataDemonstrates how to bind a large PDF file, extract its XMP metadata using Aspose.Pdf.Facades, and...
read-xmp-metadata-from-pdf-uncRead XMP Metadata from PDF via UNC PathPdfXmpMetadata, BindPdf, GetXmpMetadataShows how to bind a PDF located on a network share using a UNC path and extract its XMP metadata ...
read-xmp-metadata-from-pdfRead XMP Metadata from PDFPdfXmpMetadata, BindPdf, GetXmpMetadataDemonstrates how to bind a PDF file to a PdfXmpMetadata facade and retrieve its XMP metadata as a...
read-xmp-metadata-from-pdf__v2Read and Parse XMP Metadata from a PDFPdfXmpMetadata, BindPdf, GetXmpMetadataDemonstrates how to bind a PDF, extract its XMP metadata as XML, and read specific schema propert...
refresh-creatortool-metadata-for-pdfsRefresh CreatorTool Metadata for PDFsPdfFileInfo, SaveNewInfo, CreatorShows how to scan a repository of PDF files and update the CreatorTool‑related XMP metadata (Crea...
remove-nickname-from-xmp-metadataRemove Nickname Element from PDF XMP MetadataPdfXmpMetadata, BindPdf, RemoveShows how to bind a PDF, remove the Nickname property from its XMP metadata using the PdfXmpMetad...
remove-xmp-metadata-from-pdfRemove XMP Metadata from PDFPdfXmpMetadata, BindPdf, ClearShows how to delete the entire XMP metadata block from a PDF using Aspose.Pdf.Facades and save a ...
replace-pdf-xmp-metadataReplace PDF XMP Metadata from External FileDocument, SetXmpMetadata, SaveDemonstrates loading a PDF, reading an external XMP file and replacing the document's XMP metadat...
set-baseurl-in-pdf-xmp-metadataSet BaseURL in PDF XMP MetadataPdfXmpMetadata, BindPdf, AddDemonstrates how to add or replace the BaseURL property in a PDF's XMP metadata using the PdfXmpM...
...and 14 more files

Category Statistics

  • Total examples: 44

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