Comments (2)
I've found the reason.
The path for the image's while generating the PDF's is relative to the path of the md-file.
If you link the images relative to the md file the PDF generation works
![Pagina aanmaken](../../../images/signage/nl_signage_incident_aanmaak.png)
instead of
![Pagina aanmaken](/images/signage/nl_signage_incident_aanmaak.png)
I hope this helps others with the same issue!
from mkdocs-pdf-export-plugin.
I am having the same problem. Images are not shown in PDF output. Currently using 0.5.8, but it stopped few versions back.
Here is reproducible demo. It shows in build:
https://ci.appveyor.com/project/majkinetor/mm-docs-template#L61
ERROR: Relative URI reference without a base URI: <img src="/mm-docs-template/files/omg-lolcat.jpg">
Here are the artifacts:
- Demo page: https://majkinetor.github.io/mm-docs-template/demo/#local-files
- PDF: https://majkinetor.github.io/mm-docs-template/demo/demo.pdf#page=3
This is the full code for docker image: https://github.com/majkinetor/mm-docs
It worked before, not sure when it stopped. The only suspicious thing in the build output is:
/usr/lib/python3.6/site-packages/weasyprint/document.py:36: UserWarning: There are known rendering problems and missing features with cairo < 1.15.4. WeasyPrint may work with older versions, but please read the note about the needed cairo version on the "Install" page of the documentation before reporting bugs. http://weasyprint.readthedocs.io/en/latest/install.html
from mkdocs-pdf-export-plugin.
Related Issues (20)
- Plugin has conflicts with other plugins
- Create "enabled" option and deprecate enabled_if_env HOT 1
- Error converting file.md to PDF: unsupported operand type(s) for -: 'float' and 'str'
- Font spacing issue HOT 7
- LaTeX
- Two buttons created and Language issue HOT 1
- ERROR: Failed to load stylesheet
- Adding margin to extra css has no effect
- Niektoré pluginy nie sú dostupné: Extensions/EPGImport(list index out of range)
- Can't install on WSL HOT 1
- How to get scrollable code boxes in generated PDFs, or at least remove line breaks from wrapped lines in code boxes?
- Unable to modify the print button
- error parsing when I add one or more options
- maximum recursion depth exceeded in comparison HOT 1
- Currently, the images seem to be having issues with the latest beta version. HOT 1
- Build only the changed 'md' files, which can save a lot of project build time
- Long words break page layout
- Problem with code block
- Adding 4294963243 to array would overflow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdocs-pdf-export-plugin.