Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

append_pdfs error #378

Open
katiebogue opened this issue Jun 4, 2023 · 3 comments
Open

append_pdfs error #378

katiebogue opened this issue Jun 4, 2023 · 3 comments

Comments

@katiebogue
Copy link

Hello, I continue to get the following error any time I try to use append_pdfs:
Error using append_pdfs (line 131)
Unterminated quote in @-file: temp.pdf"

where temp.pdf is whatever the last file was in the list of files that I was trying to append. This has been happening on and off for months now but usually resolves when I unlink and then relink Ghostscript with Homebrew. However, this did not work this time. I have the most updated Ghostscript and the most updated export_fig. Please advise.

Here are 2 sample inputs and the error they throw:

append_pdfs('final.pdf', 'temp1.pdf', 'temp2.pdf', 'temp3.pdf')
Error using append_pdfs (line 131)
Unterminated quote in @-file: temp3.pdf"
saveas(gcf, append('temp.pdf'))
append_pdfs(pdf_name, append('temp.pdf'))
Error using append_pdfs (line 131)
Unterminated quote in @-file: temp.pdf"

altmany added a commit that referenced this issue Jun 7, 2023
…; fixed handling of pathnames with non-ASCII chars (issue #349); display ghostscript command upon run-time invocation error
@altmany
Copy link
Owner

altmany commented Jun 7, 2023

Please try it with the latest commit (694e85b) and let me know if it solved the problem or not.

If the problem persists, please send me the extra text output that should not be displayed in case of a ghostscript error, that will help debug the problem.

@katiebogue
Copy link
Author

Unfortunately, that did not fix the issue. The extra text + error now looks like this:
-q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="/private/var/folders/03/7r1dhlhd0ds9y8t_9cpzgqrr0000gn/T/tp1b76df99_d9e7_4796_9244_9c6417bffd76.pdf" -f "RESULTS_2023-06-11 13-38_PPlnth-4_with_int.pdf" "temp.pdf"
Error using append_pdfs (line 134)
Unterminated quote in @-file: temp.pdf"

altmany added a commit that referenced this issue Jul 5, 2023
…stead of Deflate (issue #379); another attempt to fix issue #378 (remove unnecessary quotes from ghostscript cmdfile)
@altmany
Copy link
Owner

altmany commented Jul 5, 2023

Please check if the latest commit (47ab1f9) fixes this issue.
In this latest version, there should only be quotation marks now around filenames that contain a space, and hopefully this resolves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants