Is metadata embedded wrong into the PDF?

Here’s my metadata setting of a sample document:

#set document(
   title: [Erste Schritte in Typst],
   author: "Stefan Wolfrum",
   description: [Ein kleines Demo-Dokument, was die Nutzung von Typst demonstrieren soll.],
   keywords: ("Typst", "Demonstration", "Sample", "Beispiel"),
   date: datetime(year: 2025, month: 12, day: 6)
)

And here’s a screenshot of macOS’s Preview app’s Inspector panel when I open the PDF:

Why is the author metadata embedded as “Subject” and the “Author” field is empty? What am I missing / doing wrong? Or is it a bug?

I’m using the locally installed version (via homebrew) on macOS 26.1.
When asking for the version in a terminal window via typst --version I get 0.14.1 – but note that the Preview Inspector says 0.14.0 as the “Content Creator”. :man_shrugging:

I’m using VSCode to write Typst documents and the “Tinymist Typst” extension to see the live preview and initiate the PDF creation.

2 Likes

Hi, welcome to the forum!

Have you tried to create the PDF by executing typst compile main.typ?

Tinymist does not use the typst CLI installed on your system. Instead, it exports the document using its own library. What’s the versions of your VS Code and the tinymist extension?

1 Like

Thanks for welcoming me, @Y.D.X! :blush:
I didn’t know that the VSCode extension does not use the installed typst tool!

My VSCode is V1.106.3, the extension is 0.14.4.

I compiled my source .typ file on the commandline and the result is the same:

But note the 0.14.1 version now. :wink:

I think this is a bug in Preview. I compiled your minimal example with Typst 0.14.1 and opened it with Acrobat, Chrome, Firefox and SumatraPDF all of them show the correct metadata.

2 Likes

Ohhhh, you’re right! A bug in Apple’s Preview on macOS!!

I just tried Preview on iPadOS (why didn’t I think of that before?! :man_facepalming:) and everything looks right!

I’m wondering where this “Version” metadata with value “1.7” comes from?

Version 1.7 is the default PDF version used by Typst.

3 Likes

I reported this to Apple with FeedbackID FB21283915.

1 Like