----- Original Message -----Sent: Monday, March 21, 2016 10:37 AMSubject: Re: [amibroker] Re: how to @link to a particular pdf pageHello,
Thank you very much for your e-mail.
A hash (#) denotes HTML tag called "named anchor". It works with HTML files only and only
if that file has specified anchor inside such as:
http://www.amibroker.com/guide/h_optimization.html#SMART
It works because inside HTML file there is a named anchor tag:
<a name="SMART"> Hello,
PDF do not contain such tags for individual pages, so you can not use #page=..
because such tag does not exist in the file.
The only way to open PDF with specific page is to run actual Adobe Reader Executable (you must now
exact path to it) and supply with full path to the file and command line switch such as hereShellExecute("c:\\Full_Path_To_Acrobat_Reader\\AcroRd32.exe", "/A page=149 C:\\Full_Path_To_PDF\\UsersGuide.pdf" , "" );
@link command as it is does not know where you have Adobe acrobat and even if you really have one installed
(there are many PDF readers out there other than Adobe)
Best regards,
Tomasz Janeczko
amibroker.com
On 2016-03-19 02:36, 'TA' tagroups@sbcglobal.net [amibroker] wrote:That is right. I googled to find a solution. The studied the following links but haven't come up with a solution.
http://stackoverflow.com/questions/619158/adobe-reader-command-line-reference
http://stackoverflow.com/questions/6293893/how-to-force-files-to-open-in-browser-instead-of-download-pdf
From: amibroker@yahoogroups.com [mailto:amibroker@yahoogroups.com]
Sent: Friday, March 18, 2016 6:25 PM
To: amibroker@yahoogroups.com
Subject: Re: [amibroker] Re: how to @link to a particular pdf page
it would appear that it does not recognize the usual argument "#page=" for denoting a specific PDF page.
----- Original Message -----
Sent: Friday, March 18, 2016 8:57 PM
Subject: RE: [amibroker] Re: how to @link to a particular pdf page
No unfortunately it doesn't work.
From: amibroker@yahoogroups.com [mailto:amibroker@yahoogroups.com]
Sent: Friday, March 18, 2016 4:40 PM
To: amibroker@yahoogroups.com
Subject: Re: [amibroker] Re: how to @link to a particular pdf page
would something like the following work:
/// @link something.pdf#page=150
----- Original Message -----
From: 'ajf1111' ajf1111@epix.net [amibroker]
Sent: Friday, March 18, 2016 7:38 PM
Subject: Re: [amibroker] Re: how to @link to a particular pdf page
would something like the following work:
/// @link something.pdf#page=24
----- Original Message -----
From: 'TA' tagroups@sbcglobal.net [amibroker]
Sent: Friday, March 18, 2016 5:53 PM
Subject: RE: [amibroker] Re: how to @link to a particular pdf page
Thanks for your reply. I know how to use @link. I have read the manual.
My question is that if there is way of opening a pdf file to a particular page. Let's say that I have 300 pages pdf document. The description of a formula that I have coded in afl is on page 150. I want to link to that particular page.
From: amibroker@yahoogroups.com [mailto:amibroker@yahoogroups.com]
Sent: Friday, March 18, 2016 2:44 PM
To: amibroker@yahoogroups.com
Subject: [amibroker] Re: how to @link to a particular pdf page
from https://www.amibroker.com/guide/w_afledit.html
Clickable links in comments
The AFL Editor now supports clickable JavaDoc/Doxygen-style links in doc comments. To use links in comments you have to put @link command followed by path to file or URL inside JavaDoc/Doxygen style comment:
- multiline comment that begins with /** like this:
/**
@link readme.html
@link http://www.amibroker.com
*/
(note double asterisk after initial slash)- single line comment that begins with triple slash
/// @link readme.html
/// @link c:\program files\amibroker\readme.html
/// @link http://www.amibroker.com
Now when you hover the mouse over @link command you will see the underline that indicates it is clickable. It reacts to double click (not single click). When you double click it linked document will be open.
@link command can open web pages, local files (both relative and absolute paths are supported) with Windows-registered program to open given file type. So if you use:
/// @link something.doc
then MS word would be used.
/// @link test.xls
would open test.xls in Excel.
Relative paths refer to AmiBroker working directory. Html files are open with default browser, txt files are usually open with Notepad (or whatever application you use). If file does not exist then you will get an error message.
I think its really cool feature,
Larry
Posted by: "ajf1111" <ajf1111@epix.net>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (14) |
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
EmoticonEmoticon