{"id":16829242,"url":"https://github.com/montanaflynn/gocr","last_synced_at":"2026-05-01T16:33:20.901Z","repository":{"id":57572083,"uuid":"348967338","full_name":"montanaflynn/gocr","owner":"montanaflynn","description":"CLI for PDF OCR API written in Go","archived":false,"fork":false,"pushed_at":"2021-03-19T01:46:15.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T07:43:42.939Z","etag":null,"topics":["cli","convert","docx","latex","markdown","mathpix","ocr","pdf"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/montanaflynn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-18T06:37:40.000Z","updated_at":"2023-04-20T11:23:22.000Z","dependencies_parsed_at":"2022-08-24T03:11:09.636Z","dependency_job_id":null,"html_url":"https://github.com/montanaflynn/gocr","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fgocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fgocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fgocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fgocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montanaflynn","download_url":"https://codeload.github.com/montanaflynn/gocr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244110086,"owners_count":20399561,"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":["cli","convert","docx","latex","markdown","mathpix","ocr","pdf"],"created_at":"2024-10-13T11:32:03.411Z","updated_at":"2026-05-01T16:33:20.823Z","avatar_url":"https://github.com/montanaflynn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF OCR\n\nConvert PDFs to Mathpix Markdown, Microsoft Word or LaTeX:\n\n## Install\n\n```\ncurl -sf https://gobinaries.com/montanaflynn/gocr/cmd/gocr | sh\n```\n\n## Usage\n\nSign up for an OCR API key at https://accounts.mathpix.com then run `gocr`:\n\n### Interactive\n\n```\ngocr\n? What is your mathpix api key? ********************\n? Which file should be used as an input? example.pdf\n? Where would you like to save it? example.mmd\n? Do you agree to the cost of $1.20 for 12 pages? Yes\n✓ Saved example.mmd\n```\n\n### Non-interactive\n\n```\nexport MATHPIX_OCR_API_KEY=...\ngocr --agree example.pdf example.docx\n✓ Saved example.docx\n```\n\n### CLI configuration, arguments and flags:\n\n- You can set input and output paths as arguments `gocr input.pdf output.docx`\n- You can set the API key with an environment variable `MATHPIX_OCR_API_KEY`\n- You can set the API key with the flag `gocr --api-key ...`\n- You can skip the cost agreement with the flag `gocr --agree`\n- You can view all flags and arguments with `gocr --help`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontanaflynn%2Fgocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontanaflynn%2Fgocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontanaflynn%2Fgocr/lists"}