Operand stack and Execution stack Error using append_pdfs

7 ビュー (過去 30 日間)
Shuvashish Roy
Shuvashish Roy 2021 年 10 月 27 日
回答済み: Yair Altman 2022 年 1 月 18 日
Hi, I am using Matlab R2015b with the latest Export_fig and latest Ghostscript.
ranthe following code:
d=dir('D:\LD25\plot\new run\*.png');
d=natsortfiles(d);
append_pdfs('combined.pdf', {d.name});
got the following error:
Error using append_pdfs (line 111)
Error: /undefinedfilename in (combined.pdf)
Operand stack:
Execution stack:
Error in adh_adcp_dist_vel (line 65)
append_pdfs('combined.pdf', {d.name});
Let me know how to fix the issue. Previously it use to work, from yesterday suddenly it started working. Tried installing older versions of gs. Thanks much.

回答 (1 件)

Yair Altman
Yair Altman 2022 年 1 月 18 日
append_pdfs only accepts PDF input files, not PNG files or any other non-PDF files

カテゴリ

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by