Menu

#21 HO wrongly alters page references in .xml exported by STDU Viewer

v1.0_(example)
open
nobody
None
1
2018-10-26
2018-10-24
b0bcat
No

The project webapge says "Import bookmarks from STDU Viewer" so I did a trial creating a bookmarks set in an old djvu file by opening it in STDU Viewer, manually creating bookmarks therein and then (as STDU Viewer doesn't write an outline it seems(!?)) I exported the outline as .xml file. (I find this method easier to do as also it reflects the way at least older versions of Adobe Acrobat allowed the user to create bookmarks in a pdf file, where one can see exactly where and in which page the bookmark is placed).

I then opened the .xml file in HO but noticed it changes the page references in the outline .xml exported by STDU Viewer so they no longer point to the correct "physical" pages in the djvu file, instead (and typically) reducing each linked page number by two digits, though not uniformly so. Thus with a djvu file comprising scanned images with hidden text layer and containing a total of say 20 pages the outline link created in STDU Viewer which correctly pointed to "physical" page 18 (i.e. the 18th page in the djvu file irrespective of any page number shown in the page's text layer) is changed so in HO it now points to "physical" page 16 in the djvu file, and so on.

If one manually goes through the page references in HO and changes them to the correct pages in the djvu file (as recorded in STDU Viewer's originally exported .xml) and then writes the outline to the djvu file the outline/bookmarks pointers work correctly. But how can one eliminate this laborious (and hopefully avoidable) work?

I did check the application notes but can't find any option to disable that might cause this behaviour. Of course a cleaner solution (though I have no idea if easily implemented) would instead be for STDU Viewer also to write outlines (like in Adobe Acrobat for pdf bookmarks) as well as enable their creation for export as .xml. But that's STDU Viewer and not HO ;)

Thanks for the program btw.

Discussion

  • Anonymous

    Anonymous - 2018-10-25

    Further testing today re: my post above. I'm finding that during creation of the outline in STDU Viewer itself incorrect page references are visible after inputting later ones and going back to review earlier ones - no particular pattern of incremental increase or decrease. I may refer this to the STDU Viewer author if contactable.

     
    • vrdev

      vrdev - 2018-10-25

      Unfortunately, I now have no way to work on this project. Have you considered using Pdf & DjVu Bookmarker or DjVuOutline?

       
  • b0bcat

    b0bcat - 2018-10-26

    Thanks for prompt reply @vrdev. After a bit more testing I think this is an issue more likely generated by STDU Viewer. I tried finding a contact point on the webpage http://www.stdutility.com/ but there seems to be none, there is a twitter handle
    https://twitter.com/stdutility
    but it's been inactive for over 5 years and I don't have a twitter account so I guess this will just have to stay as-is.
    Thanks also for suggesting the alternative solution possibilities.

     

Anonymous
Anonymous

Add attachments
Cancel