[gs-devel] Converting multi-page tiff document to multiple single-page tiff documents

Ray Johnston ray.johnston at artifex.com
Wed Nov 5 21:31:10 PST 2003


Jeremy,

No. Ghostscript only accepts PostScript or PDF input formats.

You may want to investigate "tiff2ps" that converts TIFF to PostSscript
which then can be used as input to Ghostscript.

In general, it is fairly easy to read enough of the TIFF format to
collect the data from individual IFD (Image Directories) and split
them into separate TIFF files. The only complicated part is adjusting
the offsets to indirect values in the individual files. There may
be some other packages that can do the splitting.

Regards,
Ray
____________________________________________________________________

Jeremy Nix wrote:

> Is this functionality supported?  I tried the following and was
> unsuccessful:
> 
> C:\Temp>gswin32c -dNOPAUSE -dBATCH -q -sOutputFile=c:\temp\test_%03d.tif
> 8335845.tif
> Error: /undefined in II*
> Operand stack:
> 
> Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval--
> --nostringval-
> -   2   %stopped_push   --nostringval--   --nostringval--
> --nostringval--   fa
> lse   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop
> 1   3
> %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--
> --nostringva
> l--   --nostringval--   2   %stopped_push   --nostringval--
> Dictionary stack:
>    --dict:1106/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
> Current allocation mode is local
> Current file position is 4
> AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
> 
> 
> _________________________________
> Jeremy Nix
> Southwest Financial Services, LTD.
> Jeremy.Nix at sfsltd.com
> (513) 621-6699 ext.1158
> 
> _______________________________________________
> gs-devel mailing list
> gs-devel at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/gs-devel
> 
> 




More information about the gs-devel mailing list