logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
fmotsch Posted: Wednesday, July 25, 2018 5:06:42 AM(UTC)
 
Thank you so much, you are The Man :)
Paul Rayman Posted: Wednesday, July 25, 2018 2:13:25 AM(UTC)
 
Hi,

Did you saw these topics?
https://forum.patagames....rk-and-Named-Destination
https://forum.patagames....he-Destination-of-a-Link

in your case you may get additional info about destination like shown below
Code:
        private void PdfViewer1_BeforeLinkClicked(object sender, Patagames.Pdf.Net.EventArguments.PdfBeforeLinkClickedEventArgs e)
        {
            var array = Patagames.Pdf.Net.BasicTypes.PdfTypeArray.Create(e.Link.Destination.Handle);
        }


The detailed info about this array can be found here
https://www.adobe.com/co...fs/pdf_reference_1-7.pdf
on a page 582. Table 8.2
fmotsch Posted: Saturday, July 21, 2018 6:33:48 AM(UTC)
 
here is an example : TestHyperlinks.pdf (433kb) downloaded 26 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 ?
Paul Rayman Posted: Thursday, July 19, 2018 4:14:06 AM(UTC)
 
Could you please provide PDF document with such links?
fmotsch Posted: Wednesday, July 18, 2018 5:46:52 AM(UTC)
 
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 !
PataAndrey Posted: Wednesday, November 22, 2017 5:57:10 AM(UTC)
 
Hi!

In this mode (PanTool), interactive things like clicking on links, highlighting text, etc. do not work.
CSHinUK Posted: Wednesday, November 22, 2017 5:20:01 AM(UTC)
 
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?






Paul Rayman Posted: Wednesday, November 22, 2017 4:16:00 AM(UTC)
 
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.
CSHinUK Posted: Wednesday, November 22, 2017 3:50:05 AM(UTC)
 
pdflink.zip (258kb) downloaded 43 time(s).

Files attached, thanks
Paul Rayman Posted: Wednesday, November 22, 2017 3:45:43 AM(UTC)
 
Could you please provide the PDF document?