Print a specific PDF file using its path?
조회 수: 4 (최근 30일)
이전 댓글 표시
I would like to print (physically on paper, not display on screen) a particular PDF, from MATLAB. Is this possible?
I have looked through the function "print" and can see that I can use it to print TO a particular file, but I want to physically print out a particular file.
댓글 수: 0
답변 (1개)
Jan
2022년 8월 1일
Guessing, that you use Windows:
Acrobat = '"C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe"'
PDFFile = '"C:\your.pdf"';
Printer = '"doPDF v7"';
system([Acrobat, ' /N /T ', PDFFile, ' ', Printer]);
Set the printer name etc accordinlgy.
I cannot test this currently. Maybe Acrobat is kept open afterwards.
댓글 수: 2
Mario Malic
2022년 8월 4일
Check this thread. There are some properties of System.Diagnostics.Process that might start the program in the background.
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!