Jump to content


Photo

display pdf in tooltip


  • Please log in to reply
18 replies to this topic

#1 azure

azure
  • Members
  • 1203 posts

Posted 09 February 2012 - 11:16 AM

hello!

when I hover over an area, in the tooltip, the path of a pdf file is displayed

can I display the actual first page of that pdf in the tooltip?

thanks!

#2 CodeKiller

CodeKiller
  • Members
  • 2066 posts

Posted 09 February 2012 - 11:37 AM

hello!

when I hover over an area, in the tooltip, the path of a pdf file is displayed

can I display the actual first page of that pdf in the tooltip?

thanks!


To keep it simple : no.

#3 Guests

  • Guests

Posted 09 February 2012 - 12:00 PM

You probably could actually. With AutoHotkey_L's ActiveX Gui option it might be possible (either show PDF in IE browser or specific pdf ActiveX viewer).
Now before you ask "how" or "any hints": I have no clue how to make such a thing.

#4 CodeKiller

CodeKiller
  • Members
  • 2066 posts

Posted 09 February 2012 - 12:06 PM

And he asks in a "ToolTip"...
It means : extract the text from the PDF...

#5 Guests

  • Guests

Posted 09 February 2012 - 12:29 PM

@codekiller: you don't understand. You can "extract" the PATH from the tooltip, use that info to show the PDF (you have the path remember) in a AutoHotkey Gui with Activex control. You make design + position the Gui anyway you please.

#6 Guests

  • Guests

Posted 09 February 2012 - 12:30 PM

Oh and if it is "just the text" it is really a piece cake, no activex required.

#7 garry

garry
  • Members
  • 2596 posts

Posted 09 February 2012 - 12:39 PM

an old script to see pdf -files
<!-- m -->http://de.autohotkey... ... 8e47#65201<!-- m -->

#8 CodeKiller

CodeKiller
  • Members
  • 2066 posts

Posted 09 February 2012 - 01:38 PM

Ouch... What a script !!! :shock:
All of that to use PDF...

#9 azure

azure
  • Members
  • 1203 posts

Posted 09 February 2012 - 02:15 PM

And he asks in a "ToolTip"...
It means : extract the text from the PDF...


no, I mean to show the first page of the pdf when I hover over that area

#10 azure

azure
  • Members
  • 1203 posts

Posted 11 February 2012 - 10:49 PM

an old script to see pdf -files
<!-- m -->http://de.autohotkey... ... 8e47#65201<!-- m -->


thanks garry

how this script displays pdf files? it should use a pdf rendering library, right?

from a little research I did, MuPDF seems to be the fastest rendering app, so maybe using this to achieve this, will be faster?

#11 garry

garry
  • Members
  • 2596 posts

Posted 12 February 2012 - 08:39 AM

the pdf or xps files are in a folder , needs lbbrowse3.dll ( ahk_script downloads if not exist )
( small modifications to read also other extensions )
usually I use FoxitReader
TMR     =c:\M_DOCTXT     ;-- your path , here are files pdf / xps
EXT1    =pdf,xps
;......................
LV_Delete()
Loop, %tmr%\*.*, 0, 1
  {
  SplitPath,A_LoopFileFullPath, name, dir, ext, name_no_ext, drive
  If Ext In %ext1%
     LV_Add("",A_LoopFileName,A_LoopFileFullPath)
  }
;......................


( I use FoxitReader )

<!-- m -->http://de.autohotkey... ... 8e47#65201<!-- m -->

Posted Image

#12 azure

azure
  • Members
  • 1203 posts

Posted 12 February 2012 - 04:48 PM

the pdf or xps files are in a folder , needs lbbrowse3.dll ( ahk_script downloads if not exist )
( small modifications to read also other extensions )
usually I use FoxitReader

TMR     =c:\M_DOCTXT     ;-- your path , here are files pdf / xps
EXT1    =pdf,xps
;......................
LV_Delete()
Loop, %tmr%\*.*, 0, 1
  {
  SplitPath,A_LoopFileFullPath, name, dir, ext, name_no_ext, drive
  If Ext In %ext1%
     LV_Add("",A_LoopFileName,A_LoopFileFullPath)
  }
;......................


I cant find which part of the code exactly reads the pdf document

anyway, I am planning to use MuPDF, as the supposed fastest pdf rendering app, but to complete my project I need to:

1) identify whats under the cursor to trigger appropriately the MuPDF
2) load that specific pdf file to MuPDF

which commands do I need for each?

thanks!

#13 azure

azure
  • Members
  • 1203 posts

Posted 13 February 2012 - 08:27 PM

isnt there a way to parse a file location to a program and open that file with that program?

also isnt there a way to use on-hover events as triggers?

#14 azure

azure
  • Members
  • 1203 posts

Posted 02 June 2012 - 09:20 PM

now I only need to "extract" the PATH from hovering over the filename in Windows Explorer

is it possible?

#15 Guests

  • Guests

Posted 02 June 2012 - 10:19 PM

Yes and you know it is possible because I gave you this link a number of times already :-)

<!-- m -->http://www.autohotke... ... ctingfiles<!-- m -->