I am trying to use pdfkit module on python to create pdf file from text. the first time I ran the following code, it was alright, but after the second attempt the background of the created file is dark, I tried to write this code into a different file and execute it but the result is the same. Would somebody please show me how to fix it. Thanks.
This is the code I tried to test the pdfkit:
#!/usr/bin/python3
import pdfkit
pdfkit.from_string('MicroPyramid', 'micro_2.pdf')
micro_2.pdfbefore running code again ?