List for cgit developers and users
 help / color / mirror / Atom feed
From: actionmystique at gmail.com (jean-christophe manciot)
Subject: Adding pdf2html
Date: Sun, 12 May 2019 10:20:21 +0200	[thread overview]
Message-ID: <CAKcFC3a=Cmw1jdku+mWzyS=BUFBn1zuUANS2pxZNZZ2gST6+5g@mail.gmail.com> (raw)

Hi there,

With *cgit 1.2.1-18-gbd0293f* patched with the about-link patches attached
below and *git 1:2.20.1-2* on Ubuntu Eoan (19.10), I am trying to allow pdf
files to be translated online using the about link.

The tool used to perform the translation is *pdf2htmlex* from Ubuntu artful
with all required libraries also from artful (pdf2htmlex also exists on
Debian stretch). It works fine on other distributions of the same family
(artful version on eoan or stretch version on buster for instance); an
example of such a translation from pdf into html format is attached below:

*$ pdf2htmlex "README.pdf"*

*Preprocessing: 3/3Working: 3/3*
Modifying *about-formatting.sh* with:

*sed -i '/exec \.\/txt2html;/i \*
* *.pdf) exec pdf2htmlEX; ;;' filters/about-formatting.sh*

However, using that tool with cgit seems trickier than expected: I get the
error "502 Bad Gateway" when clicking on the about link available here:
https://git.sdxlive.com/GNS3-Labs-Collection/tree/README.pdf

I also tried to replace "exec pdf2htmlEX" with "exec ./pdf2htmlEX" in
filters/about-formatting.sh and copy pdf2htmlEX in the
filters/html-converters folder leading to the same end result.

Any suggestion?

-- 
Jean-Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20190512/985c8970/attachment-0002.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20190512/985c8970/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: about-link-1.patch
Type: text/x-patch
Size: 1837 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20190512/985c8970/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: about-link-2.patch
Type: text/x-patch
Size: 647 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20190512/985c8970/attachment-0003.bin>


                 reply	other threads:[~2019-05-12  8:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAKcFC3a=Cmw1jdku+mWzyS=BUFBn1zuUANS2pxZNZZ2gST6+5g@mail.gmail.com' \
    --to=cgit@lists.zx2c4.com \
    /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).