1、打印纯英文
Dynamic Web TWAIN is a browser-based document scanning SDK specifically designed for web applications. With just a few lines of JavaScript code, you can develop robust applications to scan documents from TWAIN, SANE and ICA compatible scanners, edit the scanned images and save them to a local/server file system or document repository.If you need to implement document scanning into your .NET WinForms or WPF application, you can check out our Dynamic .NET TWAIN SDK.
2、打印纯中文
一天叶子离开了,它问树:你为什么不挽留我,树默默的说:因为风在追你,所以我选择了放弃;叶子问风:你为什么要追求我,风平淡的回答:因为树放弃了你,我看你孤独就追你了。叶子沉默了,是树太懦弱,还是自己太傻。
终有一天叶子感到筋疲力尽了,于是选择了随风漂泊,它问树:你为什么不挽留我?树骄傲的说:世界上不只有你一片叶子;叶子伤心走了,它问风:你为什么要追求我,风真诚的回答:因为世界上没有相同的两片叶子。叶子沉默了,是树不懂得爱,还是风太执着。
3、打印代码块
<input type="button" value="Scan" onclick="AcquireImage();" /> <script type="text/javascript"> var DWObject; function Dynamsoft_OnReady(){ DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); } function AcquireImage(){ if(DWObject) { DWObject.IfDisableSourceAfterAcquire = true; DWObject.SelectSource(); DWObject.OpenSource(); DWObject.AcquireImage(); } } </script>
4、打印带样式的 html 文本
/**
*2015—10-08,
*2017-02-14.
*/
Boy name = Mr Liao
Girl name = Ms Zhou
// Fall in love river.
The boy love the girl;
// They love each other.
The girl loved the boy;
// AS time goes on.
The boy can not be separated the girl;
// At the same time.
The girl can not be separated the boy;
// Both wind and snow all over the sky.
// Whether on foot or 5 kilometers.
The boy very happy;
The girl is also very happy;
// Whether it is right now
// Still in the distant future.
The boy has but one dream;
// The boy wants the girl could well have been happy.
I want to say:
Baby, I love you forever;
-- Alvin
*2015—10-08,
*2017-02-14.
*/
Boy name = Mr Liao
Girl name = Ms Zhou
// Fall in love river.
The boy love the girl;
// They love each other.
The girl loved the boy;
// AS time goes on.
The boy can not be separated the girl;
// At the same time.
The girl can not be separated the boy;
// Both wind and snow all over the sky.
// Whether on foot or 5 kilometers.
The boy very happy;
The girl is also very happy;
// Whether it is right now
// Still in the distant future.
The boy has but one dream;
// The boy wants the girl could well have been happy.
I want to say:
Baby, I love you forever;
-- Alvin