HTMLPrint to Any Converter

Can I add page number to PDF footer using html2any command line?

Hi,

My company bought your solution for our client in order to create PDF file from HTML file and it works great.

I received a new demand from our client to add page number (and total pages) to each of the PDF files that generated by the product.

Is it possible to add the page number to the page footer as requested? If so, please send me the command that I need to add.

I will appreciate that you send me all possibilities like page number, total pages and page of pages.

Currently I am activating the product by using the following command line:

html2any htmlName.html pdfFolder/myPdfName.PDF

Thank you for your help,
Customer
------------------------------------
You can use following options to add the header and footer,

-hfflag <string> : set HTML header/footer to off or on
-header <string> : set HTML header text
-footer <string> : set HTML footer text

e.g.,

html2any.exe -hfflag on -header "HTML Header" -footer "HTML Footer" https://www.verydoc.com

VeryDOC
------------------------------------
Hi,

This solution will work in static header/footer but the page footer need to have page number that is dynamic content.

I will appreciate if you give me clear answer because I have to answer my client if his demand can be done.

Thank you.
Customer
------------------------------------
You can use &p and &P to control the dynamic page number, for example,

html2any.exe -hfflag on -header "&p of &P" -footer "&p of &P" https://www.verydoc.com

html2any is support all Headers and Footers which supported by Internet Explorer, please refer to following web pages for more information,

http://msdn.microsoft.com/en-us/library/aa969429(v=vs.85).aspx
https://www.verydoc.com/ie-footer-header.html

Desired Text Code
Window title &w
Page address (URL) &u
Date in short format (as specified by Regional Settings in Control Panel) &d
Date in long format (as specified by Regional Settings in Control Panel) &D
Time in the format specified by Regional Settings in Control Panel &t
Time in 24-hour format &T
Current page number &p
Total number of pages &P
Centered text (following &b) &b
Right-aligned text (following &b&b) &b&b
A single ampersand (&) &&

VeryDOC

DOC to Any Converter

Use htmltools.exe or doc2any.exe to convert RTF files to PDF files

Hi

I want to convert a .rtf-File to a .pdf-Document. I call the program with a "shell-execution" from VB6:

Call Shell("D:\htmltools.exe D:\rtf\Bill_1.rtf D:\pdf\Bill_1.pdf")

On my local Windows XP it works perfectly but if i try it on my Windows Server 2008 the .pdf-File gets printer with all gridlines from the tables.

What can I do?
I can send you the files if you need.

regards,
Customer
-------------------------------
htmltools.exe can't convert RTF file to PDF file very well, because htmltools.exe is depend on the version of Rich Text Edit Control which installed in your Windows System. If you wish convert RTF file to PDF file from command line, we suggest you may use VeryDOC DOC to Any Converter Command Line application, this software has more methods to convert RTF file to PDF file, it can convert RTF file to PDF file with or without MS Office/OpenOffice, it is also support DOC, DOCX, PPT, PPTX, XLS, XLSX, etc. formats to PDF conversion.

VeryDOC DOC to Any Converter Command Line application can be downloaded from following web page,

https://www.verydoc.com/doc-to-any.html

You can use following code lines to convert RTF file to PDF file easily,

Call Shell("D:\doc2any.exe D:\rtf\Bill_1.rtf D:\pdf\Bill_1.pdf")

Call Shell("D:\doc2any.exe -useoffice 1 -useprinter D:\rtf\Bill_1.rtf D:\pdf\Bill_1.pdf")

Call Shell("D:\doc2any.exe -nouseoffice D:\rtf\Bill_1.rtf D:\pdf\Bill_1.pdf")

VeryDOC

HTML Print

We have htmlprint running on a 2003 server 32bit fine, but failed to run it on Windows 2008 Server 64bit system.

We have htmlprint running on a 2003 server 32 Bit just fine. We have now installed a 2008 Server running 64 bit, and my 64bit Apache/PHP can't run it, I keep getting -11 as a result, but, it is the exact command as running on the 32bit machine. Do you all have a 64Bit version over htmlprint.exe?

Customer
------------------------------------------
Hi all,

I have a server running Windows server 2003, 32bit. At present I have Apache 2.0 on that server with the PHP modules. So I have an web page that creates an HTML page and then using php to execute htmlprint.exe using php passthru function. This has been working for about 2 years. I am running the WAMP Stack for php and apache.

Basically, Apache->php(passthru)->htmlprint.exe

I want to up grade this sever to Windows server 2008, 64Bit. I have taken the latest Bitnami WAMP stack (Apache 2.2) and installed it on the new server and installed HTMLprint.exe for testing.

I can run php(passthru)->htmlprint.exe and it works from a Dos CMD window, with my login being part of Admin group.

But if I use the web page working on the 2003 server moved to the 2008 system, htmlprint.exe returns an -11 when called from php(passthru) via an Apache web page, and it fails to print, and a cmd*32 appears hung in the process list.

I suspect some kind of security issue, but, there doesn't seem to be any method of tracking down the problem. Apache calls htmlprint.exe (via the php passthru function of phpmod) as SYSTEM user that should have authority to run the htmlprint.exe

I am wondering if you have anyone other users that have ran into the same kind of issue when moving from Server 2003 32 bit to Server 2008 64 bit?

Customer
------------------------------------------

This file name is printtest.php.

When run from command line: E:> php printtest.php
it prints the html page.

When run from the browser through Apache it doesn't work.

Yet I can put another EXE, that I compiled, in the same verydoc directory and it runs fine from the browser through php/apache.

It just doesn't make sense.

RUN HTMLPRINT VIA WEB PAGE!!

The following is the sample of my PHP code,

<?php

        $passcmd = 'D://verydoc//htmlprint_cmd//htmlprint.exe -color 2 -hfflag on -footer "Fri, November 08, 2013 - 03:13:54 PM" -printbgcolor 1 -marginbottom 25 -margintop 25 -marginleft 20 -marginright 20 -paper "8.5x14in" -hidewindow -timeout1 15 -timeout2 25 -printer "Office Xerox PCL6" E:/WebRoot/www/public_html/OrderDet27163/47642/printpagek01.html';         
        session_write_close();    
        print ("<Br>RESULTS:"  . $passcmd .  "\n");                               
        passthru ($passcmd,$msgResults);      
        exit ("\nRESULTS:" . $msgResults);
        session_write_close(); 

?>

Customer
------------------------------------------

This problem is caused by permission issue, we suggest you may run htmlprint.exe inside an interactive user account instead of default Local System user account to try again, this will solve this problem to you.

You can use CmdAsUser.exe to run htmlprint.exe inside an interactive user account, CmdAsUser.exe can be downloaded from following web page, you may download it to try,

https://www.verydoc.com/exeshell.html

You may also run htmlprint.exe by manual in Cmd window to try again, can you work fine from CMD window by manual on 2008 Server 64 bit system?

VeryPDF
------------------------------------------

To solve this problem the WAMP stack was installed on Windows 2008 64Bit as local internal user "SYSTEM". Regardless of what I tried to do to give "SYSTEM" user permissions, the call from PHP (passthru) to HTMLPRINT.EXE failed to complete.

After hours of testing, I found that there was no way to give "SYSTEM" enough permissions to make this work.

What I found is that I went to the System Services where you can start and stop a service process, and changed wampapache to start as Local Administrator, giving the start process local Administrator's login and password. This did the trick.

By the way none of the work arounds sent to me in your response helped what so ever including CmdasUser.exe, etc..

Customer

------------------------------------------

Thanks for your kindly information, your solution will helpful for our other customers in the future, thank you.

VeryPDF

Raster to Vector Converter

How to convert scanned JPEG and PDF files to vector DWG, DXF and PDF files?

Hello,

I am recently downloaded the trial version of your Raster to Vector Converter. I need to be able to take an old drawing scanned to PDF and import into AutoCAD to make changes. Iv tried playing around with the settings to no use; I am still left with a bubble outline. Is your program able to somewhat accurately convert my PDF into a useable .dwg file? Even if it could import the text successfully that would be great and I would be happy to buy the full version of your program.

Are you able to help me?

Please see the attached screenshots with my dilemma.

Regards,
Customer
-----------------------------------------------

Please find attached a PDF document I wish to convert to a .dwg file.

Any help is greatly appreciated.

How to convert scanned JPEG and PDF files to vector DWG, DXF and PDF files?

How to convert scanned JPEG and PDF files to vector DWG, DXF and PDF files?

How to convert scanned JPEG and PDF files to vector DWG, DXF and PDF files?

Customer
-----------------------------------------------

You may download "VeryDOC Raster to Vector Converter Command Line" product from following web page to try,

https://www.verydoc.com/raster-to-vector-converter-command-line/index.html

you can use "VeryDOC Raster to Vector Converter Command Line" product to convert this PDF file to vector DXF/DWG/PDF files easily, for example,

Raster2Vector.exe D:\downloads\Ground_Floor_Duct_Layout.pdf D:\downloads\Ground_Floor_Duct_Layout_out.dwg

Raster2Vector.exe D:\downloads\Ground_Floor_Duct_Layout.pdf D:\downloads\Ground_Floor_Duct_Layout_out.dxf

Raster2Vector.exe D:\downloads\Ground_Floor_Duct_Layout.pdf D:\downloads\Ground_Floor_Duct_Layout_out.pdf

How to convert scanned JPEG and PDF files to vector DWG, DXF and PDF files?

VeryDOC

PDF Compressor, PDF to PDF/A Converter

How to set PDF compression and PDF/A options when converting from TIFF to PDF?

Hello,

We use the PDFShell.dll object to convert from TIF to PDF. How can we set the compression of the resulting PDF using this API. Also how do we create PDFA1A and A1B compliant PDF's? Is there documentation for doing this?

Thank you,
Customer
-------------------------------
Thanks for your message, PDFShell.dll hasn't compression and PDF/A functions yet, however, we suggest you may use following products to achieve your work,

1. You can use PDFShell.dll to convert your TIFF file to PDF file first, like you have done currently,

2. You can use "VeryDOC PDF Compressor Command Line" to compress an existing PDF file with JPEG2000, JBIG2, CCITT G4, DCTDecode etc. compression options, you can also use it to downsample the resolution to embedded images in PDF file,

https://www.verydoc.com/pdfcompressor.html

for example, you can run following command line in CMD window to compress your PDF file, this command line will downsample the resolution to images in your PDF file to 50 DPI,

pdfcompressor.exe -ci jpg -cidown -cidownres 50 -gi jpg -gidown -gidownres 50 -mi fax -midown -midownres 50 C:\in.pdf C:\out.pdf

You can call this command line from your source code to compress the PDF file too.

3. You can use "VeryDOC PDF to PDF/A Converter Command Line" to convert normal PDF files to PDF/A files, "VeryDOC PDF to PDF/A Converter Command Line" can be downloaded from following web page,

https://www.verydoc.com/pdf-to-pdfa.html
https://www.verydoc.com/blog/verydoc-releases-new-version-of-pdf-to-pdfa-converter-command-line-product-today.html

You can run following command line to convert your normal PDF files to PDF/A files easily,

pdf2pdfa.exe -mode 2 "sample1.pdf" "_sample1-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample2.pdf" "_sample2-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample3.pdf" "_sample3-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample4.pdf" "_sample4-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample5.pdf" "_sample5-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample6.pdf" "_sample6-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample7.pdf" "_sample7-pdfa.pdf"

You can also call pdf2pdfa.exe from your source code to convert normal PDF files to PDF/A files, this can be done easily.

If you have any question for above products, please feel free to let us know, we are glad to assist you asap.

VeryDOC