Closed sanzoghenzo closed 1 year ago
@sanzoghenzo Did you ever figure this out? I'm dealing with a similar problem.
Hi @Amaretto-Coke , Unfortunately I didn't find a solution for this, and I probably never will since I abandoned this project. Good luck!
@sanzoghenzo Thanks for the reply. I'll continue troubleshooting, maybe there's a workaround. I'll post here if I find anything.
@sanzoghenzo Putting "file:" in front of the path seemed to do the trick for me.
@sanzoghenzo Putting "file:" in front of the path seemed to do the trick for me.
This seemed to work for me as well. i.e
file:C:\Path\Path\Path
Good to know! Closing this, but this info could be made into an example if someone is willing to do that
Hi, thanks a ton for your work!
With the information on this site I was able to put up a python-centric DTP workflow, using invoke, pandoc, lxml and pillow.
Usually the final product is a bulletin with most of the pages in B/W, so I convert and place the b/w images (converted using pillow) in the InDesign file, but recently we need to also have the color version for digital distribution.
I'm trying to automate the switch from B/W to color images (I put them into two separate folders, "images" and "images_bw", so I only need to change the parent folder):
The
Link.Relink
method raises an exception:I saw that other have the same problem with javascript, and solved using the
new File()
js object (even though the docs states that you can use a string).Since we don't have access to the File object, what are our options here?
Thanks for the attention!