It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
@echo off
for %%i in (*.htm) do "Crogram Fileswkhtmltopdfbinwkhtmltopdf.exe" "%%i" "E:temppdfsfromhtml%%~ni.pdf"
originally posted by: drewlander
i would probably use the pdfkit package for python which is a wrapper for wkhtmltopdf and implement an html sanitizer.
originally posted by: drewlander
a reply to: IsaacKoi
If I have any time this evening I will take a shot at scripting it properly against a short multi-page thread and get back to you.
originally posted by: drewlander
This is not clean, but it will iterate starting at 1 to the upper limit of 3 in this case. I could easily parameterize this another day but for one-offs this would work.
readarray -t a < file
wkhtmltopdf "$[a[@]]" all.pdf
readarray reads the file into an array line by line, -t removes the trailing newline.
"$[a[@]]" refers to all array elements. This generates a command in the form:
wkhtmltopdf "$[a[0]]" "$[a[1]]" "$[a[2]]" "..." all.pdf
originally posted by: Spacespider
Someone created software that can do all that for you
www.makeuseof.com...
originally posted by: drewlander
Python is arguably the best language fir beginners today, in my humble opinion.
originally posted by: ArMaP
Well, my tests didn't give the result I was expecting, so ignore me, at least for now.