in reply to how to read big postscript files

I don't think I've worked with a postscript file - apologies if the below doesn't make sense.

Is there some marker that indicates the beginning and/or end of the tiff image? If so, then perhaps you can use a test for the marker(s) and skip the record containing the tiff image. It sounds to me like you need to either strip out the tiff images prior to entering your read loop (using a regex) or account for the binary data within your read loop. You might even be able to respond to the binary data itself - I did something similar a year or two ago with hex data on *nix* system.

Replies are listed 'Best First'.
Re^2: how to read big postscript files
by srikrishnan (Beadle) on May 25, 2010 at 10:06 UTC

    Hi Corion/Dineed,

    Thanks for your immediate responses. Actually our requirement is we need to change the uri links to Annotations throughout the postscript file. Because the original software which uses for creating the postscript not supports Annotated Postscript files natively. So we try to achieve that by writing a perl script for read and modify the original Postscript file

    Thanks

    Srikrishnan R.