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.
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.
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).
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.
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.
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."
Who is online
Users browsing this forum: No registered users and 4 guests