|
7 | 7 | <p align="center"> |
8 | 8 | <img src="https://github.com/ahnafnafee/PostScript-Preview/raw/master/images/logo.png" alt="PostScript Preview Logo" width="128px" height="auto" /> |
9 | 9 | </p> |
10 | | -<p align="center"> |
11 | | - <br/> |
12 | | - <a title="READ REQUIREMENTS AFTER INSTALL" href="#-requirements"><img src="https://github.com/ahnafnafee/PostScript-Preview/raw/master/docs/images/req-btn.png" alt="Read Requirements After Install"></a> |
13 | | -</p> |
14 | 10 |
|
15 | 11 | <h1 align="center">PostScript Preview for VS Code</h1> |
16 | 12 |
|
|
41 | 37 | This extension requires: |
42 | 38 |
|
43 | 39 | - **[PostScript Language](https://marketplace.visualstudio.com/items?itemName=mxschmitt.postscript)** extension for syntax highlighting |
44 | | -- **GhostScript** (provides `ps2pdf`) |
45 | | -- **Poppler** (provides `pdftocairo` and `pdfinfo`) |
46 | | - |
47 | | -### macOS |
48 | | - |
49 | | -```bash |
50 | | -brew install ghostscript poppler |
51 | | -``` |
52 | | - |
53 | | -### Ubuntu / Debian |
54 | | - |
55 | | -```bash |
56 | | -sudo apt-get install ghostscript poppler-utils -y |
57 | | -``` |
58 | | - |
59 | | -### Windows |
60 | | - |
61 | | -Install via [Chocolatey](https://chocolatey.org/install) (run as Administrator): |
62 | | - |
63 | | -```powershell |
64 | | -choco install ghostscript --version 9.55.0 --force -y |
65 | | -choco install poppler --version 0.89.0 -y --force |
66 | | -``` |
67 | | - |
68 | | -Add to PATH: |
69 | | - |
70 | | -```powershell |
71 | | -[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) |
72 | | -``` |
73 | 40 |
|
74 | | -**Restart VS Code** after installation. |
75 | | - |
76 | | -<details> |
77 | | -<summary>Manual PATH setup</summary> |
78 | | - |
79 | | -If you have issues setting PATH, add these manually via System Properties → Environment Variables: |
80 | | - |
81 | | -``` |
82 | | -C:\Program Files\gs\gs9.55.0\lib |
83 | | -C:\Program Files\gs\gs9.55.0\bin |
84 | | -C:\ProgramData\chocolatey\lib\poppler\tools |
85 | | -``` |
86 | | - |
87 | | -</details> |
| 41 | +**Note:** Pre-0.6.0 versions required external installations of Ghostscript and Poppler. As of v0.6.0, these are **no longer required**! The extension now handles rendering internally using WebAssembly. |
88 | 42 |
|
89 | 43 | ## Configuration |
90 | 44 |
|
91 | | -Configure custom executable paths in VS Code settings (useful for conda environments or non-standard installations): |
| 45 | +The extension is zero-config! |
92 | 46 |
|
93 | | -| Setting | Description | Default | |
94 | | -| ------------------------------------ | ----------------------------- | ------------ | |
95 | | -| `postscript-preview.path.ps2pdf` | Path to ps2pdf executable | `ps2pdf` | |
96 | | -| `postscript-preview.path.pdftocairo` | Path to pdftocairo executable | `pdftocairo` | |
97 | | -| `postscript-preview.path.pdfinfo` | Path to pdfinfo executable | `pdfinfo` | |
98 | | - |
99 | | -Example `settings.json`: |
100 | | - |
101 | | -```json |
102 | | -{ |
103 | | - "postscript-preview.path.ps2pdf": "/opt/ghostscript/bin/ps2pdf", |
104 | | - "postscript-preview.path.pdftocairo": "/opt/poppler/bin/pdftocairo" |
105 | | -} |
106 | | -``` |
| 47 | +Previous configuration settings (`postscript-preview.path.*`) have been deprecated and removed as they are no longer needed. |
107 | 48 |
|
108 | 49 | ## Multi-Page Documents |
109 | 50 |
|
|
0 commit comments