Encryption is broken?
Hi,
for me Encryption doesn't work! I`ve modified the VB Demo to add more Pages and Obj's to the encrypted PDF, but i always get random Fault's when viewing the generated PDF-File with AcrobatReader 7.0. somtimes ist only one faultmessage like this:
Ein nicht erkannter Token "¶nOIUmn" wurde gefunden
On some Pages Content is Missing. Somtimes a Message that there are more than on fault on the page.
The modified Part of the Command1_Click Method looks like:
...
Dim lngI As Long
For lngI = 1 To 100
Set docPage = New fly2pdf.clsPage
pID = doc.AddObject(docPage)
AddStatus vbCrLf & "Use encryption revision: " & _
doc.Encryption.Revision & " with keylength: " & doc.Encryption.KeyLength & vbCrLf
docFont.FontSubType = eFontSubType_Type1
docFont.Name = eFontType1_Helvetica
Dim lngJ As Long
For lngJ = 0 To 20
Set docContent = New fly2pdf.clsContent
docContent.Text "Hello world.", docFont, tFontSize, x, docPage.Layout.InnerHeight - PointsToMillimeters(tFontSize) * lngJ
contID = doc.AddObject(docContent)
doc.AddObjectToPage pID, contID
Debug.Print "lngI=" & lngI & "lngJ=" & lngJ & "doc.CountOfObjects=" & doc.CountOfObjects; ""
Next
Next
doc.CreateFile "Encryption.pdf"
...
all other Parts were not modified.
I've tested manny Settings for .Encryption.Revision=2
.Encryption.Revision=3 and diffrent Keylength and Passwords
but allways faulty PDF's.
Is it possible for the Developer test this, and confirm this behaviour(bug?) od fly2pdf
fly2pdf Version : 1.8.0.207
Thanks
Norbert
Hallo Norbert,
sobald ich ein bischen Zeit für fly2pdf habe, prüfe ich das.
Frank