Rank: Newbie
Groups: Registered
Joined: 11/22/2017(UTC) Posts: 4  Location: Newcastle Thanks: 2 times
|
I need links between PDF documents to work with the WPF PDFium control. I'm creating MS Word 2010 documents with hyperlinks to other PDF documents. I'm then saving the documents as PDFs and then testing the links using Adobe Reader which work fine.
However when I then test the PDF documents in the WPF PDFium control the two events are not firing and the link inside the document does not work.
Should the steps I've taken work? Any other assistance would be appreciated.
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Views messages in topic : 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Could you please provide the PDF document?
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/22/2017(UTC) Posts: 4  Location: Newcastle Thanks: 2 times
|
pdflink.zip (258kb) downloaded 41 time(s).Files attached, thanks
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Views messages in topic : 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
well... I have checked and everything works fine. could you please create a simple app where this issue is reproduced? I will check it on my side.
|
 1 user thanked Paul Rayman for this useful post.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/22/2017(UTC) Posts: 4  Location: Newcastle Thanks: 2 times
|
I've created in a stand alone application and able to replicate the issue. Then I was looking at the properties we set on the viewer and it is because we have this set:
pdfViewer.MouseMode = MouseModes.PanTool;
We set this because most of our users will be using it with a touch screen.
Is there anyway around this or do we need to provide tool buttons to switch between pan and normal behaviour?
|
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 11/3/2017(UTC) Posts: 7
Was thanked: 1 time(s) in 1 post(s)
|
Hi!
In this mode (PanTool), interactive things like clicking on links, highlighting text, etc. do not work.
|
 1 user thanked PataAndrey for this useful post.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/6/2018(UTC) Posts: 11  Location: Paris Thanks: 6 times
|
Hello, Could we have some clues or a bit of algorithm to illustrate how to use BeforeLinkClicked & AfterLinkClicked when a link has been clicked...? The goal here is to centered the clicked word on the other page. It goes on the selected page by itself but i'ven't got a clue on how to get the word coordinates... Some help would be appreciated ! Thnx ! Edited by user Wednesday, July 18, 2018 6:00:25 AM(UTC)
| Reason: Not specified
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Views messages in topic : 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Could you please provide PDF document with such links?
|
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/6/2018(UTC) Posts: 11  Location: Paris Thanks: 6 times
|
here is an example : TestHyperlinks.pdf (433kb) downloaded 24 time(s). There are severals hyperlinks in the PDF. they works perfectly with Acrobat Reader. I was able to develop a piece of code which should do that but it seems that the destination coordinates are missing in your methods. I’m actually looking for something like : e.Link.Destination.rect.top and e.Link.Destination.rect.left. But it doesn’t seems to exist. Is there an other way around to get the coordinates i need ? Edited by user Tuesday, July 24, 2018 12:04:55 AM(UTC)
| Reason: Not specified
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Views messages in topic : 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
|
 1 user thanked Paul Rayman for this useful post.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/6/2018(UTC) Posts: 11  Location: Paris Thanks: 6 times
|
Thank you so much, you are The Man :)
|
|
|
|
|
|
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close