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 Image not rendered correctly in pdf #111

Open
chvdfSi opened this issue May 19, 2022 · 0 comments
Open

SVG Image not rendered correctly in pdf #111

chvdfSi opened this issue May 19, 2022 · 0 comments

Comments

@chvdfSi
Copy link

chvdfSi commented May 19, 2022

All my SVG images look like they are shifted to the left a bit when rendering them into the pdf. On the web page everything looks normal.

In the screen shot the upper one is from the web page and the lower from the pdf.

PDFRenderSVG

mkdoc.yml

site_name: Design Documentation

plugins:
    - with-pdf:
        author: Someone
        #copyright: ANY TEXT
        #
        cover: true
        #back_cover: true
        cover_title: My awesome Document
        cover_subtitle: Observe
        #custom_template_path: TEMPLATES PATH
        #
        toc_title: Content
        #heading_shift: false
        toc_level: 3
        ordered_chapter_level: 3
        output_path: DesignDocumentation.pdf
        #enabled_if_env: ENABLE_PDF_EXPORT
        #
        debug_html: true
        #show_anchors: true
        #verbose: true

I also tried switching to chrome to render the pdf, but sadly with the same result.
All diagrams are exported as SVGs beforehand and included in the markdown like ![Class diagram](_img/class_diagram.svg "Class diagram")

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

No branches or pull requests

1 participant