2021-06-07 19:23:47 +02:00
|
|
|
You can join multiple images to pdf using `convert`:
|
|
|
|
|
2021-12-08 14:31:46 +01:00
|
|
|
```bash
|
|
|
|
convert *.png out.pdf
|
|
|
|
```
|
2021-06-07 19:23:47 +02:00
|
|
|
|
|
|
|
If you get an error like
|
2021-12-08 14:31:46 +01:00
|
|
|
```
|
|
|
|
convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
|
|
|
|
```
|
2021-06-07 19:23:47 +02:00
|
|
|
|
|
|
|
follow the steps below:
|
2021-12-08 14:31:46 +01:00
|
|
|
```bash
|
|
|
|
sudo vim /etc/ImageMagick-6/policy.xml
|
|
|
|
```
|
2021-06-07 19:23:47 +02:00
|
|
|
|
|
|
|
and replace the line
|
2021-12-08 14:31:46 +01:00
|
|
|
```xml
|
|
|
|
<policy domain="coder" rights="none" pattern="PDF" />
|
|
|
|
```
|
2021-06-07 19:23:47 +02:00
|
|
|
with
|
2021-12-08 14:31:46 +01:00
|
|
|
```xml
|
|
|
|
<policy domain="coder" rights="read|write" pattern="PDF" />
|
|
|
|
```
|
2021-06-07 19:23:47 +02:00
|
|
|
|
|
|
|
[source](https://askubuntu.com/questions/1081895/trouble-with-batch-conversion-of-png-to-pdf-using-convert)
|