mkdocs-with-pdf icon indicating copy to clipboard operation
mkdocs-with-pdf copied to clipboard

Declaring the with-pdf plugin fails if GObjects is not present

Open ddidier opened this issue 3 years ago • 1 comments

My use case is as follow:

  1. some users have an environment with GObjects (on Linux and on the CI) and want to generate the PDF
  2. some users have an environment without GObjects (on Windows, and they cannot install it even if it's possible) and don't need to generate the PDF

But as the title says, declaring the with-pdf plugin in the mkdocs.yml fails if GObjects is not present. So it would be great if the GObjects import was done only when the PDF is generated.

Thanks

ddidier avatar Oct 10 '22 14:10 ddidier

Related:

https://stackoverflow.com/questions/69067530/how-to-solve-weasyprint-error-message-gobject-2-0-0-error-0x7e-message

https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#windows ("Only Windows 11 64-bit is supported")

stefaneidelloth avatar Jun 14 '23 08:06 stefaneidelloth