Sub topic 10
Choosing formats and preparing files
What this chapter assumes
You can create and export documents such as PDFs. You also know where your course platform lets you attach a file to a lesson. An earlier chapter covered which resources deserve a place in the course. This chapter covers the file itself: which format to use and how to prepare it so it opens, prints, and downloads without trouble. Delivery, access control, licensing, and accessibility checks each have their own chapters.
Match the format to what the learner will do
Choose a format by the task the learner will perform, not by what your authoring tool exports by default. Two questions settle most cases:
- Does the learner need to change the file?
- Does the layout need to look the same on every device and on paper?
| Learner task | Good format | Reason | Avoid |
|---|---|---|---|
| Read or print a checklist or cheat sheet | Layout stays fixed on every device and printer | A word-processor file, which can reflow or swap fonts | |
| Fill in a worksheet on screen | Fillable PDF, or a DOCX or Google Docs template | Learners can type into it | A scanned image of a form |
| Reuse a template (budget, plan, email script) | DOCX, XLSX, PPTX, or ODT | Editable in common tools | PDF, which is hard to edit |
| Analyse a dataset | CSV | Plain text that any spreadsheet or script can open | XLSX with merged cells or macros |
| Practise with code | Plain-text source files, bundled in a ZIP | Opens in any editor | Code pasted into a PDF, which breaks indentation |
| Listen away from a screen | MP3 or M4A | Plays on nearly every device | Uncompressed WAV, which is very large |
| Keep slides for reference | PDF export | Small, and no presentation software needed | The raw PPTX, unless learners must edit it |
| Use a diagram or screenshot | PNG, or SVG for line art | Sharp edges and no compression artefacts | JPEG, which blurs text |
Use JPEG only for photographs.
Prepare the file before you upload it
Keep size under control
Learners may download on a phone with a weak connection. A good target for a worksheet or checklist is under 5 MB.
- Export images at about 150 dpi for screen reading. Use 300 dpi only if the file is meant for printing.
- Resize photos to the size they will be shown. Do not shrink them in the page layout and leave the full-size image embedded.
- Host large media such as video or long audio on a media service, and link to it. Do not attach it as a download.
- Put the size in the link text, as in the example later in this chapter.
Name files predictably
Use lowercase letters, digits, and hyphens. Leave out spaces, accents, and punctuation. Spaces become %20 in links, and some systems mishandle non-ASCII characters.
- Good:
module-2-worksheet.pdf - Bad:
Module 2 – Worksheet (FINAL v3).pdf
Choose a name you can keep. If you replace a file later, reuse the same name so existing links and bookmarks keep working. Put the version number inside the document, for example in the footer, not in the file name.
Export from the source, do not scan
Export PDFs directly from the source document so the text stays selectable and searchable, and fonts are embedded. A photo or scan of a page produces a PDF with no real text. Learners cannot search it, copy from it, or use a screen reader on it. If you only have a scan, run text recognition (OCR) and proofread the result.
Remove what you did not mean to share
Check each file for leftovers before you upload it:
- Tracked changes, comments, and hidden text
- Hidden sheets or columns in spreadsheets
- Speaker notes in slides
- Author names and internal paths in the document properties
- Answer keys placed in the same file as the questions
Set a meaningful document title in the properties. Many PDF viewers show it in the browser tab.
Build templates so they are hard to break
For editable files, put the effort into the structure. Use real styles for headings, put placeholder text in the fields to fill in, and keep one task per sheet. For spreadsheets, avoid macros. Macro-enabled files (.xlsm) are often blocked by email filters and security settings, so a formula-based .xlsx is safer. Save CSV files as UTF-8 so names and symbols display correctly.
Link to the file clearly
A good link tells the learner what they get, in what format, and how large it is. The download attribute asks the browser to save the file instead of opening it. Browsers honour it only for same-origin links, so a file hosted on another domain may still open in the tab.
<a href="/downloads/module-2-worksheet.pdf" download="module-2-worksheet.pdf">
Download the Module 2 worksheet (PDF, 240 KB)
</a>Check files automatically
If you maintain many files, a short script catches naming and size problems before learners do. This Python script uses only the standard library. It lists every file in a folder that is too large, has an unexpected extension, or breaks the naming rule.
import re
import sys
from pathlib import Path
MAX_BYTES = 5 * 1024 * 1024
ALLOWED = {".pdf", ".docx", ".xlsx", ".pptx", ".csv", ".txt",
".zip", ".mp3", ".png", ".jpg", ".svg"}
NAME_RULE = re.compile(r"^[a-z0-9]+(-[a-z0-9]+)*\.[a-z0-9]+$")
def check_folder(folder):
problems = []
for path in sorted(Path(folder).iterdir()):
if not path.is_file():
continue
if path.suffix.lower() not in ALLOWED:
problems.append(f"{path.name}: unexpected file type")
if not NAME_RULE.match(path.name):
problems.append(f"{path.name}: use lowercase letters, digits, hyphens")
size = path.stat().st_size
if size > MAX_BYTES:
problems.append(f"{path.name}: {size / 1024 / 1024:.1f} MB is over the limit")
return problems
if __name__ == "__main__":
folder = sys.argv[1] if len(sys.argv) > 1 else "."
issues = check_folder(folder)
print("\n".join(issues) if issues else "No problems found.")
sys.exit(1 if issues else 0)Run it with python check_files.py downloads. A non-zero exit code makes it easy to add to a publishing checklist or an automated build.
Common errors
- Uploading an editable file when learners only need to read it. They then see layout shifts, and the file exposes your edits.
- Uploading a PDF when learners must type into the file, which forces them to print it first.
- Using a file name that contains spaces or
FINAL, then renaming it later and breaking links. - Leaving comments, hidden sheets, or answer keys in a file you meant to share clean.
- Testing only on your own computer. Open each file on a phone and in a second app or browser as well.
Exercise
You have a 12 MB PDF named "Budget Template (final).pdf" that learners must fill in as a spreadsheet and keep reusing. Name three changes you would make before uploading it.
Show answer
(1) Change the format. Learners must edit and reuse the budget, so provide an XLSX, with formulas but no macros, and not a PDF. Add a CSV only if they also need the raw data. (2) Rename the file with lowercase letters and hyphens, for example budget-template.xlsx, and put any version number inside the file. (3) Reduce the size by removing unused sheets, compressing embedded images, and checking for hidden content, comments, and author details. Then update the link text to say "XLSX" and the new size, and test the download on a second device.