HHS / simpler-grants-pdf-builder

PDF builder that's used by the SimplerNOFOs project, part of the Simpler Grants initiative at HHS.
4 stars 1 forks source link

Metadata 2 pdf #6

Closed pcraig3 closed 9 months ago

pcraig3 commented 9 months ago

This PR finishes the metadata story that was started in #5. Merging this one closes #5.

There are 4 steps here:

1. Look for the metadata in the NOFO document

We are using the following keywords to identify them on import:

metadata in the Google Doc
Screenshot 2024-02-05 at 6 18 22 PM

2. See / Edit the metadata in the NOFO builder

before after
see metadata in the edit view edit the metadata
Screenshot 2024-02-05 at 6 19 22 PM Screenshot 2024-02-05 at 6 19 30 PM

3. Format metadata as header tags

This is as described by the DocRaptor documentation: https://docraptor.com/documentation/article/1068015-metadata

Basically, the metadata should be in the <head> rather than in the body of the document.

metadata in the <head> of the HTML Nofo
Screenshot 2024-02-05 at 6 20 04 PM

4. Print the PDF, check out Document properties

All's good in the hood

Screenshot 2024-02-05 at 6 26 17 PM