Archive for June, 2006

Convert local html file to image

Friday, June 30th, 2006

Some people want to convert html file at local disk to image. This can be done with html snapshot easily

Suppose your local html file is c:\1.htm, you can call html snapshot like this to convert it into jpg file:

snap.SnapUrl(“file://c:\1.htm”, “c:\1.jpg”)

If you have a html string, you can do it in two ways.

1. save your html string to a local html file like c:\1.htm. Then call SnapUrl in your program like above

2. you can call SnapHtmlString to achieve this.

 

 

 

 

Customer comments on html snapshot

Friday, June 30th, 2006

Customer satifaction is one of our goal and motivation to start software business. We always work hard to ensure our customers are satisfied with our products or services. And we would like to collect customer’s feedback and comments on our products as well. :)

Here are some of the comments we got:

The HTML snapshot is a great tool. It saved me many hours of development time and allowed me to concentrate on my application.

Thanks for your support and hand-holding.

–Mr. Wigdor

Write a folder in ASP.Net

Friday, June 30th, 2006

When using our components like  pdf split and merge in your ASP.Net application, you need to first set the working folder access to ensure the folder can be written in ASP.Net

 1. Using Windows Explorer, navigate to the working Folder (for example C:\Inetpub\wwwroot).

2. Right-click on the folder and choose Properties.

3. Select the Security tab. If you do not see the Security tab with Windows XP, you must disable “Simple File Sharing.” From the Windows Explorer menu choose Tools, Folder Options, View tab, and uncheck the Use simple file sharing (Recommended) option. This will enable the Security tab on file and folder property dialogs.

4. Look in the Group or user names list for aspnet_wp account (machine_name\ASPNET) where machine_name is the name of your computer. If it is not present, click the Add… button and type ASPNET in the box and click the OK button.
Select the aspnet_wp account (machine_name\ASPNET) user. Make sure the Allow check boxes are checked for the Modify and Write permissions. Click the OK button.
 

http put

Sunday, June 25th, 2006

Http put is a method to upload client side file to server via HTTP protocol.

To make it work, the server side needs a script to handle the upload stream. PHP has provided such functionality

http://www.zend.com/manual/features.file-upload.put-method.php

 On the client side, Curl is a free tool that supports http put.

 

html to jpg, jpeg on linux

Saturday, June 24th, 2006

We have updated our html2image for Linux product.

The new added feature is to support jpg and jpeg file format.

You can now batch convert html, url to jpg in Linux now

FAQ: do I need a sound card to use Active TTS?

Tuesday, June 20th, 2006

Active TTS is built on the speech API SAPI5 and SAPI4 on windows. SAPI requires sound card to be installed.

In general, you need to have sound card installed on your server or desktop so that you can use TTS functions.

 

PDF stamper: stamp watermark on given pages

Saturday, June 17th, 2006

We have updated the PDF Stamper component with a new method SetPageMask.

You can use this method to specify which pages you want to stamp watermark or text onto.

The string format of the mask is composed of a series of 0 and 1. The position of 1 and 0 corresponds to the pdf page number. 0 will denote that the correspondent page will not be stamped on. 1 is on the contrary. So:

“1000″   :   the 2,3,4 page of the pdf file will not be stamped on.

“010101″:  the even page of the pdf file will be stamped on

 

 

FAQ: run regsvr32.exe failed in Vista.

Sunday, June 11th, 2006

When I first try to register our ActiveX component such as htmlsnapshot, an error is shown,”DllRegisterServer in xxxx.dll failed.Return code was:0×80070005″.

0×80070005 means “Access Denied”, but I’ve been an administrator. I think this is related to the new security model in vista.

After doing some research, here is the correcy way to do so:

 To register activex control to local machine(not only current user) successfully, developers must right click on “Command Prompt” in Accessories and click “Run as Administrator”,  then run “regsvr32 foo.dll” in the command window.
It’s due to Vista’s new feature, not a activex’s bug

 

FAQ: Does this Active TTS activex support voice from greece ?

Thursday, June 8th, 2006

In general, the language of TTS is supported by the TTS engine itself.  ActiveTTS is just an interface that is easy to use for TTS functionality. The underline job converting text to speech is still done by TTS engines.

So if the TTS engine is SAPI4 or SAPI5 compatible, our Active TTS component will support it with no problem.

 

FAQ: Do you have an active-x control for Mp3 to SWF conversion?

Thursday, June 8th, 2006

Yes, our ActiveTTS object supports it. http://www.guangmingsoft.net/activetts

it has the method to convert mp3 to swf

LONG Mp3ToSWF(String MP3File, String SWFFile, BOOL bLoop)
Description: convert mp3 to streaming flash movie

Mp3File: the input mp3 file,whose sample frequency should be 11, 22, or 44kHZ

SWFFile: the output flash movie

bLoop: indicate if the flash movie will be played repeatedly