can i print file using its path or name?

1 vue (au cours des 30 derniers jours)
Taral Shah
Taral Shah le 17 Sep 2014
Commenté : dpb le 17 Sep 2014
I am trying to print pdf file. Can anybody tell me how i can do that using PRINT command.
Thanks
  1 commentaire
dpb
dpb le 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.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by