Adobe Reader doesn't show content if PDF file was generated with a password.

KB-20211203-01

Version

XFRX 21.1

Symptoms

  • Adobe Reader don't show  content
  • Alternative PDF readers can show content
  • XpdfReader detect error "Syntax Error (749): Unexpected end of file in flate stream"

Cause

Bug at encrypt pdf content within AERSV2 crypt method.

Wokraround

Turn off compress stream:

loSession.SetOtherParams("DONOTZIPTEXTSTREAM", .T.)

Use old crypt method:

loSession.SetOtherParams("CRYPTMETHOD", "V2")