CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Modifying ASCII PDF



Aug 21, 2000, 7:52 AM

Post #1 of 1 (346 views)
Modifying ASCII PDF Can't Post

I've got a bunch of faulty ASCII PDF files, a result of the grayscale image problem from a few years back. Anyway, they were fixed badly and the images won't show in Acrobat 4, so I've got to refix them.

Basically I've just got to replace occurrences of "/DeviceGray /Decode [ 1 ]" with "/DeviceGray /Decode [1 0]". Simple enough, except that it seems the PDFs aren't entirely legal ASCII files. I can open and fix the files succesfully in Windows' WordPad. However, TextPad complains about null characters and Perl won't find the above string at all, which I suspect are related problems.

Any help forthcoming? Thanks in advance!

(edit: fixed typos)

[This message has been edited by mrossi (edited 08-21-2000).]


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives