| <<<Back 1 day (to 2022/02/09) | Fwd 1 day (to 2022/02/11) >>> | 20220210 |
artifexirc-bot | <twb> I noticed "docxwrite" and I'm trying to use it, just to see what happens. | 01:30.33 |
| <twb> ps2pdf -sDEVICE=docxwrite top25-2019.pdf ==> Unknown device: docxwrite | 01:31.07 |
| <twb> gs --version ==> 9.53.3 | 01:31.16 |
| <twb> Am I doing it wrong? | 01:31.19 |
| <twb> I'm using Debian's gs, and I don't see them compiling with e.g. ./configure --without-docx https://sources.debian.org/src/ghostscript/9.55.0~dfsg-3/debian/rules/ | 01:31.56 |
| <RayJohnston> twb: docxwrite was added last Nov 23 2020, and improved on later. It was in the 9.54.0 release, so you would need to upgrade. | 06:36.32 |
| <twb> Ah, thanks | 06:37.12 |
| <twb> I was (wrongly) guessing Debian had removed it for legal reasons | 06:37.25 |
| <RayJohnston> You probably need to download the source from Artifex -- Debian is behind the latest releases from the developers | 06:37.33 |
| <twb> 9.55.0~dfsg-3 is latest Debian has | 06:37.53 |
| <twb> But I was actually testing on 9.53 | 06:38.15 |
| <RayJohnston> go to https://ghostscript.com/releases/index.html | 06:38.17 |
| <RayJohnston> I don't know if you have to do something special to get it in the build | 06:39.06 |
| <twb> no worries | 06:40.36 |
| <twb> now I know it's just version, I can take it from here | 06:40.45 |
| <RayJohnston> nope, it's not. You have to have something called the "extract library" | 06:43.19 |
| <RayJohnston> it's not just version. I recommend contacting @cgdae -- I've never played with the docxwrite | 06:44.26 |
| <twb> OK, this is too hard. I was just curious | 06:46.50 |
| <twb> Thanks for helping though :-) | 06:46.57 |
| <twb> I did confirm that debian gs 9.55.0 doesn't Just Work for "ps2pdfwr -sDEVICE=docxwrite /usr/share/doc/fonts-texgyre/qag-info.pdf" | 06:48.09 |
| <twb> Which matches what you said | 06:48.13 |
| <RayJohnston> twb: looks like you need to get the "extract" helper files using: | 06:52.04 |
| <RayJohnston> git clone git.ghostscript.com:/home/git/extract.git | 06:52.04 |
| <twb> I wonder if Debian has that already, under a non-obvious name... | 06:56.23 |
| <RayJohnston> then you can ./autogen.sh and you should see 'docxwrite' if you: grep docxwrite Makefile | 06:56.38 |
| <twb> $ git clone --depth=1 https://git.ghostscript.com/extract.git ==> fatal: dumb http transport does not support shallow capabilities | 06:56.54 |
| <twb> So might take a while to download the whole history :-) | 06:57.08 |
| <RayJohnston> there is a configure --with-extract-dir=EXTRACT_DIR (in case Debian has it, but in someplace else) | 06:57.55 |
| <RayJohnston> good luck. I'm heading to bed. | 06:58.37 |
| <cgdae> twb: regarding extract, `./configure --help` says: | 10:07.58 |
| <cgdae> ``` | 10:07.59 |
| <cgdae> --with-extract-dir=EXTRACT_DIR | 10:08.00 |
| <cgdae> Build with the specified Extract library. By default | 10:08.01 |
| <cgdae> we build with Extract automatically if | 10:08.03 |
| <cgdae> <ghostpdl-directory>/extract exists. | 10:08.04 |
| <cgdae> ``` | 10:08.05 |
| <cgdae> The complete extract `.git` directory is about 24MB. It's a relatively new repository so `--depth 1` probably won't reduce the download size very much. | 10:08.06 |
| <<<Back 1 day (to 2022/02/09) | Forward 1 day (to 2022/02/11)>>> | |