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 [2008/01/14 15:23] – billh | docs:pdf:tiff_workflow [2014/03/03 11:29] (current) – [convert pdf to tif] billh | ||
---|---|---|---|
Line 11: | Line 11: | ||
* 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 | * 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 | * page defines the canvas size, and will crop the image as necessary | ||
- | * example:< | + | * examples:< |
+ | # full color example | ||
convert -density 150 -units PixelsPerInch -page letter SN-085.pdf SN-085.tif | convert -density 150 -units PixelsPerInch -page letter SN-085.pdf SN-085.tif | ||
+ | |||
+ | # 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 23: | 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 35: | Line 41: | ||
* 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) | * 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, | ||
+ | |||
Line 41: | Line 48: | ||
===== convert tif to pdf ===== | ===== convert tif to pdf ===== | ||
- | * **when things | + | * **when things |
* **There are versions of libtiff which improperly embed color lines in pdf files, causing pink and green pages. | * **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. | * You may end up with output of pink or green pages when using jpeg compression. |