toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

Can not save to pdf

Open wang-tf opened this issue 4 years ago • 0 comments

https://github.com/votchallenge/toolkit/blob/0c61b32d0711c238f71441f79e6af434ea3a7fcb/vot/document/latex.py#L133

There is an error if I want to generate a pdf format report.

Command '['latexmk', '--pdf', '--interaction=nonstopmode', '/tmp/tmpuqx_mb9_.tex']' returned non-zero exit status 12.

I think the reason is latexmk can not find some files generated before. So I have to change to like this

    if build:
        # temp = tempfile.mktemp()
        import os
        temp = os.path.join(storage.base, "report")
        logger.debug("Generating to tempourary output %s", temp)
        doc.generate_pdf(temp, clean_tex=True)
        # storage.copy(temp + ".pdf", "report.pdf")

wang-tf avatar Jan 06 '22 10:01 wang-tf