V
V
Violetta2014-11-15 14:23:03
HTML
Violetta, 2014-11-15 14:23:03

Is there a batch HTML to PDF converter for Windows?

Suggest solutions for fast HTML to PDF batch converter.
You need to bulk convert 100 thousand html files on your local computer.
I tried wkhtmltopdf but did not find a way to specify a directory with html files in it, or how to specify to convert all html files in general.
Also, during the tests, it was found that it cannot normally indicate links in pictures, that is, the link asset is not distributed over the entire picture, but only on the bottom chaiti.
If there is absolutely nothing for Windows, tell me, in extreme cases, a similar program for linux that does not require an X server

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Balashov, 2014-11-17
@ab9

www.adobe.com/ru/products/acrobat/convert-html-to-...

E
Emil Revencu, 2014-11-20
@Revencu

Still, "wkhtmltopdf" is not a bad tool
. And directory files can be sorted out by a VBS script (set directories as a parameter):
Set fso = CreateObject("Scripting.FileSystemObject")
sFolder = Wscript.Arguments.Item(0)
If sFolder = "" Then
Wscript.Echo "No Folder parameter was passed"
Wscript.Quit
End If
Set folder = fso.GetFolder(sFolder)
Set files = folder.Files
Set WshShell = CreateObject("WScript.Shell")
For each folderIdx In files
If UCase(fso .GetExtensionName(folderIdx.Name)) = "HTML" Then
pdfname=left(folderIdx.Name,len(folderIdx.Name)-5)
wshShell.Run "wkhtmltopdf.exe "+folderIdx.Name+" "+pdfname+".pdf", 1, True
wscript.echo folderIdx.Name
end if
Next

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question