Hi all,
First, I do not have a Windows machine to try, so that's why I'm asking. I have a utility to convert ePub files to PDF, that uses Prince, and I got a report from someone using Windows relative to links between different files.
I think the problem could be reproduced with something like this:
1. Two files in a subdirectory: text\a.html and text\b.html
2. text\a.html contains a link to "../text/b.html", that is, the link contains part of the path, not just the filename
3. Convert with "prince.exe text\a.html text\b.html -o output.pdf" results in a PDF with a non-working link.
4. Convert with "prince.exe text/a.html text/b.html -o output.pdf" gives a correct PDF.
It seems that Prince accepts filenames with / or \ as path separators, but only / are matched with links in the files. Am I right? Is this intended behaviour or a bug?
First, I do not have a Windows machine to try, so that's why I'm asking. I have a utility to convert ePub files to PDF, that uses Prince, and I got a report from someone using Windows relative to links between different files.
I think the problem could be reproduced with something like this:
1. Two files in a subdirectory: text\a.html and text\b.html
2. text\a.html contains a link to "../text/b.html", that is, the link contains part of the path, not just the filename
3. Convert with "prince.exe text\a.html text\b.html -o output.pdf" results in a PDF with a non-working link.
4. Convert with "prince.exe text/a.html text/b.html -o output.pdf" gives a correct PDF.
It seems that Prince accepts filenames with / or \ as path separators, but only / are matched with links in the files. Am I right? Is this intended behaviour or a bug?