Editorial Workflows

Convert to PDF

public workflow

Install Workflow

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Converts a Markdown or plain text document to PDF. The result is shown in a browser tab.

Shared by: Get your Cat or Cats with pussy 🌹 to Ambjörn Sköld - ༺࿇AMB🔥RI࿈ELོ࿇༻⚡️

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
If… ?
Run the block if
File Name
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
No Document Open
…End If
Set Variable ?
Variable Name
PDF Filename
Value
File Name.pdf
Document Text ?
Folded Text
  • Include
  • Replace with:
If… ?
Run the block if
%editor:syntax-mode
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
markdown
Convert Markdown ?
Markdown Extras: Footnotes
ON
…Auto-Links
ON
…Strikethrough (~~x~~)
ON
…Superscript (^x)
ON
…Tables
ON
…Smart Quotes etc.
ON
…Strip Metadata Headers
OFF
…End If
If… ?
Run the block if
%editor:syntax-mode
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
markdown
Generate Text ?
Text
<pre>Input</pre>
…End If
Generate PDF Document ?
Source
  • HTML Code
  • Web URL
HTML/URL
<!DOCTYPE html> <html> <head><meta charset="utf-8"/> <style> body { font-family: helvetica; font-size: 12pt; } h1 { font-size: 18pt; } h2 { font-size: 16pt; } h3 { font-size: 14pt; } h4, h5, h6 { font-size: 12pt; } a { color: black; } </style> </head> <body> Input </body> </html>
Paper Size
  • A4
  • Letter
Page Margins
2cm 2.5cm 2cm 2.5cm
Filename
%var:PDF Filename
in Dropbox
OFF
Overwrite
ON
Open URL ?
Open in
  • In-App Browser
  • Default App / Safari
URL
Input
Tab
  • Last-used Tab
  • New Tab
  • Tab with ID:
PDFOutput
Wait until Loaded
OFF
Reveal Browser Automatically
ON