taviso / wpunix

WordPerfect for UNIX Character Terminals
647 stars 18 forks source link

A macro that creates a PDF from the current document #19

Open emendelson opened 2 years ago

emendelson commented 2 years ago

Here's another rough-and-ready macro. This one creates and optionally opens a PDF version of the current document, with the same path and filename as the current document, but with a .pdf extension.

https://www.dropbox.com/s/503todkmlad3s4d/unixpdf.wpm?dl=1

To open the PDF file in a WSL system, wslview (part of the wslu package) must be installed.

@taviso - This macro sometimes causes wp to crash without warning. I can't reproduce the problem, but it's happened more than once. I've now added some cleanup routines, but it will take more testing to see whether they work on not.

EDIT: Have fixed a few problems in the macro, and it now prompts before overwriting an existing PDF