-
Notifications
You must be signed in to change notification settings - Fork 178
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 images fail to export to PDF #14
Comments
That thread seems to indicate a problem going through LaTeX, but I think the problem persists if we do Markdown → HTML5 → PDF as is currently implemented. Are you considering creating a local rasterized copy of the graphics to generate the PDF? Something like this may be helpful: https://gist.github.com/jeromerobert/3996eca3acd12e4c3d40 |
Yes, I agree that the problem is occurring for this lineage.
I think there should be a solution that doesn't require rasterizing vectors. For example, if an SVG is converted to PDF, then it should be able to be embedded in a PDF without sacrificing the vectors? |
I hope so. Can you make a PDF version of the SVG file we're using for the figure example, built from the same source as the SVG? |
Should there be a local directory for the figures in the repository? |
@vsmalladi see discussion on #1: currently we're focusing on images via URL. In #1, @slochower has a working solution for images via paths, but we didn't see a pressing need that justified the complexity. |
@dhimmel thanks for the brining me up to speed. |
@vsmalladi The figures show up, so that's a big improvement. All text and figures are tiny when I view the pdf though. Do you see that as well? |
@agitter Ya I had the same issue. Wanted to see if anyone else saw the same thing. Not sure what is happening with the scaling. But it is looking better. |
Export of SVG images to PDFs should now be working (since we switched to WeasyPrint in #78). Let us know if your experience is otherwise and we can reopen this issue or start a new issue. |
Refs jgm/pandoc#265
The text was updated successfully, but these errors were encountered: