MATLAB Answers

Is it possible to print hard copy of PDF file using MATLAB

12 views (last 30 days)
Ashwini Amin
Ashwini Amin on 6 Jan 2020
Answered: Rik on 6 Jan 2020
Hello Team,
I have a PDF file, and I want to print it using matlab. I want to make a gui with a push button that automatically print the PDF file, is this possible?
Regards,
Ashwini

Answers (1)

Rik
Rik on 6 Jan 2020
If you can manage to read the pdf in Matlab and make it your current figure, you can actually use the print function. See this part of the doc. You'll need the name of your printer as reported by the findprinters function, which doesn't seem to have a doc (although it does have a help, so you can still type doc findprinters and get some information).
If you can't (or don't want to) read in into Matlab, the easiest way is to find a program that has a command line interface and use the system function to print the document.

  0 Comments

Sign in to comment.

Sign in to answer this question.