Things I have tried
Hello everyone, I tried different things to let Pandoc know that I want to use a specific folder as an attachment folder but only this solution worked:
opened 05:41PM - 02 Nov 21 UTC
Hello! I was trying to convert one of my files to PDF, I received the following … error

The thing is, that picture isn't in the root folder, it's in a nested folder called `__Assets`.
The full path is `C:\Users\Username\Documents\[[Obsidian]]\Folks and Tales\Ash In The Snow\PCs\__Assets`
If the full relative path (`Ash In The Snow/PCs/__Assets/Axiom.png`) is specified, then works. The only way to do this in obsidian (that I know of?) is by having multiple files by the same name, which forces obsidian to have a full relative link to *that* exact file.
Is there any way to work around this issue? I can provide any files or my exact file structure if needed.
But I think is not a good solution because it doesn’t show enough flexibility regarding the folder where the attachments are.
I know that Obsidian “doesn’t care” about the folder where the images are located but I’m trying to maintain an attachment folder for each problem for portability purposes
What I’m trying to do
I think a good idea was displayed here:
opened 08:41AM - 10 May 13 UTC
closed 07:02AM - 21 May 17 UTC
enhancement
status:in-progress
status:more-discussion-needed
I get a pandoc message
```
pandoc: Could not find image `floating-image.pdf', … skipping...
```
Would it be possible to make it a bit more expressive such as
```
pandoc: Could not find image `floating-image.pdf`, skipping ...
in "mytestfile.md line 1234, producing docx output
```
I was calling pandoc with multiple output formats, the problem only occurs while generating docx. The image file exists, but as it is a pdf, I guess pandoc cannot process it. If this is the case, pandoc should express that fact.
Pandoc could use ghostscript to convert it to a proper format, but that's another story (or another request:-)
with this possible implementation:
---
graphics: true
header-includes:
- \graphicspath{{./images/}}
---

Has anyone found a better solution or a feature that I’m not aware of?
Thank you
system
Closed
July 10, 2022, 3:31pm
2
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.