Skip to content

feat: Add generate_svg function using pdf2svg#46

Open
Saurav4359 wants to merge 1 commit intogambitproject:mainfrom
Saurav4359:feature/generate-svg
Open

feat: Add generate_svg function using pdf2svg#46
Saurav4359 wants to merge 1 commit intogambitproject:mainfrom
Saurav4359:feature/generate-svg

Conversation

@Saurav4359
Copy link

@Saurav4359 Saurav4359 commented Feb 27, 2026

This PR adds SVG output support requested in Issue #40.

Summary

  • Added generate_svg()in core.py
  • Generates PDF first, then converts using pdf2svg
  • Added svg_requested flag in commandLine()
  • Added --svg flag in the CLI
  • Updated README with installation notes
  • Updated tests for SVG output

Testing

  • All tests pass locally using pytest
  • Verified PNG, PDF, and SVG output
  • Verified CLI behavior: draw_tree --svg input.tree

@Saurav4359
Copy link
Author

Saurav4359 commented Feb 27, 2026

Hi @edwardchalstrey1 , as asked in mail to solve any one issue I have solved issue #40. Please look into this and give your feedback.Let me know if I can solve issue #41 as well.

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.

1 participant