-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Document the Python API. #10
Comments
+1 |
Until we write proper docs: The This is basically it for the public API. Everything else is implementation details and could change in future versions. |
Maybe I'm doing something wrong, but passing a filename to cairosvg.svg2ps(open("/path/to/input.svg", "rb").read(), write_to="/tmp/output.ps") If this is correct, I'd be happy to submit a PR fixing the documentation, so please confirm. Otherwise, let me know why cairosvg.svg2ps("/path/to/input.svg", write_to="/tmp/output.ps") didn't work -- I got the following error message:
At the very least, the error could be more informative -- again, happy to submit a PR if you let me know where / what to change. |
By the way, I also tried navigating to the folder where the input file is and running the script there passing only the filename, without the path, and also adding "file://" to the path (using both the full path and the filename only). None of this worked, so it seems to me a filename isn't actually accepted as input. |
As described in the documentation:
You can use:
|
|
Of course, I've changed the comment. |
That is all.
The text was updated successfully, but these errors were encountered: