-
phillipsmn
Has this bug been fixed? I can't seem to enter a variable in the Open Document action and get it to execute.
-
phillipsmn
I was wondering if anyone else has been experiencing issues with importing libraries in a python script that is assigned to a button action. I am trying to run a script that imports the requests library. In my workflows library, his script works every time. When I try to use that script as a part of an action assigned to a button in the UI designer, the message I get is "ImportError: cannot import name _htmlparser".
Any help would be appreciated.
-
phillipsmn
I made a workflow public that lets you convert your markdown document to pdf and saves it in your dropbox directory. You can download it from here in Editorial.
-
phillipsmn
Michael,
You can add a TOC to your document. You basically use the markdown library to render your document. A simple example is to pass your document text to this script and then show the result in an HTML panel. You will also need to add [TOC] in your document where you want your TOC to show.
import workflow import markdown action_in = workflow.get_input() md = markdown.Markdown(extensions=['toc','footnotes']) html = md.convert(action_in) action_out = html workflow.set_out(action_out)
-
-
phillipsmn
I have been looking for a way to export a rendered markdown document to PDF. Unfortunately I have not been able to find a reliable way to do this (there are a lot of dependencies for the libraries I saw and I couldn't find a way to import them successfully. The APIs for web services to convert could potentially solve the issue, but I would prefer to do the conversion on my device and handle the output there).
I decided to try to change my approach because PIL can export to pdf so I was wondering if anyone knew of a way to convert an HTML page to an image that could then be run through PIL to be formatted into a PDF.
Does anyone know how this could be done (or of a better way)?