Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:pdf:tiff_workflow [2007/05/15 11:21] – billh | docs:pdf:tiff_workflow [2014/03/03 11:29] (current) – [convert pdf to tif] billh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== tiff workflow ====== | ====== tiff workflow ====== | ||
+ | |||
+ | ===== Undocumented TIFF Common Workflow Issues ===== | ||
+ | * scan methods | ||
+ | * lighten/ | ||
+ | * erase borders, areas, or despeckle | ||
===== convert pdf to tif ===== | ===== convert pdf to tif ===== | ||
* requires [[..: | * requires [[..: | ||
- | * density defines resolution of output image:< | + | * density defines resolution of output image |
- | convert -density 150 SN-085.pdf SN-085.tif | + | * units should be given, or else the file units will be undefined, and programs such as GraphicConverter will make the file 72dpi, which will cause conversion problems |
+ | * page defines the canvas size, and will crop the image as necessary | ||
+ | * examples:< | ||
+ | # full color example | ||
+ | convert -density 150 -units PixelsPerInch -page letter | ||
+ | |||
+ | # monochrome, small size, similar to multi page tiff (fax) sheets | ||
+ | convert -density 300 -units PixelsPerInch -page letter -monochrome -compress Group4 SN-085.pdf SN-085.tif | ||
+ | |||
+ | # convert color pdf from Illustrator to small grayscale 8 bit tif w/small file size, adjusting contrast to make it darker | ||
+ | convert.exe -density 200 -units PixelsPerInch -page letter -colorspace gray -compress lzw -alpha off -depth 8 -contrast-stretch .15%x60% input.pdf output.tif | ||
</ | </ | ||
Line 15: | Line 30: | ||
gs -q -dNOPAUSE -sDEVICE=tiff24nc -r150 -sPAPERSIZE=letter -sOutputFile=a.tif a.pdf -c quit | gs -q -dNOPAUSE -sDEVICE=tiff24nc -r150 -sPAPERSIZE=letter -sOutputFile=a.tif a.pdf -c quit | ||
</ | </ | ||
- | |||
===== split multi-page tiff into individual files ===== | ===== split multi-page tiff into individual files ===== | ||
* requires libtiff | * requires libtiff | ||
Line 21: | Line 35: | ||
tiffsplit input.tif | tiffsplit input.tif | ||
</ | </ | ||
+ | |||
===== edit tiff pages ===== | ===== edit tiff pages ===== | ||
- | * edit individual files (each page should be a file) as necessary using any graphics program, such as photoshop | + | * edit individual files (each page should be a file) as necessary using any graphics program, such as Adobe Photoshop, GraphicConverter etc... (GraphicConverter can edit multi-page tiff files, and keep them intact, although it changes the resolution to 72dpi so you need to run the convert -density command again to fix the file) |
* since individual tiff files are not the final work product, it would be best to not use compression, | * since individual tiff files are not the final work product, it would be best to not use compression, | ||
+ | |||
+ | |||
+ | |||
+ | |||
===== convert tif to pdf ===== | ===== convert tif to pdf ===== | ||
+ | * **when things turn pink...** | ||
+ | * **There are versions of libtiff which improperly embed color lines in pdf files, causing pink and green pages. | ||
+ | * You may end up with output of pink or green pages when using jpeg compression. | ||
+ | (the r forces JPEG encoded RGB) | ||
+ | tiffcp -c jpeg:r:60 1.tif 1a.tif | ||
+ | tiff2pdf -j -q60 1a.tif > 1.pdf | ||
+ | </ | ||
+ | * see also: http:// | ||
+ | It looks like editing each PDF file in a text editor and changing | ||
+ | |||
+ | ColorTransform 0 | ||
+ | |||
+ | to | ||
+ | |||
+ | ColorTransform 1 | ||
+ | |||
+ | makes my PDF files display correctly, regardless of the viewing | ||
+ | application I use. So far I've tested this with acroread, kpdf and | ||
+ | ghostscript with good results. | ||
+ | do with sed. | ||
+ | </ | ||
* requires libtiff | * requires libtiff | ||
* single file (no compression):< | * single file (no compression):< |