{"id":24084495,"url":"https://github.com/ilevd/pdf-binocular","last_synced_at":"2026-06-11T12:31:50.291Z","repository":{"id":271443499,"uuid":"913414753","full_name":"ilevd/pdf-binocular","owner":"ilevd","description":"Reading pdf as looking into the distance","archived":false,"fork":false,"pushed_at":"2025-01-08T05:46:50.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T02:19:05.407Z","etag":null,"topics":["myopia","pdf","pdf-generation","stereo-vision","vision"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ilevd.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":"2025-01-07T16:32:18.000Z","updated_at":"2025-01-13T17:29:55.000Z","dependencies_parsed_at":"2025-01-07T20:12:13.308Z","dependency_job_id":null,"html_url":"https://github.com/ilevd/pdf-binocular","commit_stats":null,"previous_names":["ilevd/pdf-binocular"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ilevd/pdf-binocular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilevd%2Fpdf-binocular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilevd%2Fpdf-binocular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilevd%2Fpdf-binocular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilevd%2Fpdf-binocular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilevd","download_url":"https://codeload.github.com/ilevd/pdf-binocular/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilevd%2Fpdf-binocular/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34199516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["myopia","pdf","pdf-generation","stereo-vision","vision"],"created_at":"2025-01-10T00:37:18.660Z","updated_at":"2026-06-11T12:31:50.274Z","avatar_url":"https://github.com/ilevd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdf-binocular\n\n\u003e [!WARNING]  \n\u003e Author is not responsible for consequences of your usage of this script for your eyes, \n\u003e vision and health. You can use it at your own risk or probably have a consultation with\n\u003e a doctor first.\n\n\n## Rationale\n\nWhen reading a book for some time eyes can become tired.\n\nThe one reason of that can be that eyes are looking inward, and the muscles are strained.\n\n\n![alt inward](imgs/img1.svg)\n\nThis script duplicates content of every PDF page making the page wider, \nso both eyes can look at theirs own content without muscles strain for looking inward -\neyes are in position like when they are looking at something at the distance.\n\n![alt straight](imgs/img2.svg)\n\nUsually the distance between the pupils is around 6-7 centimeters.\nThus make sure that the distance between left and right contents of the generated pages\nhas the same size on the gadget screen.\nUsually E-reader or smartphone in horizontal orientation can be adjusted to make this proportion.\nThere are also some parameters in the script that can help.\n\n## Parameters\n```\ngenerate_pdf(file_name, postfix=\"_binocular\", crop_v=0, crop_h=0, gap=0)\n```\n`file_name` - PDF file path\n\n`postfix` - string postfix that will be added to resulted PDF file name\n\n`crop_v` - crop page on top and bottom\n\n`crop_h` - crop page on left and right sides\n\n`gap` - crop interval between two initial pages on one PDF page\n\nSome PDF books can have wide paddings on left/right or top/bottom, to reduce them, \n`crop_v` and `crop_h` parameters can be used.\n\nAlso `gap` parameter can be used to reduce or increase gap between left/right contents on the page.\n\n## Usage \n\nInstall `pypdf`\n``` \npip install pypdf\n```\n\nUpdate PDF file name in the script and run it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filevd%2Fpdf-binocular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filevd%2Fpdf-binocular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filevd%2Fpdf-binocular/lists"}