Open meteorlin opened 2 years ago
It seems that Illustrator can not find the created PDF file. Usually, if the Plugin gets to this point, the PDF should be created properly. Can you check what the contents of the temp directory "C:\Users\USERNAME\AppData\Local\Temp\LaTeX2AI" are, when the error message appears?
Thank you for your quick reply! It seems that the pdf file is generated successfully:
Ok, this rules out any LaTeX errors. The LaTeX2AI_item_1.pdf
file should be copied to the links
folder in your working directory (under some cryptic filename). Can you check if this file is created correctly?
Yes, the LaTeX2AI_item_1.pdf
file is created correctly and I can open it successfully.
Jsut to be sure, did you check the LaTeX2AI_item_1.pdf
file, or the one in the links
folder? The name should be something like AI_FILENAME_LaTeX2AI_4771e3d2b5bd68a2.pdf
.
Well, there is not any folder named links
in the Temp\LaTeX2AI
folder. Can you give me an example snapshot which shows what folders or files should be generated in the Temp\LaTeX2AI
folder?
I think I was not very precise with my previous comment. The creation of a LaTeX2AI item can be split up in the following steps:
LaTeX2AI_item_1.pdf
file. links
in the document directory, i.e., the directory where your Illustrator file is saved. The item is stored under a name containing the document name and the PDF file hash (e.g., AI_FILENAME_LaTeX2AI_4771e3d2b5bd68a2.pdf
).links
folder is placed as a label in Illustrator.It seems that the error you reported happens in step 2.
The figure below shows an example directory structure with two Illustrator documents figure_1.ai
(containing 3 LaTeX2AI labels) and figure_2.ai
(containing 2 LaTeX2AI labels). The labels are stored in the links
folder to help illustrator locate them when opening the documents. Once opened the Plugin should handle all housekeeping tasks.
Oh, I see.
The links
folder is generated in the same dir of the .ai
file, but it is empty (without any .pdf
file is generated).
This means, that the problem is most likely somewhere in the decoding or encoding of the PDF file.
I uploaded a commit (fa16f1e5), which creates a log file debug.log
in the main directory (the one where the illustrator document is). You can upload this log file here, that might give more detailed information on what is going wrong (for privacy reasons be ware, that this log file contain some metadata about the created PDF, e.g. your user name).
I'm sorry to reply you so late and I solve it by changing the dir path of the .ai
file because the previous path contained Chinese.
Here is the snapshot of the debug.log
file after changing the dir path.
Can you fix it caused by non-English characters in the path?
Thank you so much!
Yes, it seems that non ASCI characters in the document path lead to this bug. I will have a look at this in the next couple of days.
@meteorlin the issue is more complicated than I anticipated. With #101 a warning is introduced that alerts the user if non ASCII characters are used in the file name. I will keep this issue open, for a future fix.
The new warning will be in the next release.
Hello, while using this plug-in, it throw an error. The plug-in panel stacks together:
The error log:
After that, the Ai give me an error panel with "L2APlugin: :ToolMouseDown Error caught."