Saturday, October 2, 2010

JPdfBookmarks-2.4.3

With this version I have added the possibility to select multiple bookmarks and drag them around using the mouse. It was more difficult than I thought to implement this feature and a lot of code has been modified and added, but I think the result is acceptable. 

I was tempted to increase the version number to 2.5.0 because I find this new capability very important, but dragging bookmarks one at a time was already present so I have considered this as an extension to that feature.

If the bookmarks you are dragging are not contiguous and siblings, when you will drop them they will become such. The bookmarks remain sorted from top to bottom independently from which of the bookmarks  you press on to start the dragging gesture. This is what I think is the most reasonable way to manage multiple dragging but any hint is appreciated as usual.

I have also changed the appearance of the last bookmark followed in the viewer to appear as grayed, I think it can be useful.

Let me know your opinion and report bugs, thank you.

18 comments:

Anonymous said...

all files in your tar.gz file have executable permissions (x), can you take care on this in next releases?

flavianopetrocchi said...

Thank you for reporting this problem, I will take care of this.

SP said...

Thanks so much for this excellent program! It's exactly what I was looking for. Overall it works nicely, but the main problem I am having is that it works well when opening the pdf in Adobe Reader, but when I open it in Foxit and click on a bookmark, it takes me to the page after it is supposed to (?!). I've checked that this doesn't happen with other pdfs with bookmarks.

I also have a question: is it possible to specify bold, open, etc, but not have it zoom to fit the width? (i.e. keep however the user has chosen to view it). I am using "FitWidth, -1", but some bookmarks (with custom colours) still zoom in (using Adobe Reader). For example, my code is:
Policy and program implications/71,#006666,bold,notItalic,open,FitWidth,-1

One other suggestion, when writing the text file for bookmarks, if we want to just specify "open" but not the other options, it would be good if it accepted a blank (i.e. ,,) to use default options, whereas now this gives a parse error.

These are just small issues though, and apart from the worrying Foxit page offset problem, I'm very happy - thanks again!

SP said...

Hello again. I've experimented a bit more, and it seems that the page offset problem with Foxit occurs only when I don't use "TopLeft,0,0". Then Foxit skips this page and goes to the next when I click a bookmark. However, if I do include "TopLeft,0,0", then both Foxit and Adobe Reader ignore bold, open and custom colour options. So for now, I am doing without bold, open and custom colour just to make sure the bookmarking goes to the right page, but if you could get to the bottom of that problem, it would be a great enhancement (the bookmark menu looked fantastic with the bold and colours!).

flavianopetrocchi said...

Hello SP, thank you for your comment. When you specify a FitWidth bookmark the parameter following it is not a zoom value, it is the top offset from the top of the page expressed in thousandths of the page height, so if you specify 500 you are pointing to half page, it is normal that the bookmark always zoom the page to fit the width of the viewer with a FitWidth bookmark. For the other problem It seems there is a bug in the short form TopLeft,[top value],[left value] try to use the longer one TopLeftZoom,[top value],[left value],[zoom value] if you don't want to specify a zoom value (means inherit zoom from previous view) use a zoom value of 0.0. I have successfully tested a line like:
Preface/14,#006666,bold,notItalic,open,TopLeftZoom,81,193,0.0
in foxit version 3.2 without issues.
If you need more help contact me using the forum of the program in sourceforge, thank you.

Paulie said...

This program is great! thank you very much for taking the time to code it!
I just wanted to make you aware of a little bug I found: I think the "PDF Producer" information is not being saved correctly as it shows a bunch of squares when inspecting the created PDF properties (tried Reader and SumatraPDF). Used an hex editor and found that the information is there "... ; modified using iText 2.1.7 by 1T3XT" but somehow it is not being rendered correctly.
Keep up the good work!

flavianopetrocchi said...

Hello Paulie, thank you for your report, I have not observed this bug on my system, Adobe reader and Foxit correctly show "modified using iText 2.1.7 by 1T3XT". Probably this bug shows itself only on certain circumstances, what kind of modifications did you make?

Paulie said...

Sorry I took so long to answer. I generated the pdfs with Abby FineReader 8 and just imported the bookmarks from a text file. Have also tried Acrobat Professional X and NitroPdf.
Thank you very much.

najmi said...

hey man,

i tried your program on ubuntu 10.10 and got problem to view the saved pdf using Evince and Okular (both crashed). Only XPDF able to load the pdf with assigned bookmarks.

flavianopetrocchi said...

Hello najmi, thank you for your report, I have succesfully opened pdf modified with jpdfbookmarks in ubuntu with the programs you mentioned, it would help to have the pdf files both the original and the modified ones to track the problem.

Anonymous said...

Do you have any plans to add functions for creating comments and highlight text in near future? this would be really great!

flavianopetrocchi said...

Sorry but do not expect these features in the near future, I am working on the possiblity to extract links present in a page and put them in the bookmarks, for example to extract a table of contents in a pdf page and export it to the bookmarks. I have no free time to work on other features presently.

Anonymous said...

Thank you for this application. It does exactly what I need simply and efficiently. Much appreciated.

flavianopetrocchi said...

Thank you for taking the time to thank, it is important to me.

wizkid said...

I've been searching a while now for a program with excatly this kind of functionality. I was so happy to find JPDFBookmarks and to see that it is a high quality application and very well maintained.
Many many thanks for your effort.
I will be doing some heavy use of the program in the next few weeks and will report any bugs that I find.
Kudos

flavianopetrocchi said...

Thank you for your message, bugs are surely present and I hope to have soon some time to spend on them.

User from Europe said...

Thank you for providing and sharing a non-commercial pdf bookmark editor.
The "set destination" option does not work on my system (kubuntu 9.10), irregardless of the following actions.
The editor's history does not work properly either.

flavianopetrocchi said...

Hello, I am aware of the bug in the "set destination" action thank you for reporting it, unfortunately I don't have time to work on this program in these days but will try to fix it as soon as possible. When you say the editor's history you mean the undo redo actions are not working properly? Please if you can detail this report using the program's forum on sourceforge. Thank you again, best regards.