docs:pdf:tiff_workflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:pdf:tiff_workflow [2007/05/15 12:12] billhdocs: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/darken pages
 +  * erase borders, areas, or despeckle
  
 ===== convert pdf to tif ===== ===== convert pdf to tif =====
   * requires [[..:imagemagick:command_line_tools|imagemagick command line tools]]   * requires [[..:imagemagick:command_line_tools|imagemagick command line tools]]
   * density defines resolution of output image   * density defines resolution of output image
 +  * 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:<code> +  * examples:<code> 
-convert -density 150 -page letter SN-085.pdf SN-085.tif+# full color example 
 +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
 </code> </code>
  
Line 18: 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
 </code> </code>
- 
 ===== split multi-page tiff into individual files ===== ===== split multi-page tiff into individual files =====
   * requires libtiff   * requires libtiff
Line 30: 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 some tools do not work well with certain compression schemes   * since individual tiff files are not the final work product, it would be best to not use compression, since some tools do not work well with certain compression schemes
 +
 +
 +
 +
  
  
 ===== 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.  The best fix is to update or rebuild your libtiff tools/libraries.  Sometimes your only option may be to go to a prior version of libtiff, which may solve the problem as well.  3.7.2 is confirmed as working properly.**
 +    * You may end up with output of pink or green pages when using jpeg compression.  Again, the best way to fix this is to update libtiff, but the following works for existing files:<code>
 +(the r forces JPEG encoded RGB)
 +tiffcp -c jpeg:r:60 1.tif 1a.tif
 +tiff2pdf -j -q60 1a.tif > 1.pdf
 +</code>
 +    * see also: http://www.nabble.com/Pink-pages-with-tiff2pdf--j-td13046770.html <code>
 +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.  This change should be easy enough to
 +do with sed. 
 +</code>
   * requires libtiff   * requires libtiff
     * single file (no compression):<code>     * single file (no compression):<code>
  • docs/pdf/tiff_workflow.1179252742.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)