Library Winter Hours Notice
A large-print notice of a branch library's winter opening hours, given a document title and language by the accessibility checker's own fixes.
A one-page notice set in large, high-contrast type. The Accessibility Checker runs before and after: `accessibility_fix` gives the file a title (shown in the window title bar) and an English primary language, which turns two failed rules into passes. The checks record that the remaining failures are the tagging rules: content added with `page_add_text` is not tagged.
Steps
31 commandssteps:
- { command: doc_background, params: { color: "#fffdf7" } }
- { command: comment_add, params: { page: 1, type: rectangle, rect: [0, 0, 612, 230], color: "#123c69", fill: "#123c69", width: 0 } }
- { command: comment_add, params: { page: 1, type: rectangle, rect: [72, 300, 540, 342], color: "#e8eef5", fill: "#e8eef5", width: 0 } }
- { command: comment_add, params: { page: 1, type: rectangle, rect: [72, 384, 540, 426], color: "#e8eef5", fill: "#e8eef5", width: 0 } }
- { command: comment_add, params: { page: 1, type: rectangle, rect: [72, 468, 540, 510], color: "#e8eef5", fill: "#e8eef5", width: 0 } }
- { command: comment_add, params: { page: 1, type: rectangle, rect: [72, 590, 540, 662], color: "#f4b942", fill: "#fdf1d6", width: 2 } }
- { command: doc_flatten, params: { comments: true } }
- { command: page_add_text, params: { page: 1, at: [72, 60], width: 468, text: "SALTMARSH BRANCH LIBRARY", size: 14, bold: true, color: "#f4b942" } }
- { command: page_add_text, params: { page: 1, at: [72, 86], width: 468, text: "Winter opening hours", size: 40, bold: true, color: "#ffffff" } }
- { command: page_add_text, params: { page: 1, at: [72, 146], width: 468, text: "From Monday 30 November 2026 until Sunday 28 February 2027", size: 16, color: "#d6e2ee" } }
- { command: page_add_text, params: { page: 1, at: [72, 262], width: 468, text: "Day", size: 13, bold: true, color: "#5a6b7d" } }
- { command: page_add_text, params: { page: 1, at: [340, 262], width: 200, text: "Open", size: 13, bold: true, color: "#5a6b7d", align: right } }
- { command: page_add_text, params: { page: 1, at: [86, 311], width: 250, text: Monday and Tuesday, size: 18, color: "#1b2733" } }
- { command: page_add_text, params: { page: 1, at: [300, 311], width: 226, text: "10:00 to 18:00", size: 18, bold: true, color: "#1b2733", align: right } }
- { command: page_add_text, params: { page: 1, at: [86, 353], width: 250, text: Wednesday, size: 18, color: "#1b2733" } }
- { command: page_add_text, params: { page: 1, at: [300, 353], width: 226, text: "10:00 to 20:00", size: 18, bold: true, color: "#1b2733", align: right } }
- { command: page_add_text, params: { page: 1, at: [86, 395], width: 250, text: Thursday, size: 18, color: "#1b2733" } }
- { command: page_add_text, params: { page: 1, at: [300, 395], width: 226, text: "10:00 to 18:00", size: 18, bold: true, color: "#1b2733", align: right } }
- { command: page_add_text, params: { page: 1, at: [86, 437], width: 250, text: Friday, size: 18, color: "#1b2733" } }
- { command: page_add_text, params: { page: 1, at: [300, 437], width: 226, text: "10:00 to 17:00", size: 18, bold: true, color: "#1b2733", align: right } }
- { command: page_add_text, params: { page: 1, at: [86, 479], width: 250, text: Saturday, size: 18, color: "#1b2733" } }
- { command: page_add_text, params: { page: 1, at: [300, 479], width: 226, text: "9:30 to 16:00", size: 18, bold: true, color: "#1b2733", align: right } }
- { command: page_add_text, params: { page: 1, at: [86, 521], width: 250, text: Sunday, size: 18, color: "#1b2733" } }
- { command: page_add_text, params: { page: 1, at: [300, 521], width: 226, text: "Closed", size: 18, bold: true, color: "#1b2733", align: right } }
- { command: page_add_text, params: { page: 1, at: [92, 606], width: 420, text: "Closed on 25, 26 December and 1 January. Book returns stay open around the clock at the side door.", size: 15, color: "#1b2733" } }
- { command: page_add_text, params: { page: 1, at: [72, 700], width: 468, text: "Large print and audio copies of this notice are at the help desk.", size: 12, italic: true, color: "#5a6b7d", align: center } }
- { command: accessibility_check, params: { categories: [document] }, as: before }
- { command: accessibility_fix, params: { rule: title, value: "Saltmarsh Branch Library: winter opening hours" }, as: title }
- { command: accessibility_fix, params: { rule: primary-language, value: en-GB }, as: language }
- { command: accessibility_check, params: { categories: [document] }, as: after }
- { command: doc_info, as: info }Checks
10 checks on every buildinspect.pages= {"count":1}results.before.failed= 3results.before.results= {"any":{"rule":"title","status":"failed"}}results.title.status= "passed"results.language.status= "passed"results.after.failed= 1results.after.results= {"any":{"rule":"tagged-pdf","status":"failed"},"none":{"rule":"primary-language","status":"failed"}}results.info.title= "Saltmarsh Branch Library: winter opening hours"- Diagnostics: none, the kit's own check finds nothing wrong
- The saved document opens again, and its thumbnail matches
thumb.pngwithin the render tolerance
Related
More PDF samplesConfidential Exhibit Bates
A three-page tribunal exhibit stamped with a diagonal CONFIDENTIAL watermark, an exhibit header and Bates numbers that run from page to page.
Course Completion Certificate
A landscape certificate with a double border, a gold seal, the recipient's name in a large serif italic and a signed line for the course tutor.
Allotment Plot Measurements
A scaled plan of an allotment plot with a calibrated 1 pt = 5 cm viewport and measurement annotations for the frontage, the bed and pond areas and the fence line.
Catering Order Form
A bakery's catering order form whose line totals, subtotal, delivery and grand total are calculated fields that update as quantities are entered.