omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. phillipsmn

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    phillipsmn

    @phillipsmn

    0
    Reputation
    981
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    phillipsmn Unfollow Follow

    Latest posts made by phillipsmn

    • RE: [BUG] "Open Document" won't open document created with python

      Has this bug been fixed? I can't seem to enter a variable in the Open Document action and get it to execute.

      posted in Editorial
      phillipsmn
      phillipsmn
    • Requests Library import fail when in UI designer action workflow

      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.

      posted in Editorial
      phillipsmn
      phillipsmn
    • RE: Other ways to convert Markdown/HTML to PDF in iOS

      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.

      posted in Editorial
      phillipsmn
      phillipsmn
    • RE: Outline view

      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)
      
      
      posted in Editorial
      phillipsmn
      phillipsmn
    • RE: First Look at Editorial 1.1

      Can't wait!

      posted in Editorial
      phillipsmn
      phillipsmn
    • HTML to Image (or PDF) via Python

      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)?

      posted in Editorial
      phillipsmn
      phillipsmn