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

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));

        }

    }

}