{"id":16964029,"url":"https://github.com/sabarnett/printingapp","last_synced_at":"2026-04-20T05:03:56.229Z","repository":{"id":247950067,"uuid":"824312019","full_name":"sabarnett/printingApp","owner":"sabarnett","description":"Code to accompany the printing article","archived":false,"fork":false,"pushed_at":"2024-08-23T14:17:08.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T11:45:11.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sabarnett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-04T20:51:08.000Z","updated_at":"2024-08-23T14:17:11.000Z","dependencies_parsed_at":"2024-07-11T14:08:24.928Z","dependency_job_id":null,"html_url":"https://github.com/sabarnett/printingApp","commit_stats":null,"previous_names":["sabarnett/printingapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabarnett%2FprintingApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabarnett%2FprintingApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabarnett%2FprintingApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabarnett%2FprintingApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sabarnett","download_url":"https://codeload.github.com/sabarnett/printingApp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244828237,"owners_count":20517080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T23:26:57.990Z","updated_at":"2026-04-20T05:03:56.191Z","avatar_url":"https://github.com/sabarnett.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"When I started trying to write a Mac app for the first time, I started out knowing what I wanted to achieve but not knowing how to go about it. I spent a lot of time googling for Mac development help and found very little of it. What i did find was mostly related to Objective-C and not Swift/SwiftUI.\n\nSo, I spent a lot of time going round in circles, extracting the bits that I thought relevant and heading down a lot of blind alleys.\n\nThis project is part of a series of development notes I want to write to document some of the stuff I learnt along the way. The note that goes with it can be found on my web site.\n\n [Printing HTML and Markdown](http://www.sabarnett.co.uk/blogPage.php?id=printing)\n\nPrinting is a very complex issue to solve. There are lots of articles about printing none of which seem to be complete or to deal with printing in a MacOS app. My specific need was to be able to print a MarkDown document, which is not straight forward. My solution was to convert the MarkDown to HTML and use existing built-in mechanisms handle the printing, adding headers and footers.\n\n![Print Dialog](printDialog.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabarnett%2Fprintingapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsabarnett%2Fprintingapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabarnett%2Fprintingapp/lists"}