How to change Paper Size when convert HTML files to PDF files by htmltools.exe? Use -webkit or -html2pdf2 option

Good morning,

I'm in the final stages of evaluating VeryPDF (HTMLTOOLS) to ensure it can accomplish what we're trying to do.

I have a meeting (demo) this afternoon to showcase the product and get approval to use this as the solution.

We have a lot of htm documents that I need to convert to PDF. I've managed to successfully (using your site) figure out how to write a batch file which loops through the directory and converts. The issue I have now is sizing the PDF appropriately.

I would like the PDF to be sized to 8.5" x 11x (letter) with proper page breaks.

My current command line is:
for /R \\mofs013\htmlpdf\DISK\sample %%F in (*.htm) do "E:\Data\htmltools\htmltools.exe" -append 0 "%%F" "%%~dpnF.pdf"

I've also tried:

for /R \\mofs013\htmlpdf\DISK\sample %%F in (*.htm) do "E:\Data\htmltools\htmltools.exe" -append 0 -width 612 -height 792 "%%F" "%%~dpnF.pdf"

but it doesn't seem to be the right size.

ANY help would be greatly appreciated.

Sincerely,
------------------------------------------
Please use following command lines to try again,

for /R \\mofs013\htmlpdf\DISK\sample %%F in (*.htm) do "E:\Data\htmltools\htmltools.exe" -append 0 -emfheight 792 -width 612 -height 792 "%%F" "%%~dpnF.pdf"

OR

for /R \\mofs013\htmlpdf\DISK\sample %%F in (*.htm) do "E:\Data\htmltools\htmltools.exe" -webkit -append 0 -width 612 -height 792 "%%F" "%%~dpnF.pdf"

OR

for /R \\mofs013\htmlpdf\DISK\sample %%F in (*.htm) do "E:\Data\htmltools\htmltools.exe" -html2pdf2 -append 0 -width 612 -height 792 "%%F" "%%~dpnF.pdf"

image

We hoping above command lines will useful to you, please to try.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!