ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* issue importing metadata from PDF
@ 2021-11-12 17:53 Pablo Rodriguez via ntg-context
  2021-11-12 18:14 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2021-11-12 17:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez

Hans,

I have a PDF document (which I didn’t generate) and it contains the
following objects:

  1 0 obj
  <<
    /Title 272 0 R
    /Producer 273 0 R
    /Creator 274 0 R
    /CreationDate 275 0 R
    /ModDate 275 0 R
  >>
  endobj

  272 0 obj
  (This is an important title)
  endobj

  273 0 obj
  (Mac OS X 10.12.1 Quartz PDFContext)
  endobj

  274 0 obj
  (Keynote)
  endobj

  275 0 obj
  (D:20161108071428Z00'00')
  endobj

I cannot import these objects, since they are tables instead of strings,
after checking that with:

  \startluacode
  function document.transfer_metadata(name)
    local main_doc = lpdf.epdf.load(name)
    context(type(main_doc.Info.ModDate))
    context(type(main_doc.Info.Title))
  end
  \stopluacode

Would it be possible that LMTX can deal with these objects and import
them as strings?

Many thanks for your help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-12 19:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 17:53 issue importing metadata from PDF Pablo Rodriguez via ntg-context
2021-11-12 18:14 ` Hans Hagen via ntg-context
2021-11-12 18:24   ` Pablo Rodriguez via ntg-context
2021-11-12 19:04     ` Hans Hagen via ntg-context
2021-11-12 19:31       ` Pablo Rodriguez via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).