Menu

#20 Unable to convert .tif (multipages .tif file) to pdf using pdfsandwich on Ubuntu

v1.0 (example)
wont-fix
nobody
None
5
2018-08-10
2018-08-01
No

I have installed pdfsandwich on Ubuntu and I'm trying to execute below command for .tif (Multipages tif file) to .pdf file and it throws below error message.

Can you please help me on this?

$ /usr/bin/pdfsandwich -verbose -lang spa+eng+fra Sample_3_Multi_page.tif -o Sample_3_Multi_page.pdf
pdfsandwich version 0.1.4
Checking for convert:
convert -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-07-10 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib

Checking for unpaper:
unpaper -version
6.1
Checking for tesseract:
tesseract -v
tesseract 3.04.01
leptonica-1.73
libgif 5.1.2 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.4 : libopenjp2 2.1.0

Checking for gs:
gs -v
GPL Ghostscript 9.18 (2015-10-05)
Copyright (C) 2015 Artifex Software, Inc. All rights reserved.
Input file: "Sample_3_Multi_page.tif"
Output file: "Sample_3_Multi_page.pdf"
Fatal error: exception Failure("Error: Could not determine number of pages of file Sample_3_Multi_page.tif")

Thanks.

Discussion

  • Tobias Elze

    Tobias Elze - 2018-08-10

    Currently, pdfsandwich only accepts pdf files as input files. Could you convert your tiff to pdf (there should be command line utilities for this) and try it with the resulting pdf as input to pdfsandwich?

     
  • Tobias Elze

    Tobias Elze - 2018-08-10
    • status: open --> wont-fix
     

Log in to post a comment.

MongoDB Logo MongoDB