Nice work if you can get it

rafael on 2002-12-18T08:58:43

My company is (possibly) hiring (nothing official yet). Wanted knowledge : an arbitrary subset of Perl / mod_perl / C / Unix / D?HTML / JavaScript. That would be in Lyon, France.

Other news. I'm implementing a software that has to interoperate with some official network. I've got the official specs; those specs are only published in PDF format. They contain useful appendices, for example a list of gazillions of error codes, with the associated error messages, that are required to be displayed to the uncareful user by any software that implements those specs. So I want to cutnpaste those error message tables in some text document that I can process easily. Unfortunately the PDF document is encrypted with an owner-password. That means that Acrobat Reader, xpdf, an so on, won't let me cut and paste anything from it, or save it as a text or as a postscript file, or whatever. AAARGH. Unbelievable cluelessness from the guys who designed this brain-dead PDF "feature", and from the guys who USE IT.

Title of this journal entry by George & Ira Gershwin.


use the source, Luke

nicholas on 2002-12-19T10:34:58

That means that Acrobat Reader, xpdf, an so on, won't let me cut and paste anything from it, or save it as a text or as a postscript file, or whatever. AAARGH. Unbelievable cluelessness from the guys who designed this brain-dead PDF "feature", and from the guys who USE IT.

xpdf is GPL. You have the source available, and the ability to work round this. However, I should note that the author of xpdf prefers that you "write the author of the document" in preference to brute force cracking. What you describe for this document does sound like short-sighted stupidity on the part of the author.

Does the PDF "feature" let the author lock out printing independantly from save as postscript?

Re:use the source, Luke

rafael on 2002-12-19T10:50:30

The author of the document doesn't want to make the document available as an alternative format. (You know, that's an official document, officially registered, paperwork, stampage, etc.) I guess they've locked out (or think they've locked out) all means to produce or distribute a modified document. Which would have been better achieved by providing a checksum on a publicly available server, and a built-in way to check against it. Or something.

For the printing part : I'm not allowed to print it to a PS file, but replacing /bin/lpr by a script that does "cp $1 copyof$1" let me get a PS document. That PS file can't be opened in ghostview. But at the top of the document there's a comment "Removing the following eight lines is illegal", followed by eight lines of hexadecimal numbers...

Re:use the source, Luke

nicholas on 2002-12-20T11:07:18

Which would have been better achieved by providing a checksum on a publicly available server, and a built-in way to check against it. Or something.

Presumably they'd have incurred much less wrath if they'd made a second, cut&paste-able document with the tables, constants, etc that every programmer is going to need from it? (Although the paranoia that makes them worry about modified versions would then prevent this being released, given that they don't seem to be ready to checksum or sign things)

For the printing part

So the lock out is as daft as I thought it was - you are forbidden from creating a PostScript file directly, but if your "printer" prints to a disk drive rather than paper you can get one. And if you run it back through ps2pdf?