{"id":20885941,"url":"https://github.com/zotero/cross-xpdf","last_synced_at":"2025-05-12T19:32:00.776Z","repository":{"id":42462536,"uuid":"120355603","full_name":"zotero/cross-xpdf","owner":"zotero","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-04T22:00:59.000Z","size":55,"stargazers_count":8,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-08T18:24:48.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/zotero.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}},"created_at":"2018-02-05T20:08:34.000Z","updated_at":"2024-03-24T02:09:02.000Z","dependencies_parsed_at":"2022-09-14T00:22:13.964Z","dependency_job_id":null,"html_url":"https://github.com/zotero/cross-xpdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotero%2Fcross-xpdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotero%2Fcross-xpdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotero%2Fcross-xpdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotero%2Fcross-xpdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zotero","download_url":"https://codeload.github.com/zotero/cross-xpdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225148799,"owners_count":17428430,"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-11-18T08:15:09.570Z","updated_at":"2024-11-18T08:15:10.220Z","avatar_url":"https://github.com/zotero.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"`cross-xpdf` compiles [xpdf PDF tools](https://www.xpdfreader.com/) for macOS (x64), Windows (x86, x64), Linux (x86, x64).\n\nThis is only intended to be used for `pdfinfo` and `pdftotext`.\n\n### pdfinfo\n`pdfinfo` is modified to output to a specified file.\n\n### pdftotext\n`pdftotext` is modified to output a preprocessed JSON that contains rich and structured information about the PDF and the text extracted from it:\n- PDF metadata\n- Page dimensions\n- Page count\n- Word position\n- Font size\n- Space after word\n- Baseline\n- Rotation\n- Bold\n- Italic\n- Color\n- Font\n\nAlso, a command line switch is added to customize the path to `poppler-data` directory. \n\n### Build\n\nPDF tools are build inside the Docker container.\n\nmacOS 10.11 SDK is needed. Place `MacOSX10.11.sdk.tar.xz` to the current directory. [Extract it from Xcode 7.3](https://github.com/tpoechtrager/osxcross#packaging-the-sdk).\n\n```\ngit clone https://github.com/zotero/cross-xpdf\ncd cross-xpdf\nmv path_to_sdk/MacOSX10.11.sdk.tar.xz ./\n./build.sh\n```\n\n`./build/pdftools.tar.gz` contains the built binaries and `poppler-data` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotero%2Fcross-xpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzotero%2Fcross-xpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotero%2Fcross-xpdf/lists"}