Menu

#13 Pdf created in the wrong directory

CVS
open
nobody
5
2007-10-06
2007-10-06
buttay
No

With the latest wikipdf version (I don't know if it is true with older versions), the pdf is generated by pdflatex using the argument TEXMFOUTPUT to change its output directory. The problem is that latex will use this argument ONLY if it cannot write in his current directory (which I must say is a rather strange behaviour to me).

In normal cases, this shouldn't be an issue, as the current directory is Mediawiki's root directory, which shouldn't be writable. But in some cases (like a dirty installation in my case), permissions might be more loose.

The reason I think this behaviour is a bug is because the pdf directory shouldn't depend on mediawiki's permissions.

Also, why is there so many file manipulations to generate the pdf? (a .tex is generated by the wiki2latex.py, then rewritten by wikipdf.php, then compiled, and then all the files are renamed).

Discussion


Log in to post a comment.

MongoDB Logo MongoDB