Link to local pdf file

218 views
Skip to first unread message

Bob Flandard

unread,
Oct 15, 2013, 4:48:34 PM10/15/13
to tiddl...@googlegroups.com
Hello,

I have the link below in a tiddler. When I click the link it opens the local pdf file in a new tab (FireFox), but it takes a while to load it (green progress bar at top of new page in browser).

[[Theory|file:///C:\Projects\manual\Theory.pdf#page=512]]

Is it possible to edit this link so that the file is opened in the default application for pdf files (Acrobat Reader on my Windows 7 computer), at the desired page?

Thanks,

Bob

Eric Shulman

unread,
Oct 15, 2013, 5:01:38 PM10/15/13
to tiddl...@googlegroups.com
The specific handler for a link to a given file type depends upon your browser setup.  In this instance, your FireFox has the Adobe Acrobat plugin installed.  If you disable the plugin, then the browser will default to letting the OS handle the PDF file, causing your Acrobat Reader app to launch.

To disable the Acrobat plugin in FireFox, select the "Tools>Add-Ons" menu, then choose the "Plugins" section in the "Add-ons Manager" screen.  Find "Adobe Acrobat" in the list (alphabetical, so it should be close to the top), and press the "disable" button.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:

Stephan Hradek

unread,
Oct 16, 2013, 1:32:42 AM10/16/13
to tiddl...@googlegroups.com


Am Dienstag, 15. Oktober 2013 23:01:38 UTC+2 schrieb Eric Shulman:
The specific handler for a link to a given file type depends upon your browser setup.  In this instance, your FireFox has the Adobe Acrobat plugin installed.  If you disable the plugin, then the browser will default to letting the OS handle the PDF file, causing your Acrobat Reader app to launch

That's correct, but one can trick the browser.

Change the filename in the link by (for example) appending another extension like "Theory.pdf.mine"
Then create a batch file which will take a file name like this. It should then remove your own extension and should invoke your preferred application.
Associate in your browser the ".mine" extension with your batch.

Bob Flandard

unread,
Oct 16, 2013, 7:54:20 AM10/16/13
to tiddl...@googlegroups.com
Thanks Eric,

FireFox was using its default viewer. I tried Chrome, and its default viewer is pretty snappy at loading the local pdf file (as expected), but I can't save my TW file in Chrome (I believe this is due to an incompatibility issue with the latest Java and the TiddlySaver.jar executable).

I found a partial solution in FireFox to be Tools->Option->Applications tab and change the "action" for "content type" = PDF to open pdf files in a specific application. However this caused the pdf file to be opened at page 1 not page=512.

Regards,

Bob

Bob Flandard

unread,
Oct 16, 2013, 7:57:15 AM10/16/13
to tiddl...@googlegroups.com
Hello Stephan,

Thank you for your suggestion. This is probably a level of complexity too far for my current coding ability.

Regards,

Bob

Eric Shulman

unread,
Oct 16, 2013, 8:58:28 AM10/16/13
to tiddl...@googlegroups.com
On Wednesday, October 16, 2013 4:54:20 AM UTC-7, Bob Flandard wrote:
FireFox was using its default viewer. I tried Chrome, and its default viewer is pretty snappy at loading the local pdf file (as expected), but I can't save my TW file in Chrome (I believe this is due to an incompatibility issue with the latest Java and the TiddlySaver.jar executable).

When I view a PDF using FireFox, I get a new tab with a view of the PDF.  At the top of this view, there is a message bar that says something like "This PDF document might not be displayed correctly", followed by a button, "Open With Different Viewer".  When I press that, FireFox displays it's normal "download" dialog with "open" and "save" choices.  Pressing "open" invokes the standalone Acrobat Reader for the PDF document.

-e

Bob Flandard

unread,
Oct 16, 2013, 12:03:17 PM10/16/13
to tiddl...@googlegroups.com
Hello Eric,

Thank you for your investigations!

I think I now know what caused the issue (sluggish opening of the local pdf file) and have a solution for anyone else who may find these notes.

Crudely speaking the FireFox default pdf browser "PDF.js" seems to have to read the full file contents before it can render it, thereby causing the initial delay (about 10 seconds for my 1200 page file).
The problem was solved by installing the free pdf viewer from http://www.tracker-software.com/product/pdf-xchange-viewer (Windows only), and then selecting Tools->Options->Applications tab from FireFox and setting the "action=Use PDF XChange Viewer (in FireFox)" for the "Content Type = PDF". I think this option should also work using the Adobe Viewer plugin, but it didn't work on my computer.

The pdf file now opens instantly in a FireFox tab at the correct page number.

Thanks to all!

Regards,

Bob


 I'm not sure why the Adobe Viewer plugin wasn't being forced to take priority, because I ser  
Reply all
Reply to author
Forward
0 new messages