PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
Hello, I've gotten to the point in my project where I can verify that I am creating correct User and Master passwords ... and these are accepted by Reader. But, I'm getting the error message 'unrecognized token' plus a bunch of binary data 'in document'. So I'm assuming that I'm not converting my text stream correctly. I'll outline what I'm doing and hopefully someone can point me in the right direction. Assume the following: Using Rev 2 of Standard Security Handler (40 Byte encryption) Object ID = 20 Generation Number = 0 Original Key = 8E 8F 68 E7 C7 My 10 digit encryption key would be: 8E 8F 68 E7 C7 00 00 14 00 00 My page stream is: "BT" + CHR(13) + "/F1 10 Tf" + CHR(13) + "1 0 0 1 10 742 Tm" + CHR(13) + "10 TL" + CHR(13) + "(Hello World!) Tj" + CHR(13) + "ET" + CHR(13) Questions: - Is my 10 digit key correct? - Should I be encrypted the entire string or each line individually? - Should I be encrypting CHR(13)? - other than Page Streams what other items would I need to encrypt? Assume no images or embedded fonts etc ... a very basic PDF document. If you need more info, please let me know. I'm really pulling my hair out here. Thanks, Gordon To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
