Skip to content

kpldvnpne/toc-editor-java

Repository files navigation

PDF's Table of Content editor

Do you have PDFs whose Table of Content (or Outlines) that you want to edit? If so, this is the right software for you.

Download

You have two options: jar file or installer.

JAR file

Click here to download the software. Then, once downloaded, run it by double clicking.

If you can't run the software, you probably don't have Java Runtime Environment. Click here to download one.

Installer

If you are on MacOS, you might prefer an installer (dmg). Click here to download one.

For others, I have yet to generate an installer.

Troubleshotting

If you are on MacOS, you might see something like this:

Can't open in MacOS

In order to fix this, open Terminal.

Terminal Icon

Go to the Downloads folder with the following command:

cd ~/Downloads

Then, run the following command:

xattr -c ./toc-editor.jar

Now, try to open toc-editor.jar again. It should succeed now.

How to use?

  1. When you first open the application, you will see this screen:

First Screen

  1. Click on Select input file to open the PDF of which you want to edit the table of contents.

Select Input File Button

  1. Once you have selected a PDF, you will be shown the current table of contents of the pdf.

Showing Table of Contents

  1. You have 4 ways of changing the table of contents:

    1. Add Child

      Just select the item to which you want to add an inner entry, and press Add Child at the top right.

      Add child being pressed

      Add child dialog

    2. Edit Just select the item you want to edit and press Edit button at the top right.

      Edit being pressed

      Edit dialog

    3. Remove

      Just select the item you want to remove and press Remove button at the top right.

      Remove being pressed

    4. Rearranging

      Just drag and drop the entry to your destination.

      alt text

  2. After you are done, don't forget to press Save As button. You will be asked to select the output folder and output file name.

TODO:

[ ] To make this app accept programs from right click, this is a good starting point: https://stackoverflow.com/questions/77646000/open-a-file-with-java-application-on-macos