Hi Romano,

> In the case of the paper style templates, the direct editing of the XML
> is probably the easier way to go. Just one question though... the line
> looks like:
>
> <page width="792.00" height="612.00">
>          <background type="pdf" domain="absolute"
> filename="/home/romano/software/bugs/xournal/bg.pdf" pageno="1" />
>
> which I understand quite well. It is possible to change the file path to
> be relative (to the current location of the .xoj file)? Having for
> example a "./sheet.pdf" included will really simplify things... Just
> move the .xoj to the correct directory.

Unfortunately in my experience GTK doesn't do well with the concept of 
relative path (not clear if the working directory for the application is 
the same as the working directory for the file-open dialog box -- 
apparently they're not! and there's no easy way to define unique 
relative paths in the presence of hard links or even symlinks.

However: if the given absolute path in the xoj file doesn't exist, 
xournal will silently try to open the same pdf file in the directory of 
the xoj file, so in practice 
/anything/you/want/that/doesnt/exist/sheet.pdf  will also try to look in 
./sheet.pdf  (assuming that by "." you mean the directory of the xoj file).

Denis

-- 
Denis Auroux
UC Berkeley, Department of Mathematics
817 Evans Hall, Berkeley CA 94720-3840, USA
aur...@math.berkeley.edu

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Xournal-devel mailing list
Xournal-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xournal-devel

Reply via email to