benwinding / pdfstamp

A cli tool to stamp PDF's, using (ImageMagick and pdftk)
24 stars 7 forks source link

There was a problem reading the input PDF #6

Open MartinKoeditz opened 5 months ago

MartinKoeditz commented 5 months ago

Running the command I get an error:

command: sudo pdfstamp stamp --input paper.pdf --signature signature.png --debug

result:

There was a problem reading the input PDF "paper.pdf"
running $ mv "/tmp/9re05ed9-signature.pdf" "/tmp/9re05ed9-page-pre-sign.pdf" "/tmp/9re05ed9-page-signed-single.pdf" "/tmp/9re05ed9-signature-normalised.png" ./_pdf-stamp-temp 
mv: Aufruf von stat für '/tmp/9re05ed9-signature.pdf' nicht möglich: Datei oder Verzeichnis nicht gefunden
mv: Aufruf von stat für '/tmp/9re05ed9-page-pre-sign.pdf' nicht möglich: Datei oder Verzeichnis nicht gefunden
mv: Aufruf von stat für '/tmp/9re05ed9-page-signed-single.pdf' nicht möglich: Datei oder Verzeichnis nicht gefunden
mv: Aufruf von stat für '/tmp/9re05ed9-signature-normalised.png' nicht möglich: Datei oder Verzeichnis nicht gefunden
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v18.17.1

The problem exists for different PDFs. Any hints?

bits0rcerer commented 2 months ago

got the same error. pdftk was not installed on my machine.

pdfstamp doctor might be broken