{"id":16365399,"url":"https://github.com/ahnafnafee/postscript-preview","last_synced_at":"2025-10-15T03:51:34.455Z","repository":{"id":46128049,"uuid":"416007442","full_name":"ahnafnafee/PostScript-Preview","owner":"ahnafnafee","description":"💻 PostScript Preview is an extension that helps to preview EPS and PS files in Visual Studio Code.","archived":false,"fork":false,"pushed_at":"2024-09-24T22:23:09.000Z","size":3495,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T16:26:41.005Z","etag":null,"topics":["autorefresh","eps","postscript","previewer","ps","typescript","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ahnafnafee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"ahnafnafee"}},"created_at":"2021-10-11T16:35:19.000Z","updated_at":"2024-09-24T22:22:39.000Z","dependencies_parsed_at":"2023-01-28T17:01:04.936Z","dependency_job_id":null,"html_url":"https://github.com/ahnafnafee/PostScript-Preview","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahnafnafee%2FPostScript-Preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahnafnafee%2FPostScript-Preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahnafnafee%2FPostScript-Preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahnafnafee%2FPostScript-Preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahnafnafee","download_url":"https://codeload.github.com/ahnafnafee/PostScript-Preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238276172,"owners_count":19445370,"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":["autorefresh","eps","postscript","previewer","ps","typescript","vscode","vscode-extension"],"created_at":"2024-10-11T02:43:37.204Z","updated_at":"2025-10-15T03:51:34.375Z","avatar_url":"https://github.com/ahnafnafee.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=ahnafnafee.postscript-preview\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/v/ahnafnafee.postscript-preview?logo=visualstudiocode\u0026style=for-the-badge\" alt=\"Version\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=ahnafnafee.postscript-preview\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/r/ahnafnafee.postscript-preview?logo=visualstudiocode\u0026style=for-the-badge\" alt=\"Rating\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=ahnafnafee.postscript-preview\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/azure-devops/installs/total/ahnafnafee.postscript-preview?logo=visualstudiocode\u0026style=for-the-badge\" alt=\"Installs\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/ahnafnafee/PostScript-Preview/raw/master/images/logo.png\" alt=\"Logo\"  width=\"128px\" height=\"auto\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cbr/\u003e\n    \u003ca title=\"READ REQUIREMENTS AFTER INSTALL\" href=\"#requirements\"\u003e\u003cimg src=\"https://github.com/ahnafnafee/PostScript-Preview/raw/master/docs/images/req-btn.png\" alt=\"Read Requirements After Install\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ePostScript Preview\u003c/h1\u003e\n\n\u003e PostScript Preview is an extension that helps to **preview** EPS and PS files in [Visual Studio Code](https://code.visualstudio.com/). It supercharges how your view PostScript files by also allowing to **pan** and **zoom** the image. You can also change the preview background for extra **customizations**.\n\n## Features\n\nThis extension enables the in-VSCode preview of EPS image files.\nA new command `postscript-preview.sidePreview` is added as well as a preview icon in the menu bar when EPS or PS files are open in VSCode.\n\n\u003cimg src=\"https://github.com/ahnafnafee/PostScript-Preview/raw/master/demo/postscript-preview-demo.gif\" alt=\"demo\" style=\"zoom:50%;\" /\u003e\n\n## Requirements\n\nThis extension depends on the `PostScript Language` extension to recognize EPS/PS file.\nYou can install that [extension](https://marketplace.visualstudio.com/items?itemName=mxschmitt.postscript) from the VSCode extension store.\n\nThis extension also depends on two commands:\n\n-   `ps2pdf` - to first convert the EPS/PS file to PDF (the command is part of GhostScript)\n-   `pdftocairo` - to convert the generated pdf to svg which is shown in the preview\n\nThus you need to install these two commands first and ensure they are in the executable path.\n\n### **macOS**\n\nYou can install them via [homebrew](https://brew.sh/):\n\n```bash\nbrew install ghostscript\nbrew install poppler\n```\n\n### **Ubuntu**\n\nYou can install them using the following commands:\n\n```bash\nsudo apt-get install ghostscript -y\nsudo apt-get install poppler-utils -y\n```\n\n### **Windows**\n\nYou need to have GhostScript installed in your system. You can install them via [Chocolatey](https://chocolatey.org/install). Run the following commands using an **Administrative PowerShell**.\n\nInstalls GhostScript for _ps2pdf_\n\n```bash\nchoco install ghostscript --version 9.55.0 --force -y\n```\n\nInstalls _pdftocairo_\n\n```bash\nchoco install poppler --version 0.89.0 -y --force\n```\n\nAdds the executables to the environment path\n\n```bash\n[Environment]::SetEnvironmentVariable(\"Path\",[Environment]::GetEnvironmentVariable(\"Path\", [EnvironmentVariableTarget]::Machine) + \";C:\\Program Files\\gs\\gs9.55.0\\lib;C:\\Program Files\\gs\\gs9.55.0\\bin;C:\\ProgramData\\chocolatey\\lib\\poppler\\tools\",[EnvironmentVariableTarget]::Machine)\n```\n\n**Now restart VSCode**. You should now be able to view the EPS/PS files in the preview.\n\nIf you are having issues setting the PATH, you can set it using the GUI instead as described [here](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/). The paths that need to be added are:\n\n```bash\nC:\\Program Files\\gs\\gs9.55.0\\lib\nC:\\Program Files\\gs\\gs9.55.0\\bin\nC:\\ProgramData\\chocolatey\\lib\\poppler\\tools\n```\n\n_Please verify that you can view files in the above folders. If the folders do not exist, you might have run into issues with your installation. It's good to close Logitech GHUB and Logitech GHUB Updater when you install these as they might interfere with the process._\n\n## Known Issues\n\nNone yet. If you run into issues, please report them here: \u003chttps://github.com/ahnafnafee/PostScript-Preview/issues\u003e\n\nYou are also encouraged to open pull requests for additional features and fixes you want to add to this extension.\n\n## Credits\n\n-   [mkvoya/eps-preview](https://github.com/mkvoya/eps-preview) for the original base extension\n-   [bumbu/svg-pan-zoom](https://github.com/bumbu/svg-pan-zoom) for the SVG Pan Zoom library\n-   [Simonwep/pickr](https://github.com/Simonwep/pickr) for the color picker library\n\n## Installing Locally (for Development Purposes)\n\nInstall the VSCode Publishing Extension\n\n```bash\nnpm install -g @vscode/vsce\n```\n\nPackage the extension:\n\n```bash\nvsce package\n```\n\nPublish the extension:\n\n```bash\nvsce publish\n```\n\nSee published extensions here: \u003chttps://marketplace.visualstudio.com/manage\u003e\n","funding_links":["https://ko-fi.com/ahnafnafee"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahnafnafee%2Fpostscript-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahnafnafee%2Fpostscript-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahnafnafee%2Fpostscript-preview/lists"}