PDFエクスポートのパスワード設定

  • 作成者:ayuan0625
  • 編集回数:13次
  • 最終更新:FRInternational 于 2021-04-07
  • I. Description

    For template exported PDF files, it is hoped that when opening the exported PDF file, there will be a password input box, and only the person who correctly enters the password can view the content of the file. For this reason, FineReport provides PDF report export properties that require a password.

    II. PDF export attribute setting method

    Click the PDF template export attribute option in Template>Export  Attributes, which is not selected by default, as shown in the figure below:

    1. Password setting required

    Select the password required, a file password setting text box will appear in the back, enter the password you want to set in the file password text box.


    2. Effect

    If a password is set, when opening the exported PDF, the following dialog box will pop up, and only the person who correctly enters the password can view the PDF file:

    3.png

    III. PDF encrypted export server-side error

    When the PDF is encrypted and exported, it is normal locally, and the following error is reported on the server side:

    java.lang.SecurityException: class "org.bouncycastle.asn1.ASN1ObjectIdentifier"'s signer information does 
    not match signer information of other classes in the same package

    1. Solution

    This is when the project is integrated, the project itself refers to the PDF export encrypted JAR package, and the JAR package of FineReport also refers to the PD F export encrypted JAR package, resulting in the error report caused by the jar package conflict, directly Just delete the encrypted JAR package of PDF export in the project.


    Note: The name of the jar package exported by PDF encryption varies with the version of the JDK.

    Attachment List


    Theme: FineReport 帳票実例
    既に最初
    既に最後
    • Helpful
    • Not helpful
    • Only read