PdfEnableFileLinks / PdfFileNavigation
PdfEnableFileLinks / PdfFileNavigation
I am having trouble getting notifications (events) when users click a File link in a displayed PDF.
I have tried it with several different PDF files (some manually created, some created with Adobe Pro, some created by our users).
All of the documents I try work fine (links activate) in Adobe Reader and FoxIt.
I am using GdPicture.NET.11 in WPF (evaluation). I am on Windows 8, using Visual Studio 2013, .NET 4.5.
I am setting:
GdViewer1.PdfEnableLinks = true;
GdViewer1.PdfEnableFileLinks = true;
GdViewer1.PdfFileNavigation += OnFileNavigation;
GdViewer1.PdfUriNavigation += OnUriNavigation;
GdViewer1.AnnotationClicked += OnAnnoClicked;
(I've also set these values in the XAML itself... but no change.)
When the doucment is loaded, it displays fine, but clicking the link never calls OnFileNavigation.
If I include WEB links (URI) in the document, OnUriNavigation is called without issue.
I have also modified the included WPF Document Viewer sample to include the above settings... but it does not work either.
What am I missing? Any thoughts on what I can do to help debug this issue?
Thanks, in advance.
-John
I have tried it with several different PDF files (some manually created, some created with Adobe Pro, some created by our users).
All of the documents I try work fine (links activate) in Adobe Reader and FoxIt.
I am using GdPicture.NET.11 in WPF (evaluation). I am on Windows 8, using Visual Studio 2013, .NET 4.5.
I am setting:
GdViewer1.PdfEnableLinks = true;
GdViewer1.PdfEnableFileLinks = true;
GdViewer1.PdfFileNavigation += OnFileNavigation;
GdViewer1.PdfUriNavigation += OnUriNavigation;
GdViewer1.AnnotationClicked += OnAnnoClicked;
(I've also set these values in the XAML itself... but no change.)
When the doucment is loaded, it displays fine, but clicking the link never calls OnFileNavigation.
If I include WEB links (URI) in the document, OnUriNavigation is called without issue.
I have also modified the included WPF Document Viewer sample to include the above settings... but it does not work either.
What am I missing? Any thoughts on what I can do to help debug this issue?
Thanks, in advance.
-John
Re: PdfEnableFileLinks / PdfFileNavigation
Hello John,
Could you share the files you used?
If they contain confidential data just open a ticket here: https://www.gdpicture.com/support/getting-support-from-our-team
With best regards,
Could you share the files you used?
If they contain confidential data just open a ticket here: https://www.gdpicture.com/support/getting-support-from-our-team
With best regards,
Re: PdfEnableFileLinks / PdfFileNavigation
Hi Loic,
I have uploaded a test file here: https://dl.dropboxusercontent.com/u/893 ... 20File.zip
The PDF ("Manual Adobe Created.pdf") links to "C:\temp\Test File.txt".
It works fine in Adobe Reader.
I'm probably doing something very stupid (it's my hobby)... so again, thanks much for any help you can provide.
-John
I have uploaded a test file here: https://dl.dropboxusercontent.com/u/893 ... 20File.zip
The PDF ("Manual Adobe Created.pdf") links to "C:\temp\Test File.txt".
It works fine in Adobe Reader.
I'm probably doing something very stupid (it's my hobby)... so again, thanks much for any help you can provide.
-John
Re: PdfEnableFileLinks / PdfFileNavigation
It seems that GdViewer may just not support Launch actions.
Using Resharper and glancing at the decompiled GdViewer code, I can find an implementation for PdfActionType.ActionTypeGoTo/GoToR/URI... but no implementation for PdfActionType.ActionTypeLaunch (which is what is generated by Acrobat Pro for file links).
Using Resharper and glancing at the decompiled GdViewer code, I can find an implementation for PdfActionType.ActionTypeGoTo/GoToR/URI... but no implementation for PdfActionType.ActionTypeLaunch (which is what is generated by Acrobat Pro for file links).
Re: PdfEnableFileLinks / PdfFileNavigation
We've fixed that for the next minor!
Cheers,
Loïc
Cheers,
Loïc
Re: PdfEnableFileLinks / PdfFileNavigation
Thanks so much for all your help Loic.
And I just have to say, this is probably the best support I've received for a software product in a long time. Not to mention that the product is far superior to the other image/PDF options we've looked at.
And I just have to say, this is probably the best support I've received for a software product in a long time. Not to mention that the product is far superior to the other image/PDF options we've looked at.
Re: PdfEnableFileLinks / PdfFileNavigation
Thank you very much for the return John. Feel free to open any other request, we would love to make our WPF controls even better!
Cheers,
Loïc
Cheers,
Loïc
Re: PdfEnableFileLinks / PdfFileNavigation
Hi,
I updated to version 11.2.4 (June 15, 2015) from the website.
I still can't seem to get this to work.
I can see that handling of PdfActionType.ActionTypeLaunch was added, but I don't see where it is actually raising an event that I can get my hands on (so that I can process the file launch myself... for this application the file is actually stored on a server and needs to be retrieved before it can be opened, so I need an event if at all possible).
Also, it seems to fail silently if the target file can't be found, but I'm not entirely sure it's not finding the file or if something else is going on.
I may be misunderstanding how this is supposed to work.
-John
I updated to version 11.2.4 (June 15, 2015) from the website.
I still can't seem to get this to work.
I can see that handling of PdfActionType.ActionTypeLaunch was added, but I don't see where it is actually raising an event that I can get my hands on (so that I can process the file launch myself... for this application the file is actually stored on a server and needs to be retrieved before it can be opened, so I need an event if at all possible).
Also, it seems to fail silently if the target file can't be found, but I'm not entirely sure it's not finding the file or if something else is going on.
I may be misunderstanding how this is supposed to work.
-John
Re: PdfEnableFileLinks / PdfFileNavigation
Hello John,
I just replied through the help desk.
"There is no event for ActionTypeLaunch handling. Basically, if the target file is not found, nothing is done.
That said, we will add an event into the next release to inform the caller of what is happening. This should be done within a couple of weeks."
Cheers,
Loïc
I just replied through the help desk.
"There is no event for ActionTypeLaunch handling. Basically, if the target file is not found, nothing is done.
That said, we will add an event into the next release to inform the caller of what is happening. This should be done within a couple of weeks."
Cheers,
Loïc
Re: PdfEnableFileLinks / PdfFileNavigation
Thank you Loic. I look forward to it.
Who is online
Users browsing this forum: No registered users and 1 guest