Menu

#54 Custom header/footer configuration for PDF output not saved completely

1.0
open
nobody
None
2018-06-30
2017-09-20
Pfiffikus
No

After setting %pagenumber as footer right for odd content pages e.g. and terminating configuration process next time I edit the output configuration the aforementioned setting is gone whereas some other setting are kept :[
Of course, the next output shows no pagenumber on odd pages as well ...

Discussion

  • Manfred P.

    Manfred P. - 2017-09-28

    Could you please check if problem also exists if the "Custom header/footer configuration" checkbox is checked. Normally, if this checkbox is unchecked, then input fields should be disabled. But due to a bug user can fill the input fields although the "Custom header/footer configuration" checkbox is unchecked. In that case the entered values may not be stored.

     
    • Pfiffikus

      Pfiffikus - 2017-10-05

      Do problem persists if the "Custom header/footer configuration" checkbox is checked?

      yes, because setting for even pages is kept and obeyed as wanted, but not for odd content pages :(

       
  • Manfred P.

    Manfred P. - 2017-10-06

    I cannot reproduce the issue. Maybe try if problem also exists with some other browser (which browser are you using?). Furthermore, for reproducing the issue it would be helpful if you could attach a screenshot of the configuration dialog (before saving the settings by clicking "Okay").

     
  • Pfiffikus

    Pfiffikus - 2017-10-09

    I cannot reproduce the issue ...

    what a pity :(

    try if problem also exists with some other browser

    yes, it persists for iron 61.0.3200.0 e.g.

    which browser are you using?

    Firefox 56.0

     
  • Manfred P.

    Manfred P. - 2018-06-30

    It seems this problem can appear after some network problems. As a result the saved output configuration is invalid and remains invalid.

    To fix a broken output configuration, please try one of the following two possibilities:

    1) Create a completely new output configuration
    Create a new output configuration with new identifier. Do not(!) use the "Copy" button because this will also copy the invalid setting. Configure the new output configuration with the required settings for odd pages. Optionally delete the invalid output configuration. After deleting the invalid output configuration you can rename the new configuration to use the same identifier as the deleted configuration.

    2) Fix the version.properties file
    If you do not want to create a new output configuration and the product uses storage type "filesystem", then you can manually fix the invalid output configuration. To do this,

    • Shutdown the web-server.
    • On server-side, go to the product directory (in the configured document-store directory). Search the file named "version.properties", which is located in the sub-folder with the name of the product's version-identifier.
    • Open the "version.properties" file in a text-editor. Please use a text-editor that doesn't change the encoding (for example, use Notepad++ instead of Microsoft Notepad).
    • Search the lines that start with "docversion.pdfconfig.custompagetypes." For each PDF output configuration there should be one such line. For example, if the output configuration has the name "my_pdf_config", then the line could look similar to
    docversion.pdfconfig.custompagetypes.my_pdf_config=body_even,body_first
    
    • After the = character, there should be the string "body_odd" included in the list. If the string "body_odd" is missing (as shown in the example above), then the configuration is broken and has to be fixed. You can easily fix the configuration by adding "body_odd" to the list (use comma as separator). Following the fixed line from the example above:
    docversion.pdfconfig.custompagetypes.my_pdf_config=body_even,body_first,body_odd
    
    • After all PDF configurations have been fixed, save the file and restart the web-server. Now, the settings for odd pages should no longer be lost.

    Upcoming versions of Docmenta (1.9.3 and higher) include a fix for this issue.

    Please note that the settings for even and blank pages are only taken into account for double-sided output (see setting for double-sided output on the PDF tab of the output configuration).

     

    Last edit: Manfred P. 2018-06-30

Log in to post a comment.

MongoDB Logo MongoDB