ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Mass convert already locally saved html (+htm +mht) files to pdf

<< < (4/4)

4wd:
Just need to test for the existence of the output file:


--- Code: PowerShell ---if (!(Test-Path $outFile)) {...}
Added, try it now, (haven't tested it but it should work).

jity2:
I have tested your update and this is so great 4wd ! ;)
Many thanks. ;)

Inspired by https://stackoverflow.com/questions/49614437/make-chrome-headless-to-wait-for-ajax-before-printing-to-pdf I have added for Chrome (see in row #49) :

--- Code: PowerShell ---$args = "`"$($inFile)`" --headless --run-all-compositor-stages-before-draw --virtual-time-budget=10000 --print-to-pdf=`"$($outFile)`""For me it doesn't seem to change anything ! Maybe this would help someone in the future... ;)

Thank you again ;)
See ya

skwire:
Thanks, 4wd.  Moving thread to the Finished section.

Navigation

[0] Message Index

[*] Previous page

Go to full version