How to make a PDF transcript to upload to Avalon.ΒΆ

This page explains how to generate pdfs for a collection of objects using existing metadata already on Avalon and a folder of .vtts with the transcripts.

  1. Download existing metadata by using pyavalon.

  2. In the terminal enter pyavalon get_file_ids_from_a_collection -c "{collection id}" -i {pre or prod}.

  3. A .csv will generate with metadata for the title, creator, contributor, date, rights information, publisher, subjects, derivative file, a parent work file id, a file id, a file title, and a work title.

  4. Create your own {collection-name}-pdfs.csv. Include the following columns:

  1. Use the function pdf-build.py. Change the collection_title and the line below it to have the name of your collection and csv you just created. Make sure you have a folder for your pdfs to save and change the output_filename and the vtt location.

  2. Run python pdf-build.py.

  3. To upload to Avalon, look at the documentation Importing media into Avalon via API Key. PDFs can only be imported through the API key, never through spreadsheets.