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

Add a more helpfull error message for when the pdf save location is locked, e.g. by Acrobat Reader #51

Closed
phseiff opened this issue Jul 26, 2021 · 1 comment
Labels
enhancement New feature or request usability Something obfuscates usability, like an error in the help documentation

Comments

@phseiff
Copy link
Owner

phseiff commented Jul 26, 2021

See also #50 (comment).

@phseiff phseiff added enhancement New feature or request usability Something obfuscates usability, like an error in the help documentation labels Jul 29, 2021
@phseiff
Copy link
Owner Author

phseiff commented Aug 19, 2021

This is implemented in v1.18.0 now; you can get it e.g. via pip3 install --upgrade gh-md-to-html>=1.18.0.

The error text says:

Saving the pdf faile failed because the saving location was unwriteable.
This can be caused by a read-only file system or many other reasons, but the most probable reason is that you had an
older version of the pdf opened in a pdf viewer whilst gh-md-to-html was trying to write the new version to its
location, and that the pdf viewer you used locks pdf files whilst it has them opened. This is standard behavior with
Adobe Reader, for example.
For pdf viewers that can handle live-upading the pdf, see here, for example:
https://superuser.com/questions/599442/pdf-viewer-that-handles-live-updating-of-pdf-doesnt-lock-the-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request usability Something obfuscates usability, like an error in the help documentation
Projects
None yet
Development

No branches or pull requests

1 participant