• Hi

    I’m trying to use WpViewPDF in a Delphi 6 application to display a secure PDF file. I am getting the error “Cannot decrypt this file”.

    The file I am trying to view is available at:
    http://www.medsafe.govt.nz/Consumers/cmi/l/losec.pdf

    The file is a secure PDF but the restrictions on the file should allow it to be viewed and printed. I have no problem viewing the file with other PDF viewer applications and they do not prompt for a password. The OnNeedPassword event doesn’t seem to be called in WPViewPDF anyway.

    I have used a third-party tool to remove the restrictions from the PDF file and then it displays with WPViewPDF with no problems. This isn’t a solution to what I need to do though as I can’t use the tool to remove the restrictions as the files are downloaded directly to the application and displayed using WPViewPDF.

    Can you please provide support for this issue?

    Thank you.

    • Offizieller Beitrag

    Hi,

    the problem does not appear to be the encryption. It is using 128bit RC4 which is supported and the default password - it is that WPViewPDF has a problem with the compressed XREF structure.

    Due to the encryption I cannot check this PDF file more deeply to locate the problem.

    Julian