I am using pdfkit to generate pdf files from strings.
ASK: Each string i pass to pdfkit i want it as a new page in the output pdf.
i know this is possible using from_file like below. But, i do not want to write it to a file and use it.
pdfkit.from_file(['file1', 'file2'], 'output.pdf')
This creates output.pdf file with 2 pages.
is something similar like below possible?
pdfkit.from_string(['ABC', 'XYZ'], 'output.pdf')
It should write "ABC" in page 1 and "XYZ" in page 2 of output.pdf file
inject html instead of raw text
do you mean, to pass file name list? – Pressman