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.

回答 (1 件)

Jan
Jan 2022 年 8 月 1 日

0 投票

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 件のコメント

IFM
IFM 2022 年 8 月 4 日
Thanks for this idea. I can confirm it does leave the UI open, which means it won't be great for my purpose.
Mario Malic
Mario Malic 2022 年 8 月 4 日
Check this thread. There are some properties of System.Diagnostics.Process that might start the program in the background.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Programming についてさらに検索

製品

リリース

R2021a

タグ

質問済み:

IFM
2022 年 8 月 1 日

コメント済み:

2022 年 8 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by