HTMLPrint to Any Converter

Print HTML file (or URL) to PDF file and put a header text on every PDF page, Website to PDF Conversion with dynamic text contents on page header and page footer areas

I have the need to put a header on every page of a PDF that I am creating from an HTML file. I was hoping to use the tag as Internet Explorer uses.

Used your -default-header tag but got a "Result is failed. No output" error message. Am I missing something?

Also, in your readme.txt file, there is a -custom-header.

Can you tell me what names and values are allowed?

Thanks for your help.
Customer
--------------------------------------------------------------
Did some more searching on your knowledge base and found this:

https://www.verydoc.com/blog/can-i-add-page-number-to-pdf-footer-using-html2any-command-line.html

I didn't know -hfflag, -header and -footer were available since it's not in your documentation (or I couldn't find it).

Put this in but still getting the same error message. Help!

Here is my command line:

html2any -hfflag on -header "&w" "https://www.verydoc.com" "C:\mypdf.pdf"

If I remove the -hfflag and -header, it works fine. I also tried -default-header and that doesn't seem to work as well.

Thanks for your time.
Customer
--------------------------------------------------------------

Print HTML file (or URL) to PDF file and put a header text on every PDF page, Website to PDF Conversion with dynamic text contents on page header and page footer areas
No, your command line is wrong, please run following command line to try again,

html2any -hfflag on -header "&w" -printtopdf "D:\temp\mypdf.pdf" "https://www.verydoc.com"

OR

html2any -hfflag on -footer "&w" -printtopdf "D:\temp\mypdf.pdf" "https://www.verydoc.com"

If you want print HTML file to PDF file, you need use "-printtopdf" option to specify the output PDF filename, please notice this matter.

VeryDOC

DOC to Any Converter

useoffice and nooffice options in doc2any.exe application. How can doc2any.exe to determine MS Office, OpenOffice and without Office automatically?

Thank you - you have been extremely helpful!

Question: I have one last question. If an office suite is installed, will doc2any prefer the
office suite for the conversion, or it will default to the internal converter without office suite.

As doc2any has a command line option to prefer one or the other conversion (useoffice=1 or 0), I am wandering which one should be the preferred one, or whether doc2any will take care of this i.e. if office is installed it will use office conversion, otherwise it will use it's own conversion routine. I'm hoping it will be the last case, as then I do not have to worry about ever passing a 'useoffice' command line options.

If you could clarify this, I would be most thankful.

Customer
----------------------------------------------------------
>>Question: I have one last question. If an office suite is installed, will >>doc2any prefer the office suite for the conversion, or it will default to the >>internal converter without office suite.

Please add "-nooffice" option to stop doc2any.exe using the office installed in your system, e.g.,

doc2any.exe -nooffice D:\test.doc D:\out.pdf

>>As doc2any has a command line option to prefer one or the other conversion (useoffice=1 or 0), I am wandering which one should be the preferred one, or whether doc2any will take care of this i.e. if office is installed it will use office conversion, otherwise it will use it's own conversion routine. I'm hoping it will be the last case, as then I do not have to worry about ever passing a 'useoffice' command line options.
If you could clarify this, I would be most thankful.

If you want doc2any.exe to forget the Office suite completely, please use "-nooffice" parameter,

doc2any.exe -nooffice "C:\test.doc" "C:\out.pdf"
doc2any.exe -nooffice "C:\test.docx" "C:\out.pdf"
doc2any.exe -nooffice "C:\test.xls" "C:\out.pdf"
doc2any.exe -nooffice "C:\test.xlsx" "C:\out.pdf"
doc2any.exe -nooffice "C:\test.ppt" "C:\out.pdf"
doc2any.exe -nooffice "C:\test.pptx" "C:\out.pdf"
doc2any.exe -nooffice "C:\test.doc" "C:\out.html"
doc2any.exe -nooffice "C:\test.docx" "C:\out.html"
doc2any.exe -nooffice "C:\test.xls" "C:\out.html"
doc2any.exe -nooffice "C:\test.xlsx" "C:\out.html"
doc2any.exe -nooffice "C:\test.ppt" "C:\out.html"
doc2any.exe -nooffice "C:\test.pptx" "C:\out.html"
doc2any.exe -nooffice "C:\test.docx" "C:\out.doc"

If you use "useoffice=1 or 0", MS Office will still be used for some internal conversion. So, "-nooffice" option is the best choose to forget the Office suite.

>>I am wandering which one should be the preferred one, or whether doc2any will take care of this i.e. if office is installed it will use office conversion, otherwise it will use it's own conversion routine.

You can simple forget the "useoffice" option, and run following command line,

doc2any.exe D:\test.doc D:\out.pdf

doc2any.exe will try by following steps,

1. Try to use MS Office to convert this DOC to PDF file, if fails, go to next step,
2. Try to use OpenOffice to convert this DOC to PDF file, if fails, go to next step,
3. Try to use ourself's DOC Render to convert this DOC to PDF file, if fails, print an error message to console,

If you don't use "useoffice" option, doc2any.exe will take care of everything automatically.

VeryDOC

DOC to Any Converter

Convert RTF, DOC, DOCX to DOC, DOCX, RTF, ODT, HTML, MHTML formats without MS Office and OpenOffice

I'm looking to upgrade my doc2any converter from 2.2.01 to the latest version. I have two questions before I do so:

A: I paid extra for special customization you made last time and need to know that latest version will support:

1. Convert rtf to doc (without office suites)
2. Convert rtf to docx (without office suites)
3. Convert doc to rtf (without office suites)
4. Convert docx to rtf (without office suites)
5. Convert rtf to ODT (without office suites)
6. Convert rtf to HTML (without office suites)
7. Convert rtf to MHT (without office suites)

Please confirm 'exactly' what is and what is not supported from the above list (I do not use MS Office or Open office at all).

Customer
-----------------------------------------------------
>>A: I paid extra for special customization you made last time and need to
>>know that latest version will support:
>>1. Convert rtf to doc (without office suites)
>>Please confirm 'exactly' what is and what is not supported from the
>>above list (I do not use MS Office or Open office at all).

Yes.

>>2. Convert rtf to docx (without office suites)

Yes.

>>3. Convert doc to rtf (without office suites)

Yes.

>>4. Convert docx to rtf (without office suites)

Yes.

>>5. Convert rtf to ODT (without office suites)

Yes.

>>6. Convert rtf to HTML (without office suites)

Yes.

>>7. Convert rtf to MHT (without office suites)

No, it can't create MHTML file without MS Office or OpenOffice installed.

Relevant Hyperlink:

https://www.verydoc.com/blog/verydoc-doc-to-any-converter-command-line-v3-5-release-notes-convert-word-to-pdf-without-office-and-openoffice.html

VeryDOC

@VeryDOC SDK & COM & CLI

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

VeryPDF Releases a VeryPDFComRunCmd.exe COM today, this COM is useful when you call an EXE or MS Office from ASP, PHP, C#, .NET etc. program languages.

VeryPDFComRunCmd download URL is:

http://www.verypdf.com/dl2.php/VeryPDFComRunCmd.zip

Please by following steps to use VeryPDFComRunCmd.exe COM component,

Step 1:

Download VeryPDFComRunCmd.zip and unzip it to a folder, launch a CMD window with Administrator privilege, run install.bat or following command line to register VeryPDFComRunCmd.exe COM into your system,

VeryPDFComRunCmd.exe /regserver

If you want unregister VeryPDFComRunCmd.exe COM from your system, you can run uninstall.bat or following command line,

VeryPDFComRunCmd.exe /unregserver

Please notice, you MUST run above command lines with Administrator privilege, the limited user account hasn't enough permission to register and unregister VeryPDFComRunCmd.exe COM.

Step 2:

Please run OLEVIEW.EXE application (OLEVIEW.EXE is included in "Microsoft Visual Studio 6.0" product), go to "Type Libraries" item,

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

Locate "VeryPDFCOM" item,

COM_Viewer1

You will see "RunCmd" and "RunCmd2" two functions,

COM_Viewer2

COM_Viewer3

Please look at the declaration for RunCmd() and RunCmd2() two functions at below,

'*******************************************************************************
'* Parameters:
'*  [in] strCmdLine: the full path to the executable and the arguments to the executable
'*  [in] wShowWindow: The wShowWindow member can be any of the SW_ constants defined in WINUSER.H.
'*       #define SW_HIDE             0
'*       #define SW_SHOWNORMAL       1
'*       #define SW_NORMAL           1
'*       #define SW_SHOWMINIMIZED    2
'*       #define SW_SHOWMAXIMIZED    3
'*       #define SW_MAXIMIZE         3
'*       #define SW_SHOWNOACTIVATE   4
'*       #define SW_SHOW             5
'*       #define SW_MINIMIZE         6
'*       #define SW_SHOWMINNOACTIVE  7
'*       #define SW_SHOWNA           8
'*       #define SW_RESTORE          9
'*       #define SW_SHOWDEFAULT      10
'*       #define SW_FORCEMINIMIZE    11
'*       #define SW_MAX              11

'*  [in] bWait: block on the process finishing
'*
'* Return Values:
'*  [Out] Boolean: TRUE on success and FALSE on failed
'*  [Out]  String: Return text message which outputted from executable application
'*******************************************************************************

Public Function RunCmd(ByVal strCmdLine As String, ByVal wShowWindow As Long, ByVal bWait As Boolean) As Boolean

Public Function RunCmd2(ByVal strCmdLine As String, ByVal wShowWindow As Long) As String

Step 3:

You can use following VB Script code to test VeryPDFComRunCmd functions,

set VeryPDFCom = CreateObject("VeryPDFCom.RunCmd")
dim nRetVal, bRet
bRet = VeryPDFCom.RunCmd("C:\windows\notepad.exe", 5, 0)
strRet = VeryPDFCom.RunCmd2("cmd /c dir C:\", 5)
msgbox strRet

Step 4:

If you want use VeryPDFComRunCmd.exe from ASP code, you need arrange it run inside an interactive user account,

1. "Start" -> "Run" -> type in "dcomcnfg" on 32bit system or "MMC comexp.msc /32" on 64bit system,

In the Component Services Window, expand the tree item:

Console Root / Component Services / Computers / My computer / DCOM Config

Right click the "VeryPDFCom.RunCmd" entry and select "Properties":

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

2. In the 'COM Properties' dialog, select the the 'Security' tab,

3. In the 'Access Permissions' area, select "Customize" and click Edit.

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

4. Ensure that "Everyone" is present in the list of names. If not, add it by clicking the Add button, typing "Everyone" and give it all permissions, and clicking OK.

5. Make sure "Everyone" has the Access Permission 'Allow' check box ticked.

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

Click OK to return to the 'properties' window.

You need give "Full Control Permission" to "Everyone" to "Launch and Activation Permissions", "Access Permissions" and "Configuration Permissions" three items.

6. Click "Identity" tab. Check the "This user" checkbox, press "Browse" and specify the Administrator account, enter and re-enter the Administrator password, OR simple choose "The interactive user." option.

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

7. Click "OK" to save it,

8. Add "Everyone" user account to the folder where the VeryPDFComRunCmd.exe inside, and assign "Full Control" permission to "Everyone" user account, if you don't give enough permission to this folder, ASP, PHP, C#, VB.NET, ASP.NET etc. web applications will be denied to access to this folder,

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

[VeryDOC Release Notes] VeryDOC Releases an EXE COM of VeryPDFComRunCmd.exe today, VeryPDF EXE COM does allow you to call MS Office and Any EXE application from ASP, PHP, C#, .NET etc. program languages

9. OK, you can call "VeryPDFCom.RunCmd" from ASP, PHP, C#, VB.NET, ASP.NET, VBScript, JavaScript, Delphi, etc. program languages without any restrictions now.

Step 5:

You can use following ASP code to call any EXE or MS Office without any permission problem from now, enjoy it,

<%

set VeryPDFCom = Server.CreateObject("VeryPDFCom.RunCmd")
dim nRetVal, bRet
bRet = VeryPDFCom.RunCmd("C:\windows\notepad.exe", 5, 0)
strRet = VeryPDFCom.RunCmd2("cmd /c dir C:\", 5)
Response.Write strRet & vbCrlf

%>

学校 Relevant links:

More EXEShell Tools can be found at following web page,

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

VeryPDF has release a new docPrintCOMExe for docPrint SDK product,

http://www.verypdf.com/wordpress/201403/verypdf-release-notes-verypdf-has-release-a-new-docprintcomexe-for-docprint-sdk-product-40311.html

HTML Print

HTMLPrint not printing bar codes sometimes

Hello,

We have been using HTMLPrint for a while now and on one of our printers we have been printing a webpage that contains two 3of9 bar coded items. The printer is an HP LaserJet P2050 and we have never had any issues. There has been a recent addition of another printer to also print this same webpage. This printer is an HP LaserJet 400n. The issue we are having with this printer is that sometimes the bar codes print and sometimes they do not. We can print the same webpage over and over and sometimes the bar codes are there and sometimes it is just the characters that make up the bar codes.

Here is how the bar codes get put on the web page. If need be I can send you the fonts as well.

The bar codes are on the web page like:
*123456*

The css for the bar codes fonts is:
@font-face {
font-family: free_3_of_9regular;
src: url('free3of9-webfont.eot');
src: url('free3of9-webfont.eot?#iefix') format('embedded-opentype'),
url('free3of9-webfont.woff') format('woff'),
url('free3of9-webfont.ttf') format('truetype'),
url('free3of9-webfont.svg#free_3_of_9regular') format('svg');
font-weight: normal;
font-style: normal;
}

Have you seen this problem before? Is there possibly an update to HTMLPrint that fixes this kind of issue? Any help is appreciated.

Thanks,
Customer
---------------------------------------------------
Just for checking, you may open this web page in IE, click "File"->"Print Preview" menus, this web page will be shown in a Print Preview window, can you see barcode image in this Print Preview window correctly? if yes, you should no problem to print this barcode image to printer, if not, please try to fix this problem in Print Preview window first, then you will able to print the barcode image to target printer with HTMLPrint Command Line application.

VeryDOC