Enterprise-CMCS / macpro-platform-doc-conversion

Other
2 stars 0 forks source link

Set title on PDFs #48

Closed TheDanMiller closed 2 years ago

TheDanMiller commented 2 years ago

Type of Issue:

Issue Creator Checklist

Background

CARTS is sending HTML to doc-conversion and the PDF that came back was examined for 508 compliance. One of the failing items is that the title of the document is not being set.

Proposed Approach

Pull the title from the HTML document and use that to set the title of the PDF.
Not sure how to handle no title being sent over

Value

Moves us closer to 508 compliant documents

AC:

Documents that are created using the service have a title set https://helpx.adobe.com/acrobat/using/create-verify-pdf-accessibility.html?trackingid=KACNN#DocTitle

kenrickveit commented 2 years ago

We can handle this with --pdf-title=TITLE https://www.princexml.com/doc/command-line/#utility-options

We'll need to add an optional arg users can pass for this.

kenrickveit commented 2 years ago

Opened an internal Jira on this. Found that the title functionality already works if it is set as a tag in the supplied HTML. Added a note about this at the top of the README for inputs. Marking this closed, can re-open if there are cases where the tagging doesn't work and we have to set it with Prince args.