Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
emendelson opened this issue Aug 29, 2022 · 0 comments
Open

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

emendelson opened this issue Aug 29, 2022 · 0 comments

Comments

@emendelson
Copy link
Contributor

emendelson commented Aug 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant