PDF Catalog Editor Introduction

PDF Catalog editor uses Introduction

Wei Liu 2019.06.28

PDF  is a relatively good document format, to ensure the style to appear in any terminal is the same. But it also raises the question, is the editor inconvenient fact, this is the format of deliberately whom to blame. But one of them is not convenient - inconvenient to add the directory - it is somewhat distressing, especially at great length the foreign language PDF, no directory, manually rummaging not so clear. Currently on the market, we did not find a convenient, lightweight single-minded PDF Catalog Editor, so I plan to write a software, first of all for my own use, and thus can communicate with each other to learn with you.

The software named "PDF Catalog Editor" using the  WPF  development, call the third-party libraries Spire.PDF free version.

First, let's look at the software interface:

 

"Test area" is the reference to the online article ( " C # to add, modify, and delete PDF bookmarks ") to do an example, this software is also inspired by their birth. Interested friends can go to look at the article, not go into details.

 

Then take a look at my extended functionality, we can choose to look at a PDF:

 

This book is "C # Advanced Programming (10th edition)", there is 1480, so the directory is also a lot of load is relatively slow, but fortunately was able to load properly, ha ha.

After loading all levels of the directory tree to show it to the area on the left, and this time the middle area of ​​the "New" button becomes available, this is a new directory, the latter say.

 

We click on a directory, the middle area shows information about the directory, while under the "Edit" and "Delete" button also become available:

 

Directory information including the serial number, title, page number, serial number, where currently there is a Bug, is to click other items, and then point to come back to appear, temporarily did not find the cause, does not affect use.

Numbers start with 0, multi-level display, such as 2-1-1-level directory appears as 1-0-0:

 

The latter can be considered humane instead display (2-1-1). As the page is normal from the beginning, but note the page number of the PDF file, not a book page.

 

Here we change the simple file to demonstrate, to demonstrate the most simple delete:

 

Delete to delete mainly based on the serial number, so the format can also manually enter the serial number to delete. Click the "Delete", you will be prompted to change has not been saved to a file, follow Click "Write files" and "refresh" can, of course, you can also check the "Auto" mode, it will automatically perform write and refresh.

 

Since Bug previously mentioned, if only one directory number, enter it manually 0, and then edit the title page:

 

As for the new, it can be controlled by the serial number, the flexibility to add or insert sibling directories or subdirectories:

 

Basically unlimited added:

 

Finally, on page:

 

Open Source Address: https://gitee.com/dlgcy/SpirePdfTool

Download: https://download.csdn.net/download/w19921004/11262863

 

Starting simultaneously: http://dlgcy.com/spire-pdf-tool/

Guess you like

Origin www.cnblogs.com/weiliuhong/p/spire-pdf-tool.html