HTML to Image Converter

Use html2image to convert HTML file to Fax ready TIFF file

I have download and test html2image, for use in the fax business.

html2image may fulfill my goals except that some functionalities are either missing or does not seem to work correctly.

I would like to have a Black&White output, is it possible?

I wonder if there are limitation in the trail version, I want to have a 200x200 dpi resolution output. I always end up with a 96x96 resolution.

Here are 2 commands I was using, with the same result:

html2image.exe -xdpi=200 -ydpi=200 -url=D:\html2image\Brooktrout.htm
-out=D:\html2image\Brooktrout-200x200.tif

html2image.exe -url=D:\html2image\Brooktrout.htm
-out=D:\html2image\Brooktrout-200x200.tif -xdpi=200 -ydpi=200

I also tried:

html2image.exe -url=D:\html2image\Brooktrout.htm
-out=D:\html2image\Brooktrout-200x200.tif -dpi=200

same result.

If it may help, I attach the html source file and the result of the conversion to this e-mail.

If html2image meets our needs, we may think on buying the "HTML to Image Converter Command Line source code".

Best regards,
Customer
--------------------------------------------

You can add "-highquality" parameter to try again, for example,

html2image.exe -url=D:\downloads\Brooktrout.htm -out=D:\downloads\Brooktrout.png -highquality -xdpi=200 -ydpi=200 -width=2000

You will get a better image file with "-highquality" parameter, please to try.

VeryDOC

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

also, html2image can't create the Black&White output TIFF file, but you can use an Image Library to convert color image file to Black and white TIFF file.

We have another option to allow you to convert HTML file to Fax TIFF file, for example, you can use our "HTML Converter Command Line" or "docPrint Pro" to convert HTML file to PDF file first, and use "VeryPDF PDF to Image Converter Command Line" to convert PDF file to Fax ready TIFF file again, "VeryPDF PDF to Image Converter Command Line" does a good job to convert PDF file to Fax ready TIFF file,

http://www.verypdf.com/wordpress/201312/convert-pdf-file-to-fax-tiff-file-by-special-options-40065.html

http://www.verypdf.com/wordpress/201107/dither-function-when-convert-color-pdf-page-to-black-and-white-tiff-file-1425.html

http://www.verypdf.com/wordpress/201107/pdf-to-image-converter-quality-of-generated-tiff-images-1616.html

VeryDOC

PCL, PS, PDF Page Counter

64bit version of Spool File Page Counter SDK. How to call Spool File Page Counter SDK from 64bit application?

Q: Is it possible to get a set of binaries compiled for x64 platform?

A: Page Counter SDK contains a FileInfoCOM.exe file, this is a COM interface, it can be called from both 32bit and 64bit EXE processes, you can run following command line with Administrator privilege to register this COM into your system,

FileInfoCOM.exe /regserver

64bit version of Spool File Page Counter SDK. How to call Spool File Page Counter SDK from 64bit application?

you can call it from your VB6 code like below.

strFileName = varPathCurrent & "\test_tiger.eps"

 

Set FileInfoCom = CreateObject("FileInfoCOM.FileInfoClass")

FileInfoCom.com_ReadInfoSetCode ("XXXXXXXXXXXXXXXXXXX")

nRet = FileInfoCom.com_ReadInfoFromPSFile(strFileName, bIsRenderToPDF, bwPageCount, colorPageCount, copyCount, nPageWidth, nPageHeight, strPaperSizeName)

 

strMsg = strMsg + "FileName = " + strFileName + vbCrLf

strMsg = strMsg + "bIsRenderToPDF = " + CStr(bIsRenderToPDF) + vbCrLf

strMsg = strMsg + "bwPageCount = " + CStr(bwPageCount) + vbCrLf

strMsg = strMsg + "colorPageCount = " + CStr(colorPageCount) + vbCrLf

strMsg = strMsg + "copyCount = " + CStr(copyCount) + vbCrLf

strMsg = strMsg + "PageWidth = " + CStr(nPageWidth) + vbCrLf

strMsg = strMsg + "PageHeight = " + CStr(nPageHeight) + vbCrLf

strMsg = strMsg + "PaperSizeName = " + CStr(strPaperSizeName) + vbCrLf

MsgBox strMsg

 

This is the C# example which can be compiled with "AnyCPU" mode,

using System;

using System.Collections.Generic;

using System.Linq;

using System.Runtime.InteropServices;

using System.Text;

using FileInfoCOM;

 

namespace ParsingTest {

    class Program {

 

        static void Main(string[] args)

        {

            if (args.Length != 1)

            {

                Console.WriteLine("test.exe C:\\test.pcl");

                Console.WriteLine("test.exe C:\\test.ps");

                return;

            }

            Console.Write("args length is ");

            Console.WriteLine(args.Length); // Write array length

            for (int i = 0; i < args.Length; i++) // Loop through array

            {

                string argument = args[i];

                Console.Write("args index ");

                Console.Write(i); // Write index

                Console.Write(" is [");

                Console.Write(argument); // Write string

                Console.WriteLine("]");

            }

            string fileName = args[0];

            int bIsRenderToPDF = 0;

            int bwPageCount = 0;

            int colorPageCount = 0;

            int copyCount = 0;

            double nPageWidth = 0;

            double nPageHeight = 0;

            string strPaperSizeName = new string(' ', 300);

 

            FileInfoCOM.FileInfoClass objFileInfoCom =
                  new FileInfoCOM.FileInfoClassClass();

 

            objFileInfoCom.com_ReadInfoSetCode("XXXXXXXXXXXXXXXXXX");

            objFileInfoCom.com_ReadInfoFromPCLFile(fileName, bIsRenderToPDF,
                  ref bwPageCount, ref colorPageCount,
ref copyCount, ref nPageWidth,
                 
ref nPageHeight, ref strPaperSizeName);

 

            Console.WriteLine(String.Format("File: {0}", fileName));

            Console.WriteLine(String.Format("Render To PDF: {0}", bIsRenderToPDF));

            Console.WriteLine(String.Format("BW Pages: {0}", bwPageCount));

            Console.WriteLine(String.Format("Color Pages: {0}", colorPageCount));

            Console.WriteLine(String.Format("Width: {0}", nPageWidth));

            Console.WriteLine(String.Format("Height: {0}", nPageHeight));

            Console.WriteLine(String.Format("Paper name: {0}", strPaperSizeName));

        }

    }

}

DOC to Any Converter

Can doc2any be used in a non-interactive session?

We invoke doc2any from a VBScript on the server. When we manually run the script on the server (using a remote desktop session) then everything works as expected.

However, when we use task scheduler to trigger the script on a periodic basis then we run into trouble.

If the scheduled task is run as user SYSTEM, then doc2any is unable to invoke Microsoft Word and instead falls back on a very default PDF conversion. The resultant PDF is not acceptable as it is a ‘plain text’ conversion and many elements from the Word document are missing.

If the scheduled task is run as any other user, then that user must have a remote desktop session open to produce a correct PDF. If the user logs out, then doc2any falls back on the plain text conversion.

I have also tried starting doc2any_service\docPrint_Service.exe. This method works until the user who started docPrint_Service logs out. Then doc2any is again unable to find Word and falls back on plain text conversion.

The question is: Is there any way that doc2any can be used on the server without having a remote desktop session open? I.e. in a ‘non interactive’ session, run as user SYSTEM.

Many thanks
Customer
-------------------------------------------------
Microsoft expand on the issues here:

http://support.microsoft.com/kb/257757

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

Customer
-------------------------------------------------
>>Can doc2any be used in a non-interactive session?

Yes, doc2any can be used in an non-interactive session, but you need set MS Word DCOM run inside an interactive user account, please refer to following web pages for more information,

http://www.verypdf.com/wordpress/201109/doc2any-sdk-dll-does-work-on-localhost-but-not-work-on-internet-2333.html
https://www.verydoc.com/blog/how-to-call-doc2any-exe-from-asp-code.html
https://www.verydoc.com/blog/running-doc2any-as-a-scheduled-task.html
https://www.verydoc.com/others/configure-word-and-excel.htm
https://www.verydoc.com/blog/failed-to-call-doc2any-exe-from-c-or-vb-net-source-code.html
https://www.verydoc.com/blog/cannot-test-doc2any-on-net.html
https://www.verydoc.com/blog/failed-to-call-doc2any-exe-from-java-application-to-convert-pptx-and-docx-files-to-pdf-files.html
https://www.verydoc.com/blog/run-doc2any-on-windows-2003-or-windows-2008-system.html

VeryDOC

DOC to Any Converter

PDF program to merge different documents and delete empty page

Question:  Hello! I'm looking for a PDF program somewhat like this: I need it to combine word & PDF documents into one document, as well as delete any empty pages within the newly created PDF.Is there a solution on VeryDOC? Thanks in advance if anyone knows.

Answer: When you need to merge word to PDF and delete empty page after merging, maybe you can have a free trial of this software: VeryDOC DOC to Any Converter. By this software, we can convert word to PDF or merge word to an existing PDF without MS Office or OpenOffice installed. When you need, this software also can help you delete empty page. The latest version of this software is totally standalone software, it does not depends on MS Office or other third party application. Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Free download DOC to Any Converter Command Line.

  • This software is command line version software, when downloading finishes it is a zip file. You need to extract it to some folder then you can call it from MS Dos Windows.
  • Please make sure download the latest version of this software as the older version does not cover the functions stated blow.

Step 2. Merge word to PDF and delete empty page.

  • When you need to merge word to an existing PDF file, by this software you can append it to the last page or the first page of the existing PDF file.
  • Here is the usage of this software, please have a check: DOC2Any [options] <in-file> [<out-file>]
  • When appending, please use the following parameters:
  • -append <int> :
        -append 0          : Overwrite if PDF file exists
        -append 1          : Insert before first page if PDF file exists
        -append 2          : Append to last page if PDF file exists
        -append 3          : Rename filename if PDF file exists
    -noempty               : Delete empty pages from PDF file
    Here are some command line templates for your reference:
    doc2any.exe -append 2 -width 612 -height 792 -noempty C:\*.doc C:\out.pdf
    By this command line, we can insert before first page if PDF file exists. Using wild character *, you can merge all word files in C directory to the existing PDF file. Meanwhile you can specify width and height, deleting empty pages.
    doc2any.exe -append 1-noempty  C:\*.doc C:\out.pdf

By this software and those parameters, you can merge word to PDF and delete empty page. There are more functions of this software, I can not list all of them here. Please check more on homepage, during the using, if you have any question, please contact us as soon as possible.

PDF to Text Converter

How to copy content of a Locked PDF file?

Question:  Hi!! I have one PDF file which is protected, so I cant copy the content even I cant print the same. Please tell me how to copy specific content of the file. Is there a solution on VeryDOC?

Answer: According to your description, the PDF is protected by owner password and disable printing, copying and other options, so you can not do copy the content even  print the same. But you can try to convert this PDF to text by VeryDOC PDF to Text Converter. This converter can help you convert owner password protected PDF file to text directly and it supports languages like English, French, German, Italian, Chinese Simplified, Chinese Traditional, Czech, Danish, Dutch, Japanese, Korean, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Thai, etc. Meanwhile it supports all version PDF files from PDF 1.1 to 1.8. Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Free install PDF to Text Converter.

  • This software is GUI version, so when downloading finishes, you will get an exe file. Please install this software by double clicking the exe file and following installation message till shortcut icon showing up on desktop.
  • When the installation finishes, please go to the installation folder. Call the exe file in MS Dos Windows. By this method, you can also use it like command line version software.

Step 2. Convert password protected PDF to text.

  • Here I will take the command line version for example. Here is the usage for your reference:
  • PDF2TXT <input PDF file> [output TXT file] [-logfile] [-open] [-space] [-html] [-format] [-silent] [-blankline] [-summary] [-zoom <num>] [-?] [-h]

  • When converting password protected PDF to text, you can run the conversion directly without inputting the owner password.
  • C:\>PDF2TXT C:\*.pdf
    C:\>PDF2TXT C:\input.pdf C:\output.txt
    C:\>PDF2TXT C:\test\*.pdf C:\test\*.txt
    You can use wild characters to run the conversion in batch.

  • For now this software can not help you convert open password protected PDF to text.
  • Here are some other parameters for your reference:
  • <input PDF file>: Open an existing PDF file to convert.
    [output TXT file]: Write to TEXT file, the default is same filename of input PDF file.
    [-first <page number>]: Specify the first page number.
    [-last  <page number>]: Specify the last page number.
    [-logfile]: Write log to "C:\pdf2txt.log" file.
    [-open]: Auto open the text file after it be created.
    [-space]: Auto insert spaces into text file.
    [-html]: Output to a HTML file, not a text file.

Please check more parameters on homepage, I can not list all of them here. After conversion, you can copy text from the output text file. By this method, you can copy content from owner password protected PDF file. During the using, if you have any question, please contact us as soon as possible.