can i print file using its path or name?

1 view (last 30 days)
Taral Shah
Taral Shah on 17 Sep 2014
Commented: dpb on 17 Sep 2014
I am trying to print pdf file. Can anybody tell me how i can do that using PRINT command.
Thanks
  1 Comment
dpb
dpb on 17 Sep 2014
A .pdf file on disk? Matlab afaik doesn't have a packaged printer driver for pdf files; you have two choices--
1) use open to open the file in pdf viewer and then use ActiveX to print or
2) install a freeware or Adobe pdf virtual printer device to which you can then direct print towards by using printopt
There is a third that's a slight variation of 2) -- submit an OS print command via system -- essentially just execute the command that would be given to printopt to send a file to the virtual printer above.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!