|
Posted by Jim Higson on 03/17/06 17:05
wes wrote:
> I want the text to be uneditable. In html format, a user could alter
> some details and print out a report with incorrect data
PDF isn't exactly uneditable, just more difficult to edit. There's an office
suite called KOffice that supports quite well the importing (and therefore
editing) of PDFs.
If you want to make sure a file doesn't change (any file, not just HTML),
you can do that by taking an MD5 hash of it, and then in future checking
the file still gives the same hash. This is how, for example, Bittorrent
knows the files it downloads haven't been altered by network corruption or
attack[1].
If you're interested, Google links to plenty of articles on how to do this.
[1] I'm not certain BT uses MD5, but the principle's the same.
--
Jim
Navigation:
[Reply to this message]
|