:format: pdf does not create anything !
Describe the bug
{drawio-image} drawio/test.drawio
:format: pdf
Does not output any file. All other formats are producing files.
To Reproduce
{drawio-image} drawio/test.drawio
:format: pdf
then make html
Expected behaviour According to documentation, a pdf file should be created.
Setup Information
- OS: Ubuntu 22.04.3
- Python: 3.10.12
- Version: 0.0.16
It looks like the the docs need to be updated, but you should be getting the following error:
DrawIO Error:
invalid export format 'pdf' specified for builder 'html'
The pdf format is only supported for the latex builder.
Well I don't get any error nor warning.
But I don't understand why? For the latex buider, I'd say that it needs an image format as for HTML to produce a global pdf document 🤔
Would it be hard to update the module?
Would it be hard to update the module?
I'm not sure, feel free to find out and open a PR!
Well, in fact, what I need looks trivial, but it's not trivial !
I've a drawio file with 2 pages. In the doc, I've 2 directives :drawio-figure:, one for each page.
And after the 2 figures, I'd like to put a link to download the whole pdf (with both pages).
Something like:
{download}`My file<pdf/myfile.pdf>`
Not sure, how to solve that ! Would it be possible to call some code inside config.py to produce this pdf ?
I'm new to python... my domain is C++....so I'd appreciate any help, advice, ...
Thx