The Info dictionary is a dictionary object stored in the PDF's trailer section — the very end of the file that PDF readers parse first. It contains the standard fields: Title, Author, Subject, Keywords, Creator, Producer, CreationDate, and ModDate. LuraPDF uses pdf-lib to access this trailer dictionary directly, clears selected keys, and writes a new PDF with the dictionary updated or removed. This handles the layer that File > Properties exposes in standard PDF readers.
The XMP packet is more complex: it's a stream object embedded within the PDF that contains an XML document following the Extensible Metadata Platform specification. LuraPDF walks the PDF's object tree to locate the Metadata stream, parses the XMP XML, and removes or replaces fields across all relevant namespaces — Dublin Core (dc:creator, dc:title, dc:description), the PDF namespace (pdf:Author, pdf:Keywords), and XMPRights. Custom application namespaces added by tools like InDesign or Acrobat are also cleared. The result is a PDF where both metadata layers are clean.