Open bdheeman opened 6 years ago
Thanks for being interested in this repository. I create this repository initially for automicly creating bookmarks for pdf files of scanned books where there is little metadata I can use. For well documented pdf files, the bookmark information can be retrieved from the metadata. It is very appreciated if you can improve the code and pull requests. Thanks again.
You're welcome :-)
Good news is I'm working on it, though I'm not an expert or a seasoned python programmer, but the bad news is I'm too busy to find time. I, however, shall try best to devise a reasonable solution soon as I did for the RussellLuo/pdfbookmarker, a few days ago, since your coding/naming style is better and your version is already handling the Unicode or UTF-8 characters or languages ;-)
I have worked, but quite a lesser on your code, for which I can/shall create a pull request. But I think, it's better you review the fork a little before I do so and start working on it further and, or again.
See also: pdfbookmarks.py.txt
Good effort,
Although I have not tested your script, but looking at the code or your use of PdfFilereader and PdfFileWriter methods I'm sure it will create a new PDF ignoring all other existing and relevant metadata, which fail to read-in and merge metadata and other important information before writing into new target/output PDF :-(