export_pdf
Convert a validated CV draft into a PDF with the Europass XML embedded as an attachment. Get a shareable link instead of a large file, preserving machine-readability for the recipient.
Instructions
Lay the finished CV out as a PDF, with its Europass XML inside it.
Refuses a draft that would not validate, exactly as export_xml does, and
refuses where this server cannot make PDFs at all; the message says what to
do instead. The XML travels inside the PDF as an attachment, so the document
a reader receives is still the document a machine can read back.
What comes back is a link rather than the file, because a CV is hundreds of kilobytes and would crowd out the rest of this conversation. Give the link to the user, or read the resource it names if you need the bytes yourself.
Refuses a draft whose name cannot be read back out of that link, which is why a draft meant for a PDF wants an ordinary name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | Name of the draft to work on, as given to `create_cv`. |