You are not logged in.

#1 2023-09-15 13:22:16

faetzminator
Member
Registered: 2007-09-18
Posts: 7

tiff2pdf binary gone from extra-libtiff

Hi folks!

Not sure if I'm at the right place with you guys.

I've just noticed tiff2pdf binary is gone from PATH.
Same for your manpage: https://man.archlinux.org/man/tiff2pdf.1.en .
Other binaries still there from extra/libtiff: https://man.archlinux.org/search?q=tiff2pdf&go=Go .
I got the package libtiff-4.6.0-1 installed.

The man page at libtiff.org yet there: http://www.libtiff.org/man/tiff2pdf.1.html

Anyone got a clue who/why removed?
And maybe a hint for a similar binary, supporting some compression (using JPG compression now).

Thanks in advance
faetzminator

Offline

#2 2023-09-16 09:26:01

loqs
Member
Registered: 2014-03-06
Posts: 17,765

Offline

#3 2023-09-17 00:09:40

faetzminator
Member
Registered: 2007-09-18
Posts: 7

Re: tiff2pdf binary gone from extra-libtiff

Oh that's bad news!
loqs, thanks a lot for the details.
Will find some other way then.

Offline

#4 2023-09-17 18:33:09

faetzminator
Member
Registered: 2007-09-18
Posts: 7

Re: tiff2pdf binary gone from extra-libtiff

After quick test, seems the convert binary from ImageMagick does the trick.

tiff2pdf -j -o foo.pdf foo.tiff

to

convert -compress JPEG foo.tiff foo.pdf

May try lossless LZW compression in future :-) .

faetzminator

Offline

#5 2023-10-22 05:52:26

Malvineous
Member
From: Brisbane, Australia
Registered: 2011-02-03
Posts: 190
Website

Re: tiff2pdf binary gone from extra-libtiff

Just ran into this problem myself.  For the record, you need a couple of extra ImageMagick parameters to accurately reproduce what tiff2pdf did:

magick -compress jpeg -quality 75 -units PixelsPerInch -density 300x300 -define pdf:title= -define pdf:author=
  • -compress matches tiff2pdf's -j option, if you were using it

  • -quality matches tiff2pdf's -q option (to set JPEG quality as a percentage, lower values compress more, higher values look better)

  • -units PixelsPerInch and -density are required in order for the PDF page size to display properly.  300x300 should match your image density (e.g. if you scanned the image at 600 dpi then specify -density 600x600)

  • -define will remove some metadata that ImageMagick adds to the PDF.  You can specify values here if you still want the fields but want to set them to something else.  If you omit the -define that removes the document title, the PDF title will be set to the input filename, so you'll see the original filename even if later you rename the PDF file to something else.

You can confirm this is all correct by using the "pdfinfo" utility.  If you run "pdfinfo test.pdf" check the "Page size" value, it should be something like "842.04 x 595.32 pts (A4)" where the page size is shown in brackets (A4, Letter, etc.)  If you haven't set the -density value properly, the page size won't appear in brackets, and you'll likely have problems if anyone ever tries to print your PDF as it may come out on the wrong paper size (e.g. on A3 paper instead of A4 if the printer has trays for both) or complain that the document won't fit on any paper in any of the printer's trays.

Offline

Board footer

Powered by FluxBB