Closed mikegerber closed 4 years ago
Hi, the filename in the XML is intended for just the name (incl. file extension), not the full path. That's why it's not supported. I guess we could add a check for a full path anyway. But you do have the option to pass the image (or the folder to look in) as command line parameter.
I'm not sure why it's defined/supported as just the filename not the absolute/relative file path, but I can explain what my use case is:
For me, it's great if the PAGE file can just point to the correct image file so that the document opens right away in PAGE Viewer. I work with PAGE files and PAGE Viewer a lot, so this is a big time saver and greatly improves usability. In this case, the PAGE file points to one of the five million source images on our library's file system.
Relative paths work fine, e.g. "TEST/foo.tif"
.
(I know about --resolv-dir
, but that doesn't help in this case.)
I made a change. Have a look if it works (only tested on Windows)
Wonderful, version 1.4.04 works :) Thanks for the update!
I tested the Linux 64 bit version.
Given this PAGE-XML with an absolute image filename:
PAGE Viewer does not open the image given in
imageFilename
. I also tested prependingfile://
with the same result. It would be nice if absolute filenames were supported :)(I also copied the file to
foo.tif
and changed the PAGE XML toimageFilename="foo.tif"
– This worked.)