From: Saivan Hamama <dragons6666x-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Run Pandoc on a web server
Date: Tue, 10 Oct 2017 03:49:39 -0700 (PDT) [thread overview]
Message-ID: <b63c9188-1b4f-478d-9454-f2c3d10ccff0@googlegroups.com> (raw)
In-Reply-To: <262da48a-6c39-4ee7-9d96-668f7445ad2b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1174 bytes --]
I'm currently able to run pandoc on a web server myself.
I just made a Dockerfile that derives from the offical python dockerfile,
After that you can just run:
RUN pip install pypandoc
RUN python -c "import pypandoc; pypandoc.download_pandoc()"
At this point, you'd have a working "web server" with pandoc,
you'd just have to write some code to actually make calls to pandoc in any
way you see fit.
You could use a web framework like flask and just wrap an api around it.
You can do a similar thing in almost any language of your choice by making
system calls with the text you'd like to convert.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b63c9188-1b4f-478d-9454-f2c3d10ccff0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2228 bytes --]
prev parent reply other threads:[~2017-10-10 10:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-05 16:34 paulo7ca-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <c2625c79-7f4f-446f-a900-11ede02dd9f6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-05 19:36 ` Agustín Martín
[not found] ` <262da48a-6c39-4ee7-9d96-668f7445ad2b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-10 10:49 ` Saivan Hamama [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b63c9188-1b4f-478d-9454-f2c3d10ccff0@googlegroups.com \
--to=dragons6666x-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).