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

Scale down SVG to fit page #242

Closed
mojavelinux opened this issue Jun 26, 2015 · 0 comments
Closed

Scale down SVG to fit page #242

mojavelinux opened this issue Jun 26, 2015 · 0 comments
Assignees
Labels

Comments

@mojavelinux
Copy link
Member

There are still some cases when the SVG is not being fit to the page if it is wider.

Here's an example: https://github.com/openEHR/spec-publish-asciidoc/blob/master/docs/AOM2/uml_diagrams/AOM-archetype.svg

@mojavelinux mojavelinux added this to the v1.5.0 milestone Jun 26, 2015
@mojavelinux mojavelinux self-assigned this Jun 26, 2015
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Jun 26, 2015
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Jun 27, 2015
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Jun 27, 2015
- restrict width to bounds.width if no explicit width is set
- scale width value by 75% if width originates from width attribute in SVG
- code cleanups
mojavelinux added a commit that referenced this issue Jun 27, 2015
resolves #242 scale down SVG if width is wider than page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants