Regarding the following, written by "Jeff" on 2022-04-12 at 09:42 Uhr +0000:
If you look at the post-processing tab of the scan window, you should be able to invoke any of the user-defined tools as part of your workflow.

I saw that, and then promptly forgot about it when I found out it actually doesn't post-process the PDF file, which was what I wanted at the time.

But yeah, using `mogrify -transparent white %i` as part of the post-processing pipeline works.

For completeness, here is how to chuck a watermark onto the PDF generated with transparent background:

```
convert -size 4330x -density 300x300 -background transparent -gravity center -fill grey 
label:"This is a long text" -trim -rotate -54 +repage -resize 
$((2480*.8))x$((3508*.8)) -extent 2480x3508 /tmp/watermark.png

convert /tmp/watermark.png /tmp/watermark.pdf

pdftk from-gscan2pdf.pdf background /tmp/watermark.pdf output /tmp/target.pdf
```

I am still trying to combine the first two commands into one, see [here](https://github.com/ImageMagick/ImageMagick/discussions/5039) for the discussion.

--
 .''`.   martin f. krafft <madduck@d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
"you know you're a hopeless geek when you misspell 'date' as 'data'"
                                                 -- branden robinson

Attachment: digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to