Reputation: 11
I want to open a PDF file from Matlab in specific page. I used command web
:
web('fille:///D:\file.pdf#page=3')
but the PDF does not open in page 3, but it opens on page 1. Is there a solution?
Upvotes: 0
Views: 686
Reputation: 23685
I couldn't find a way to perform this using the web
command (it seems that not all the web engines support this PDF
feature), but through a command (system function) this can be easily achieved.
Under Windows:
system('"C:\Path\To\AcroRd32.exe" /A "page=3" "C:\Path\To\file.pdf"');
Under Linux with Evince (more information here):
system('evince -p 3 /path/to/file.pdf');
Upvotes: 1