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

SVG support when svglib available #561

Merged
merged 6 commits into from
Jan 28, 2022
Merged

SVG support when svglib available #561

merged 6 commits into from
Jan 28, 2022

Conversation

audoh-tickitto
Copy link
Contributor

@audoh-tickitto audoh-tickitto commented Jul 7, 2021

Addresses #73.

Adds support for SVGs if svglib is present.

Changes

  • Added PmlImage.getDrawing() to return a ReportLabs Drawing
  • Updated reportlab_paragraph._putFragLine to render image Drawing if available instead of the raster image
  • Added PmlImage.getDrawingRaster() to rasterise a Drawing
    • Note: only used for backwards compatibility with getImage()
  • Fixed tuple passed to setCharSpace when style.letterSpacing is (amount, unit)
  • Fixed BytesIO passed pisaTempFile rather than bytes when pisaTempFile passed to PmlImage

@audoh-tickitto audoh-tickitto changed the title SVG support SVG support when svglib available Jul 7, 2021
@ulliholtgrave
Copy link

ulliholtgrave commented Feb 28, 2022

@luisza Hey,
Our project is really interested in this feature and we wanted to ask if we can help with anything to speed up the process? If developer hours are needed, feel free to contact us. We would also be willing to put an issue bounty on the feature if your project supports something like that :)
And thanks for your great work. xhtml2pdf is really super helpful! 👍

@timobrembeck timobrembeck mentioned this pull request Feb 2, 2023
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.

None yet

3 participants