Как я могу превратить многостраничный файл .TIF в PDF?

19971
user170220

У меня есть гигантский файл .TIF.

Я отсканировал в книге несколько дней назад и случайно отсканировал ее как многостраничный .TIF. Я действительно хочу превратить его в более доступный файл .PDF.

Ты хоть представляешь, как это можно сделать?

6
«ГИГАНТИК» как-то субъективен. Вы можете улучшить свой вопрос, если вы дадите несколько цифр: Хорошей отправной точкой будет количество страниц и размер файла TIF (сжатый или нет). mpy 11 лет назад 0
Это не дубликат связанного вопроса, так как эти два вопроса различны. В этом случае человек желает преобразовать многостраничный файл TIFF в один PDF-файл. В другом человек хочет конвертировать и объединить несколько файлов TIFF в один PDF. Пока связанные вопросы различны! Есть ли способ отметить вопрос как «уникальный»? user2021355 5 лет назад 0
Сайты для конвертации TIFF в PDF существуют онлайн. Например, был запущен быстрый поиск: https://tiff2pdf.com/ Он успешно преобразовал мой многостраничный TIFF на 12 страниц в PDF. Извиняюсь за ответ в комментарии, но вопрос заблокирован для редактирования (пока ... Я пытаюсь воскресить его с разъяснением :). user2021355 5 лет назад 0

2 ответа на вопрос

16
mpy

If you are fine with just converting the file format (without making the text searchable (via OCR as pointed out by Jonathan Ben-Avraham), this will be a perfect task for convert from the ImageMagick package (available for various platforms: Win, Linux, Mac).

Simply use that command to convert your multi-page TIFF file

convert multi-page.tif book.pdf 

However, you should employ the -compress Parameter. If you have a 24bit colored TIF, you can use LZW (lossless) or JPEG (lossy), e.g.

convert -compress LZW multi-page.tif book.pdf 

If your TIFF is black and white (please make sure, it is really saved with only 1bit colordepth), I usually use -compress Fax.

Here is an example for a 5 page sample file, with some text in it -- the actual ratio between the compression algorithms depends of course on the content of your file:

24bit JPEG: 1294kB 24bit LZW: 1759kB 1bit Fax: 135kB 

After that conversion you still can run a OCR tool (like Adobe Acrobat Pro) to make the text search- and copyable.

Большое спасибо за флаг `-compress Fax`, который особенно полезен для сканирования книг. firegurafiku 8 лет назад 0
2
Jonathan Ben-Avraham

TIFF (Tagged Image File Format) is a pixel-oriented format that is intended for images. In order to get just the character data from a TIFF file you would have to use an OCR (Optical Chararacter Recognition) program. All OCR programs have some error rate. The format of the pages (header, footers, section headings, etc) also affect the ability of OCR to accurately guess the characters.

The language and particularly the writing system and font also affect OCR accuracy. If the book has an unusual non-western font with ligatures then the chance of getting goot OCR output are close to zero.

If the book is not primarily text, for example, a book with many screen shots or other images that are important, then OCR will not help you.

There are some Open Source OCR programs available, depending on the OS you are using. Google Drive has a free OCR service. WMMV.

Assuming that the original book you scanned is in paper format, then TIFF is about the best you can do in any event. You can make the document size more manageable by compressing the TIFF file. Try JPEG compression with various levels of compression to optimize document size against readability.

Похожие вопросы