can i print file using its path or name?

1 次查看(过去 30 天)
I am trying to print pdf file. Can anybody tell me how i can do that using PRINT command.
Thanks
  1 个评论
dpb
dpb 2014-9-17
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by