PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
In order to give myself something to do over the Christmas holiday I'm revisiting my attempt at encrypting a PDF document via my open-source (for Progress 4GL) project. Now, I've gotten to the point where I can correctly generate the User (/U) and Master (/M) entries correctly so I know that my md5 hashing is working. Now I just need to determine the next step ... encrypting the stream or string content. So for this I thought that I'd start simple. Try encrypting the Author ... I got this working ... I can see that it is correct via the Document Properties. With this my Obj ID = 1 and Gen ID = 0 (zero). So it was easy enough to determine how to append that value to my original string. Now my question .... if I had an Object ID of 20 (or say 30) how would I go about determining this 5 byte appendage? For Object ID = 1, the appendage (so to speak) was 0100000000 (in hex). What would the appendage look like for 20 or 30 and how did you do that conversion? Thanks and have a Merry Christmas, Gordon To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
