Extract Metadata

Examples

Extract XML-Metadata from book.pdf into the current directory:

  1. pdfcpu extract -mode meta book.pdf .
  2. extracting metadata from book.pdf into . ...
  3. ls
  4. -rwxr-xr-x 1 horstrutter staff 45K Mar 8 12:40 177_Catalog.txt*
  5. -rw-r-----@ 1 horstrutter staff 537K Jun 9 2017 book.pdf
  6. cat 177_Catalog.txt
  7. <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
  8. <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="3.1.1-111">
  9. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  10. <rdf:Description rdf:about=""
  11. xmlns:dc="http://purl.org/dc/elements/1.1/">
  12. <dc:format>image/epsf</dc:format>
  13. <dc:title>
  14. <rdf:Alt>
  15. <rdf:li xml:lang="x-default">Print</rdf:li>
  16. </rdf:Alt>
  17. </dc:title>
  18. </rdf:Description>
  19. <rdf:Description rdf:about=""
  20. xmlns:xap="http://ns.adobe.com/xap/1.0/">
  21. <xap:MetadataDate>2011-12-23T14:44:17+01:00</xap:MetadataDate>
  22. <xap:ModifyDate>2011-12-23T14:44:17+01:00</xap:ModifyDate>
  23. <xap:CreateDate>2011-12-23T14:44:17+01:00</xap:CreateDate>
  24. etc...