Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More a question rather than a bug... #88

Open
FredM67 opened this issue Aug 31, 2023 · 2 comments
Open

More a question rather than a bug... #88

FredM67 opened this issue Aug 31, 2023 · 2 comments
Labels
feature-request New feature or request

Comments

@FredM67
Copy link

FredM67 commented Aug 31, 2023

I've a drawio file in an "sphinx" md file.
`
```{drawio-figure} drawio/my_graph.drawio
:alt: My graph
:align: center

My graph
```
`

On default this graph is tranformed as a svg file.

I'd like to make it clickable to download this graph as a pdf.

How could I do that ?
I could call drawio by hand, store the pdf file by hand, .... Is there any "all-in-one" solution, so that sphinxcontrib-drawio creates both file at "once" ?

Thx for your support...

I didn't find any other way to ask my question (The Discussion tab is not available).

@FredM67 FredM67 added the bug Something isn't working label Aug 31, 2023
@modelmat
Copy link
Owner

modelmat commented Sep 3, 2023

No, this isn't possible with the extension at the moment.

It could be done, if you wanted, -- generating the PDFs always would be reasonably "trivial" for every image -- but as to having SVG inline and click become a PDF, not sure (we currently subclass the existing Sphinx Figure type, so unless that supports it it would have to be modified a reasonable amount to get clickability).

(Don't worry about creating issues for questions, I'm pretty sure this repo predates the Discussions tab anyway which is probably why it's disabled.)

@FredM67
Copy link
Author

FredM67 commented Sep 3, 2023

Well that'd be cool to have this extension produce a pdf file (for the HTML builder).
I think I could deal with some workaround for the "clickable" stuff.

@jdillard jdillard added feature-request New feature or request and removed bug Something isn't working labels Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants