{"id":19504053,"url":"https://github.com/mysticatea/phantomjs-problem","last_synced_at":"2025-02-25T21:45:17.180Z","repository":{"id":65974405,"uuid":"59528543","full_name":"mysticatea/phantomjs-problem","owner":"mysticatea","description":"A repro-code for a problem of phantomjs' PDF generation.","archived":false,"fork":false,"pushed_at":"2016-05-24T02:47:20.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T10:40:41.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mysticatea.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":"2016-05-24T00:49:39.000Z","updated_at":"2016-05-24T02:13:53.000Z","dependencies_parsed_at":"2023-02-19T17:45:16.695Z","dependency_job_id":null,"html_url":"https://github.com/mysticatea/phantomjs-problem","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/mysticatea%2Fphantomjs-problem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysticatea%2Fphantomjs-problem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysticatea%2Fphantomjs-problem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysticatea%2Fphantomjs-problem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mysticatea","download_url":"https://codeload.github.com/mysticatea/phantomjs-problem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240754294,"owners_count":19852186,"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-10T22:24:07.255Z","updated_at":"2025-02-25T21:45:17.143Z","avatar_url":"https://github.com/mysticatea.png","language":"JavaScript","readme":"# Repro-code for a problem of phantomjs PDF generation\n\nOn Windows 7 pro, if I configured a custom font size, I have gotten a wrong result of phantomjs' PDF generation.\n\n![configuration window for custom font size](font-size-configure.png) (in Japanese)\n\nProbably [this](https://www.google.co.jp/search?q=windows7+custom+font+size\u0026tbm=isch#imgrc=trnD2vyE1U9dqM%3A) is the same window in English.\n\n## Repro Step\n\n1. `npm install`\n2. `npm test`\n3. Open `result.pdf`\n\nIt would print a bounding box of A4. The box size is specified in millimeters.\n\n```css\n.bounding-box-of-A4 {\n    display: block;\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: calc(210mm - 1px);\n    height: calc(297mm - 1px);\n    padding: 4px;\n    box-sizing: border-box;\n    border: 3px solid red;\n}\n```\n\nThen:\n\n- In the custom font size is 100% (default), it generated [expected.pdf](expected.pdf).\n- In the custom font size is 125%, it generated [wrong.pdf](wrong.pdf). This is too small.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysticatea%2Fphantomjs-problem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysticatea%2Fphantomjs-problem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysticatea%2Fphantomjs-problem/lists"}