CN104156163A - Method for displaying handwriting in PDF file - Google Patents
Method for displaying handwriting in PDF file Download PDFInfo
- Publication number
- CN104156163A CN104156163A CN201310179842.3A CN201310179842A CN104156163A CN 104156163 A CN104156163 A CN 104156163A CN 201310179842 A CN201310179842 A CN 201310179842A CN 104156163 A CN104156163 A CN 104156163A
- Authority
- CN
- China
- Prior art keywords
- handwriting
- stroke point
- paintbrush
- person
- stroke
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to a method for displaying handwriting in a PDF file. The method comprises the steps of determining the insertion position of a handwriting label in the PDF file; correspondingly recording coordinates and pressure data of all stroke points on a screen with which a brush makes contact, and recording the sequence in which the brush makes contact with the stroke points; establishing corresponding relations between the pressure data and colors so as to establish the corresponding relations between the coordinates of the stroke points and the colors; displaying the stroke points with corresponding colors; connecting all the stroke points according to the sequence in which the brush makes contact with the stroke points to form handwriting data, wherein the colors of connecting lines between the adjacent stroke points are displayed according to the function rule; forming an appearance graph according to the handwriting data, and combining the handwriting data and the appearance graph into the handwriting label; embedding the handwriting label into the insertion position in the PDF file. By means of the method, the displayed handwriting is closer to the true handwriting of a user, the friendliness of a human-computer interaction interface is improved, and the application field is expanded.
Description
Technical field
The present invention relates to show the technical field of person's handwriting in pdf document, particularly relate to a kind of method that shows person's handwriting in pdf document.
Background technology
Along with the development of the technology such as sensor, touch-screen, in pdf document, show that the person's handwriting of paintbrush input becomes possibility.Prior art is by the coordinate of each stroke point of storage and the sequencing of paintbrush contact stroke point, and then each stroke point is coupled together and forms a handwriting data, then this handwriting data is embedded in pdf document, finally in pdf document, has shown the person's handwriting of input.The shortcoming of this technology is, handwriting data is the line of stroke point, and color is very single, and the person's handwriting that this and user really write has very large difference, thereby the human-computer interaction interface of prior art is poor, had a strong impact on the application of this technology in fields such as drawing, signatures.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method that shows person's handwriting in pdf document, can make the person's handwriting showing more approach the real person's handwriting of user, improves the friendly of human-computer interaction interface, expands application.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of method that shows person's handwriting in pdf document, and described person's handwriting is write on screen by paintbrush; The method comprises:
Step 1: open described pdf document, determine that person's handwriting is labeled in the embedded location in described pdf document;
Step 2: the coordinate of each the stroke point on the described screen that corresponding record paintbrush contacts and the pressure data of paintbrush to this stroke point, and record the sequencing that paintbrush contacts described stroke point;
Step 3: paintbrush is set up to corresponding relation to the pressure data of stroke point described in each and color, thereby set up the coordinate of described stroke point and the corresponding relation between color;
Step 4: stroke point described in each is shown with color corresponding to its coordinate; The sequencing that contacts described stroke point according to paintbrush couples together all stroke points, forms a handwriting data, and wherein, the color of the line between adjacent stroke point shows according to predetermined function rule;
Step 5: form an appearance graphic according to described handwriting data, and then described handwriting data and described appearance graphic are merged into described person's handwriting mark;
Step 6: described person's handwriting mark is embedded into the described embedded location in described pdf document.
The invention has the beneficial effects as follows: the present invention has recorded coordinate and each stroke of each stroke point and put suffered pressure data, and be the coordinate of stroke point, pressure data and color have been set up corresponding relation, so just can on screen, each stroke point be shown with color corresponding to its coordinate, the color of the line between adjacent stroke point shows according to predetermined function rule, thereby the present invention has embodied paintbrush out to the pressure of each stroke point by color, therefore, person's handwriting mark is embedded to shown person's handwriting out in pdf document and more approach the real person's handwriting of user, this has improved the friendly of inventor's machine interactive interface, can apply it to easily in the fields such as drawing, thereby expanded application of the present invention.
On the basis of technique scheme, the present invention can also do following improvement:
Further, described step 3 also comprises: paintbrush is set up to corresponding relation to the pressure data of stroke point described in each and width, thereby set up the coordinate of described stroke point and the corresponding relation between width;
In the described handwriting data that described step 4 forms, the width of the line between adjacent stroke point shows according to the second predetermined function rule.
Further, in described step 2, record paintbrush and to the method for the pressure data of this stroke point be: sensor is converted to pressure data by the paintbrush perceiving to the pressure of this stroke point and is transferred to controller, by controller, described pressure data is saved in storer.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method that shows person's handwriting in pdf document that proposes of the present invention.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example, only for explaining the present invention, is not intended to limit scope of the present invention.
The present invention proposes a kind of method that shows person's handwriting in pdf document, person's handwriting of the present invention is write on screen by paintbrush, and the person's handwriting here can be Chinese character, can be also picture, can also be letter etc.Screen in the present invention can be the screen of touch-screen, handwriting pad etc., can be also display etc.According to the difference of screen, paintbrush is also different, and for example, when screen is the screen of touch-screen, handwriting pad, paintbrush can be people's finger, also can be for arbitrarily hard thing, as pencil, pen etc.; When screen is display, paintbrush can be realized with mouse.
Fig. 1 is the process flow diagram of the method that shows person's handwriting in pdf document that proposes of the present invention, and as shown in Figure 1, the method comprises:
Step 101: open pdf document, determine that person's handwriting is labeled in the embedded location in pdf document.
PDF is the abbreviation of Portable Document Format, means portable file layout, is a kind of form of e-file, and pdf document is the e-file of having applied PDF.
The present invention writes paintbrush the person's handwriting that obtains to reflect with the form of a person's handwriting mark on screen, and this person's handwriting mark is embedded in pdf document, thereby in pdf document, shows that paintbrush writes the person's handwriting that obtains.This person's handwriting that is that this step will be determined is labeled in the embedded location in pdf document, conventionally choose the embedded location that the blank position in pdf document marks as person's handwriting, certainly, also can will there is the position of word, form or picture as its embedded location as required.
Step 102: the coordinate of each the stroke point on the screen that corresponding record paintbrush contacts and the paintbrush pressure data to this stroke point, and record the sequencing that paintbrush contacts stroke point.
The content that this step will record comprises: the coordinate of each the stroke point on the screen that paintbrush contacts, the sequencing of paintbrush to the pressure data of this stroke point, paintbrush contact stroke point.Wherein, the pressure data of paintbrush to this stroke point, refers to the value of paintbrush to stroke point institute applied pressure, pressure data corresponding record and the preservation to this stroke point of the coordinate of each the stroke point on the screen that this step contacts paintbrush and paintbrush.
In this step, record paintbrush and to the method for the pressure data of this stroke point can be: sensor is converted to pressure data by the paintbrush perceiving to the pressure of this stroke point and is transferred to controller, by controller, pressure data is saved in storer.The method is to carry out under the situations such as screen of screen employing touch-screen, handwriting pad.When screen adopts display and paintbrush while adopting mouse to realize, can record the pressure data of paintbrush to stroke point by the mode of simulation, this step record paintbrush to the method for the pressure data of stroke point can be: record mouse in the translational speed at place, stroke point position, and this translational speed is converted to pressure data is transferred to controller, and then by controller, this pressure data is saved in storer.
Step 103: paintbrush is set up to corresponding relation to the pressure data of each stroke point and color, thereby set up the coordinate of stroke point and the corresponding relation between color.
The coordinate of each the stroke point on screen paintbrush being contacted in step 102 and paintbrush are set up on the basis of corresponding relation to the pressure data of this stroke point, further paintbrush is set up to corresponding relation to the pressure data of each stroke point and color, like this, the paintbrush of just take is medium to the pressure data of stroke point, between the coordinate of each the stroke point on the screen that paintbrush is contacted and color, set up corresponding relation, and this corresponding relation means, each the stroke point on the screen that paintbrush contacts shows that on screen adopted color is thereupon definite.
Step 104: each stroke point is shown with color corresponding to its coordinate; Sequencing according to paintbrush contact stroke point couples together all stroke points, forms a handwriting data, and wherein, the color of the line between adjacent stroke point shows according to predetermined function rule.
The function rule here can be for any predetermined function rule such as cosine rule, sinusoidal rule, linear rule, random variation rule, normal distribution law, as long as belong to function rule, all within protection scope of the present invention.Take linear rule as example, the color of the line between adjacent stroke point shows according to linear rule, mean on this line that the variation from the color of first stroke point to the color of last stroke point is linear, the color that can be first stroke point is the denseest, the color of last stroke point is the lightest, also can be conversely.The rest may be inferred for other function rule.。
The coordinate of the stroke point of setting up based on step 103 and the corresponding relation between color, this step can show each stroke point with color corresponding to its coordinate.
In step 102, recorded on the basis of sequencing of paintbrush contact stroke point, this step couples together all stroke points, just formed a handwriting data, the content of this handwriting data can be picture, can be also the content arbitrarily such as Chinese character, letter, numeral.
Step 105: form an appearance graphic according to handwriting data, and then handwriting data and appearance graphic are merged into person's handwriting mark.
The present invention's person's handwriting mark used is the mark in pdf document in essence, thereby person's handwriting mark is except having the handwriting data of reflection person's handwriting content, also to there is an appearance graphic, the shape of this appearance graphic, size, background color etc. can be preset, can be the form of picture, can be also a simple figure.
The method that handwriting data and appearance graphic are merged is prior art, and the present invention does not repeat.
Handwriting data and appearance graphic are merged to formed person's handwriting mark can be solidified, the content (handwriting data) wherein that this means this person's handwriting mark can not be edited, certainly, person's handwriting mark can be also editable, to adapt to the needs of revising and upgrading.
Step 106: person's handwriting mark is embedded into the embedded location in pdf document.
Person's handwriting mark is a mark of pdf document in essence, thereby can be embedded into the embedded location in pdf document, and this embedded location is determined in step 101.The method that person's handwriting mark is embedded into the embedded location in pdf document is prior art, and the present invention does not repeat.
Person's handwriting mark can, always in the embedded location demonstration of pdf document, as long as open this pdf document, just can be seen this person's handwriting mark at embedded location.Person's handwriting mark can be also to hide form, and only when clicking or touching its embedded location, person's handwriting mark just shows, otherwise in hiding sightless state, this is conducive to be arranged at the non-blank-white position of word, picture or form etc.
As can be seen here, the present invention has recorded coordinate and each stroke of each stroke point and has put suffered pressure data, and be the coordinate of stroke point, pressure data and color have been set up corresponding relation, so just can on screen, each stroke point be shown with color corresponding to its coordinate, the color of the line between adjacent stroke point shows according to predetermined function rule, thereby the present invention has embodied paintbrush out to the pressure of each stroke point by color, therefore, person's handwriting mark is embedded to shown person's handwriting out in pdf document and more approach the real person's handwriting of user, this has improved the friendly of inventor's machine interactive interface, can apply it to easily drawing, in the fields such as signature, thereby expanded application of the present invention.
Above-mentioned method is to reflect that by color paintbrush to the pressure of each stroke point, in fact can also reflect pressure by other modes, for example the width of line.Like this, step 103 also comprises: paintbrush is set up to corresponding relation to the pressure data of each stroke point and width, thereby set up the coordinate of stroke point and the corresponding relation between width.In the handwriting data that step 104 forms, the width of the line between adjacent stroke point shows according to the second predetermined function rule, the second function rule described here means that this rule can be from above-mentioned different for showing the function rule of color of the line between adjacent stroke point, certainly, also can be identical.The second function rule here also can be for any predetermined function rule such as cosine rule, sinusoidal rule, linear rule, random variation rule, normal distribution law, as long as belong to function rule, all within protection scope of the present invention.Still take the second function rule as linear rule be example, width corresponding to the coordinate of the stroke point that between adjacent stroke point, the width of line is first contacted by paintbrush is to the width gradual change corresponding to coordinate of the stroke point contacting after paintbrush.The rest may be inferred for the second function rule of other kinds.
As can be seen here, the present invention has the following advantages:
(1) the present invention has recorded each stroke point coordinate and each stroke are put suffered pressure data, and be the coordinate of stroke point, pressure data and color, width has been set up corresponding relation, so just can on screen, each stroke point be shown with color corresponding to its coordinate, the color of the line between adjacent stroke point shows according to predetermined function rule, width also can reflect the size of pressure data, thereby the present invention's color, width has embodied paintbrush out to the pressure of each stroke point, therefore, person's handwriting mark is embedded to shown person's handwriting out in pdf document and more approach the real person's handwriting of user, this has improved the friendly of inventor's machine interactive interface, can apply it to easily in the fields such as drawing, thereby expanded application of the present invention.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (3)
1. in pdf document, show a method for person's handwriting, described person's handwriting is write on screen by paintbrush; It is characterized in that, the method comprises:
Step 1: open described pdf document, determine that person's handwriting is labeled in the embedded location in described pdf document;
Step 2: the coordinate of each the stroke point on the described screen that corresponding record paintbrush contacts and the pressure data of paintbrush to this stroke point, and record the sequencing that paintbrush contacts described stroke point;
Step 3: paintbrush is set up to corresponding relation to the pressure data of stroke point described in each and color, thereby set up the coordinate of described stroke point and the corresponding relation between color;
Step 4: stroke point described in each is shown with color corresponding to its coordinate; The sequencing that contacts described stroke point according to paintbrush couples together all stroke points, forms a handwriting data, and wherein, the color of the line between adjacent stroke point shows according to predetermined function rule;
Step 5: form an appearance graphic according to described handwriting data, and then described handwriting data and described appearance graphic are merged into described person's handwriting mark;
Step 6: described person's handwriting mark is embedded into the described embedded location in described pdf document.
2. method according to claim 1, is characterized in that, described step 3 also comprises: paintbrush is set up to corresponding relation to the pressure data of stroke point described in each and width, thereby set up the coordinate of described stroke point and the corresponding relation between width;
In the described handwriting data that described step 4 forms, the width of the line between adjacent stroke point shows according to the second predetermined function rule.
3. method according to claim 1 and 2, it is characterized in that, in described step 2, recording paintbrush to the method for the pressure data of this stroke point is: sensor is converted to pressure data by the paintbrush perceiving to the pressure of this stroke point and is transferred to controller, by controller, described pressure data is saved in storer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310179842.3A CN104156163B (en) | 2013-05-15 | 2013-05-15 | A kind of method that person's handwriting is shown in pdf document |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310179842.3A CN104156163B (en) | 2013-05-15 | 2013-05-15 | A kind of method that person's handwriting is shown in pdf document |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104156163A true CN104156163A (en) | 2014-11-19 |
CN104156163B CN104156163B (en) | 2018-01-05 |
Family
ID=51881675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310179842.3A Active CN104156163B (en) | 2013-05-15 | 2013-05-15 | A kind of method that person's handwriting is shown in pdf document |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104156163B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104571992A (en) * | 2014-12-30 | 2015-04-29 | 广东威创视讯科技股份有限公司 | Simultaneous multi-screen marking method and device |
CN104714750A (en) * | 2015-03-20 | 2015-06-17 | 天脉聚源(北京)教育科技有限公司 | Method and device for displaying handwriting |
WO2015192270A1 (en) * | 2014-06-19 | 2015-12-23 | 福建福昕软件开发股份有限公司北京分公司 | Method for displaying handwriting in a pdf file |
CN106125963A (en) * | 2016-06-24 | 2016-11-16 | 江西金格科技股份有限公司 | On a kind of equipment without pressure sensitivity former person's handwriting Handwriting Signature System and the former person's handwriting of PDF document hand-written sign method |
CN107240330A (en) * | 2017-06-27 | 2017-10-10 | 北京新国人智慧科技股份有限公司 | System that handwriting display method and system, the intelligence of practising handwriting practise handwriting terminal and intelligence is practised handwriting |
CN107291919A (en) * | 2017-06-28 | 2017-10-24 | 四川妥妥递科技有限公司 | A kind of system and method for add fields online in pdf document |
CN109542326A (en) * | 2018-11-29 | 2019-03-29 | 广州朗国电子科技有限公司 | The method and system of touch apparatus realization multiple color written handwriting |
CN111857893A (en) * | 2019-04-08 | 2020-10-30 | 百度在线网络技术(北京)有限公司 | Method and device for generating label graph |
CN111857893B (en) * | 2019-04-08 | 2024-05-28 | 百度在线网络技术(北京)有限公司 | Method and device for generating annotation graph |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0887372A (en) * | 1994-09-16 | 1996-04-02 | Toshiba Corp | Image input device |
CN101004635A (en) * | 2007-01-19 | 2007-07-25 | 姜志熹 | Method for displaying information on display screen based on force sense |
CN101226445A (en) * | 2008-02-04 | 2008-07-23 | 炬力集成电路设计有限公司 | Method and device for input through touch screen |
CN101393696A (en) * | 2008-10-13 | 2009-03-25 | 罗君 | Simulating electronic drawing board |
CN101650637A (en) * | 2009-09-07 | 2010-02-17 | 苏州瀚瑞微电子有限公司 | Method for editing graph on touch screen |
-
2013
- 2013-05-15 CN CN201310179842.3A patent/CN104156163B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0887372A (en) * | 1994-09-16 | 1996-04-02 | Toshiba Corp | Image input device |
CN101004635A (en) * | 2007-01-19 | 2007-07-25 | 姜志熹 | Method for displaying information on display screen based on force sense |
CN101226445A (en) * | 2008-02-04 | 2008-07-23 | 炬力集成电路设计有限公司 | Method and device for input through touch screen |
CN101393696A (en) * | 2008-10-13 | 2009-03-25 | 罗君 | Simulating electronic drawing board |
CN101650637A (en) * | 2009-09-07 | 2010-02-17 | 苏州瀚瑞微电子有限公司 | Method for editing graph on touch screen |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015192270A1 (en) * | 2014-06-19 | 2015-12-23 | 福建福昕软件开发股份有限公司北京分公司 | Method for displaying handwriting in a pdf file |
CN104571992A (en) * | 2014-12-30 | 2015-04-29 | 广东威创视讯科技股份有限公司 | Simultaneous multi-screen marking method and device |
CN104714750A (en) * | 2015-03-20 | 2015-06-17 | 天脉聚源(北京)教育科技有限公司 | Method and device for displaying handwriting |
CN106125963A (en) * | 2016-06-24 | 2016-11-16 | 江西金格科技股份有限公司 | On a kind of equipment without pressure sensitivity former person's handwriting Handwriting Signature System and the former person's handwriting of PDF document hand-written sign method |
CN107240330A (en) * | 2017-06-27 | 2017-10-10 | 北京新国人智慧科技股份有限公司 | System that handwriting display method and system, the intelligence of practising handwriting practise handwriting terminal and intelligence is practised handwriting |
CN107291919A (en) * | 2017-06-28 | 2017-10-24 | 四川妥妥递科技有限公司 | A kind of system and method for add fields online in pdf document |
CN109542326A (en) * | 2018-11-29 | 2019-03-29 | 广州朗国电子科技有限公司 | The method and system of touch apparatus realization multiple color written handwriting |
CN109542326B (en) * | 2018-11-29 | 2020-10-13 | 广州朗国电子科技有限公司 | Method and system for realizing handwriting writing in multiple colors by touch equipment |
CN111857893A (en) * | 2019-04-08 | 2020-10-30 | 百度在线网络技术(北京)有限公司 | Method and device for generating label graph |
CN111857893B (en) * | 2019-04-08 | 2024-05-28 | 百度在线网络技术(北京)有限公司 | Method and device for generating annotation graph |
Also Published As
Publication number | Publication date |
---|---|
CN104156163B (en) | 2018-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104156163A (en) | Method for displaying handwriting in PDF file | |
CN104182137B (en) | A kind of method of the electronic handwriting on erasing data board | |
CN105144072B (en) | Pressure sensitivity is simulated on multi-point touch control apparatus | |
US20170220140A1 (en) | Digital Cursor Display Linked to a Smart Pen | |
KR102212846B1 (en) | Information processing device, information processing method, and recording medium | |
CN104464393A (en) | Chinese character copying and writing method for student tablet computer | |
US20170131801A1 (en) | Method for displaying handwriting in a pdf file | |
CN104517489A (en) | Virtual experiment table used for teaching | |
US10248880B1 (en) | Method of processing and recognizing hand-written characters | |
US20130278519A1 (en) | Electronic device with drawing function and drawing method thereof | |
CN111782131A (en) | Pen point implementation method, device, equipment and readable storage medium | |
CN103535019A (en) | Region of interest of an image | |
CN113485570B (en) | Multi-user writing method, device, computer readable storage medium and terminal equipment | |
CN105654080B (en) | Operation control method and device for stylus pen | |
CN104199602B (en) | A kind of information processing method and electronic equipment | |
CN107193424A (en) | A kind of Intelligent electronic-type method for deleting and device | |
US10324618B1 (en) | System and method for formatting and manipulating digital ink | |
KR102298618B1 (en) | Apparatus for creating bounding box and method thereof | |
WO2021218448A1 (en) | Handwriting forming method and apparatus, and electronic device | |
CN104238921A (en) | Custom polygon drawing method and device | |
US9996256B2 (en) | Method for erasing electronic handwriting on a clipboard | |
JP2019207681A (en) | Electronic whiteboard, electronic whiteboard system, and operation control method therefor | |
TWI420351B (en) | Electronic reading device | |
KR20140002900A (en) | Method for sound source reproducing of terminel and terminel thereof | |
US20150301705A1 (en) | Method for displaying pdf file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20171207 Address after: 350003 Gulou District, Fuzhou, Fuzhou Software Park, No. 89, software park, building G, No. 5 Applicant after: FOXIT SOFTWARE INCORPORATED Address before: 100098 Beijing, Zhichun Road, No., China Sea industrial building, layer 56, 9 Applicant before: Beijing Branch of Fujian Foxit Software Development Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |