Success in generating (seemingly) PDF/A-compliant output using pdfx package #4424
fuhrmanator
started this conversation in
Show and Tell
Replies: 1 comment
-
For reference, this is now tracked in #4426 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My publishing requirements ask me to generate a PDF that is PDF/A (archive) compliant. I did some googling, and found a great explanation at https://www.mathstat.dal.ca/~selinger/pdfa/. However, I wasn't able to get the metadata into the PDF file according to the documented process. I realized it's because it's hard to know exactly what the
.tex
file is named whenpdflatex
is invoked in Quarto. In my case, it's a book project, so I think the file wasindex.tex
, even though thekeep-tex
results in a file with the name of the title of my book. I suppose it's something else when you write an article, etc.Anyway, I read the docs for the
pdfx
package and found that you can embed the metadata into the.tex
source, with a vanilla file name that "always" works. I tried it usingheader-includes:
and it works well (or seems to). I see the metadata in the PDF, and Acrobat says my PDF is indeed PDF/A when I open it. I haven't fully validated the result with a real validation tool. But it's an encouraging start. Here's what I put in my_quarto.yml
for a book project.The first line loads the
pdfx
package, and the following lines create (overwrite) the metadata file, which is magically created temporarily in thepdflatex
pipeline (so you don't need to worry about the exact filename, and it stays with your document).Of course, you must duplicate some of the XMP info that is defined in other Quarto fields, e.g., Title, Author, etc. Maybe one day Quarto can make this happen automagically (in partials), but for now I'm happy I don't have to do a separate conversion step.
Beta Was this translation helpful? Give feedback.
All reactions