Menu

bug(cli): bookmarks doesn’t applied via CLI

Help
2021-06-29
2021-08-13
  • Саша_Черных

    1. Summary

    JPdfBookmarks CLI doesn’t work for me.

    2. Data

    1. The sample PDFKiraSamplePDF.pdf.
    2. The sample KiraBookmarks.txt file, saved in UTF-8 encoding:
    Kira/1
    Goddess/2
    

    3. Steps to reproduce

    I downloaded the latest JPdfBookmarks version from Sourceforge → I added path to JPdfBookmarks folder as value of PATH environment variable → I tried to insert bookmarks via CLI as described in documentation.

    4. Behavior

    4.1. Unwanted

    jpdfbookmarks_cli:

    jpdfbookmarks_cli --apply KiraSamplePDF.pdf KiraBookmarks.txt KiraPDFWithTOC.pdf
    Error: the program was unable to open the file KiraBookmarks.txt
    

    jpdfbookmarks.jar:

    java -jar jpdfbookmarks.jar --apply KiraSamplePDF.pdf KiraBookmarks.txt KiraPDFWithTOC.pdf
    Error: the program was unable to open the file KiraBookmarks.txt
    

    jpdfbookmarks:

    jpdfbookmarks --apply KiraSamplePDF.pdf KiraBookmarks.txt KiraPDFWithTOC.pdf
    

    JPdfBookmarks window appears for a short time and nothing else happens.

    4.2. Desired

    I successful added TOC via JPdfBookmarks GUI.

    JPdfBookmarks GUI

    5. Environment

    1. Windows 10.0.19041.508 Pro N for Workstations 64-bit EN
    2. JPdfBookmarks 2.5.2
    3. Java:

      1. openjdk version "1.8.0_292"
      2. OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
      3. OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)

    Thanks.

     
  • Flaviano Petrocchi

    Hello, it seems you are using the wrong syntax, try with:

    jpdfbookmarks_cli.exe KiraSamplePDF.pdf --apply KiraBookmarks.txt --out KiraPDFWithTOC.pdf
    

    You can print some help instructions with:

    jpdfbookmarks_cli.exe --help
    

    Let me know if it works.

     
  • Саша_Черных

    Status: CONFIRMED ✔️

    @Flaviano Petrocchi, thanks, it works for me!

    Question

    Where I can find actual JPdfBookmarks documentation? Before submitting my issue I read flavianopetrocchi.blogspot.com and jpdfbookmarks.altervista.org, and there I didn’t find the syntax as in the comment above.

    Thanks.

     

Log in to post a comment.

MongoDB Logo MongoDB