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

Use SVG format for generating images to embed into the RST prior to rst2pdf creating a PDF #93

Merged
merged 1 commit into from
May 20, 2024

Conversation

droppedbars
Copy link

The original code would generate an EPS and PDF file for each PlantUML and them embed them as PDFs into the RST before processing through rst2pdf to generate the PDF. However, rst2pdf doesn't appear to support PDFs embedded as images into the RST.
So, changing to SVG.

Unless someone can show me how to get the PDF to work with rst2pdf. I tried it directly and it wouldn't take it.

@droppedbars
Copy link
Author

If the original behaviour should remain as default, then I can update this to use a config flag for setting the rendering output for the images.

Copy link
Collaborator

@yuja yuja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the original behaviour should remain as default, then I can update this to use a config flag for setting the rendering output for the images.

Let's see if svg works out. We can add config flag if someone complains about the change. Thanks.

@yuja yuja merged commit cab5d4c into sphinx-contrib:master May 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants