|
1 | 1 | (DEFINE-FILE-INFO PACKAGE "INTERLISP" READTABLE "INTERLISP" BASE 10)
|
2 | 2 |
|
3 |
| -(FILECREATED "23-Feb-2025 12:18:57" {WMEDLEY}<library>PDFSTREAM.;62 14729 |
| 3 | +(FILECREATED " 5-Jun-2025 08:42:11" {WMEDLEY}<library>PDFSTREAM.;64 14885 |
4 | 4 |
|
5 | 5 | :EDIT-BY rmk
|
6 | 6 |
|
7 | 7 | :CHANGES-TO (FNS OPEN-PDF-STREAM)
|
8 | 8 |
|
9 |
| - :PREVIOUS-DATE "25-Dec-2024 14:26:23" {WMEDLEY}<library>PDFSTREAM.;60) |
| 9 | + :PREVIOUS-DATE "23-Feb-2025 12:18:57" {WMEDLEY}<library>PDFSTREAM.;62) |
10 | 10 |
|
11 | 11 |
|
12 | 12 | (PRETTYCOMPRINT PDFSTREAMCOMS)
|
|
153 | 153 | (DEFINEQ
|
154 | 154 |
|
155 | 155 | (OPEN-PDF-STREAM
|
156 |
| - [LAMBDA (FILE OPTIONS) (* ; "Edited 23-Feb-2025 12:18 by rmk") |
| 156 | + [LAMBDA (FILE OPTIONS) (* ; "Edited 5-Jun-2025 08:41 by rmk") |
| 157 | + (* ; "Edited 23-Feb-2025 12:18 by rmk") |
157 | 158 | (* ; "Edited 23-Sep-2023 15:38 by rmk")
|
158 | 159 | (* ; "Edited 22-Sep-2023 11:04 by rmk")
|
159 | 160 | (* ; "Edited 24-Jun-2023 14:49 by rmk")
|
|
165 | 166 | (* ;;
|
166 | 167 | "Simplest thing for now is to just add an extra field at the end of the \POSTSCRIPTDATA record.")
|
167 | 168 |
|
168 |
| - (* ;; "") |
169 |
| - |
170 | 169 | (if [AND NIL (EQ 'LPT (FILENAMEFIELD FILE 'HOST]
|
171 | 170 | then
|
172 | 171 | (* ;; "If FILE is on the LPT device, we could just ssume that it can be printed directly, no point in converting. But then we would alo have to lie and give it a PDF extension so it thinks that we are heading to a PDF printer.")
|
|
178 | 177 | (* ;; "Device NULL used by TMAX, maybe others, to get page number for table of contents, index. Nothing to convert")
|
179 | 178 |
|
180 | 179 | (OPENPOSTSCRIPTSTREAM FILE OPTIONS)
|
181 |
| - elseif (SETQ FILE (OR (AND (NEQ FILE T) |
182 |
| - (OUTFILEP FILE)) |
| 180 | + elseif (SETQ FILE (OR [AND (NEQ FILE T) |
| 181 | + (OR (OUTFILEP FILE) |
| 182 | + (OPENSTREAM FILE 'OUTPUT] |
183 | 183 | (ERROR "PDF target file not found" FILE)))
|
184 | 184 | then (CL:UNLESS (ASSOC (PDFCONVERTER)
|
185 | 185 | PDF-CONVERTER-TEMPLATES)
|
|
293 | 293 | )
|
294 | 294 | (DECLARE%: DONTCOPY
|
295 | 295 | (FILEMAP (NIL (3263 5877 (PDFFILEP 3273 . 4187) (PDF.HARDCOPYW 4189 . 4787) (PDF.TEXT 4789 . 5506) (
|
296 |
| -PDF.TEDIT 5508 . 5875)) (6317 13806 (OPEN-PDF-STREAM 6327 . 8892) (CLOSE-PDF-STREAM 8894 . 10181) ( |
297 |
| -PS-TO-PDF 10183 . 13804)) (13807 14371 (SEE-PDF 13817 . 14369)) (14422 14706 (PDFCONVERTER 14432 . |
298 |
| -14704))))) |
| 296 | +PDF.TEDIT 5508 . 5875)) (6317 13962 (OPEN-PDF-STREAM 6327 . 9048) (CLOSE-PDF-STREAM 9050 . 10337) ( |
| 297 | +PS-TO-PDF 10339 . 13960)) (13963 14527 (SEE-PDF 13973 . 14525)) (14578 14862 (PDFCONVERTER 14588 . |
| 298 | +14860))))) |
299 | 299 | STOP
|
0 commit comments