Hi Alain,
My first reaction is that we just implement the PDF specification, and
how PDF viewers behave is beyond our control. Have you tried this in
any other PDF viewers on other platforms? Also, what happens when
you make a tiny HTML page with these styles of links and click them?
Does file://filename.ext work without a full path?
- Andy
I tried various versions of the file: link with or without the // etc etc. All
were seen as links by Acrobat reader, but none resulted in it opening a file in
my browser. The only successes I had were absolute paths. On windows the
successful links always asked two permissions, one from acrobat reader and then
another from windows. The unsuccessful attempst always asked just one question
(from acrobat reader). I suspect it may be impossible to get the relative links
to work.
--
Robin Becker
I have tried another thing : open it with LibreOffice Draw, and I have
created a document link, it works, but the tooltip when opening show a
complete path. When I move the pdf and the attachment in another path,
it doesn't work anymore an I have the error.
So, I think it's not possible to just indicate the filename.
Thanks
A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-10-21 05:54) |
Hw.Gui 2.19-6 (2625)
------------------------------------------------------------------------
Creating the pdf doesn't change, imbedding the complete path, but adding
a symbolic link to the user folder does the trick.
My user folder is alain
My tool allows to create file links having another user name in the
path, I tested it
alain@Gramps-JujuLand:/home$ sudo ln -s -T alain gadel
Opening the attachment works like a charm :)
In fact, in real use where I want to deploy it, I have 2 computers, with
one user for the first, and two users for the second computer.
SyncThing syncs the same folder for each user : Documents, so, on the
first computer, I must create two symbolic links : gadel and
anne-sophie, and on the second computer a link named jacques.
So each pdf attachment linked in each pdf created by one user will be
openable by each other user.
If I use my feature to replace the user folder name in the inifile of
the two users of the second computer, replacing their user names by
jacques, I only need to create a link named jacques on the second computer.
Obviously, it only works if pathes (except user name) are identical.
A+