I want to go to a particular page in a 100 pages pdf file using a push button in matlab GUI. What command should I use in the push button callback function?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
ARUP MUKHERJEE
il 20 Gen 2017
Commentato: Walter Roberson
il 20 Gen 2017
I want to go to a particular page in a 100 pages pdf file using a push button in matlab GUI. What command should I use in the push button callback function?
3 Commenti
Jorge Mario Guerra González
il 20 Gen 2017
Modificato: Jorge Mario Guerra González
il 20 Gen 2017
@Walter Roberson Just realized that when you attemp to open a pdf document with web() it opens Acrobat instead.
web(<pdf direction>)
opens pdf on Acrobat.
Walter Roberson
il 20 Gen 2017
What web() does is going to depend upon the -browser option; and once you are not using the built-in browser then what is done with pdf is going to depend upon the browser settings.
On my OS-X system, I just used web() on a .pdf without using a -browser option; it opened OS-X's built-in Preview utility, which is not what my default browser is configured to do but is the default for opening pdf files from the file explorer.
Risposta accettata
Jorge Mario Guerra González
il 20 Gen 2017
The command to do that is:
system("Acrobat directory" /A "page=20" "your file directory");
Do it as if you were doing it on the command line.
As an example of a file I open on my computer.
system('"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" /A "page=10" "C:\Users\Jorgue Guerra\Desktop\TrabajoGr.pdf"');
1. Goes to where Adobe instaler the adobe reader
2. sets page 10
3. specifies the file I want to open which is on desktop.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Dialog Boxes in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!