-
Notifications
You must be signed in to change notification settings - Fork 2
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
--pdf-stylesheet not working with example custom.css #34
Comments
Hi and thanks for trying out ;-) puppeteer might have done some changes, which now require an additional install step. I don't now, if the cd /usr/local/lib/node_modules/@liascript/exporter/node_modules/puppeteer
node install.js I am currently using node v16.19.0, you could try to downgrade... It would be interesting if this solves the issue. But, you can always manually add the style to your document. This injection is only a shortcut. To do so, simply add the path of your style to the main comment: <!--
...
link: custom.css
-->
# Main Title
... This should do the same job. There you can also change the style of the liascript-classes, the root variables are only the basis. And if want to change the icon, you can do this with: <!--
...
icon: https://image-url.png
-->
# Main Title
... |
@foreveremain ... I just saw, that you send an example command, I tried it and it did not work, but there was the URL not working anymore. I guess @SebastianZug changed the names of the files 🙈 ... so I have to update the URLs in the READMEs ... sorry for that, you could try: liaex --format pdf --pdf-preview --pdf-stylesheet YOUR.css -i https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_ProzeduraleProgrammierung/master/08_PythonGrundlagen.md |
@foreveremain, @andre-dietrich ... That's correct. Due to an adapted focus of this lecture, we renamed the individual files. The current version addresses data aggregation with microcontrollers (C++) and data analysis based on Python. The urls of the corresponding files are:
|
thanks @andre-dietrich for the reminder of using link: to load my own css. That works. As for the original issue: - adding --pdf-stylesheet to any invocation of liaex that otherwise works (ie a pdf is generated if requested) causes it to error out. Adding --pdf-preview makes no difference to the error, except I see Chromium start up and then close. I'll explore on another environment to check and post results here. |
@foreveremain ... but it is possible to generate pdfs, such that the inject-css causes the error only? |
no. there is no output file written at all. Chromium is crashing out after intial page load when css is passed via the argument. |
Firstly, thanks for LiaScript .. ! It's a fantasticly capable way of disseminating materials :)
I was wanting to customise PDF export so tried out the following, based on the README. However, I've been getting pupeteer errors:
I realise this might be an incompatibility issue - I upgraded to node 20.3 to check - still no dice (but I do also get warnings suggesting I should downgrade to 14).
Any suggestions ?
The text was updated successfully, but these errors were encountered: