CN104298653B - The method and apparatus for identifying document properties by changing page effect - Google Patents

The method and apparatus for identifying document properties by changing page effect Download PDF

Info

Publication number
CN104298653B
CN104298653B CN201310303670.6A CN201310303670A CN104298653B CN 104298653 B CN104298653 B CN 104298653B CN 201310303670 A CN201310303670 A CN 201310303670A CN 104298653 B CN104298653 B CN 104298653B
Authority
CN
China
Prior art keywords
page
document
border
attribute
width
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.)
Expired - Fee Related
Application number
CN201310303670.6A
Other languages
Chinese (zh)
Other versions
CN104298653A (en
Inventor
王婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Pku Founder Information Industry Group Co ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Founder Information Industry Holdings Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Founder Information Industry Holdings Co Ltd, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Founder Information Industry Holdings Co Ltd
Priority to CN201310303670.6A priority Critical patent/CN104298653B/en
Publication of CN104298653A publication Critical patent/CN104298653A/en
Application granted granted Critical
Publication of CN104298653B publication Critical patent/CN104298653B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of method for identifying document properties by changing page effect, including:The attribute for determining current document is interactive document;On the page of the current document, along the whole periphery of the page, according to predetermined dimensions after attribute mapping, the border pattern with one fixed width is formed;Wherein, the border pattern belongs to interactive document for identifying the page.The present invention also provides a kind of device that document properties are identified by changing page effect, including:Attribute module, the attribute for determining current document are interactive document;Display module, for the page in the current document, along the whole periphery of the page, according to predetermined dimensions after attribute mapping, form the border pattern with one fixed width;Wherein, the border pattern belongs to interactive document for identifying the page.The present invention is known that document properties when user is seeing the page, is easy to the quick editor for carrying out next step.

Description

The method and apparatus for identifying document properties by changing page effect
Technical field
The present invention relates to type-setting domain, in particular to a kind of side that document properties are identified by changing page effect Method and device.
Background technology
With the fast development of mobile Internet, increasing print publishing software is also both increased to interaction function Support, to meet the interactive experience in mobile reading equipment.But in current electronic document manufacturing process, document printing As being with the page effect of interactive document, such producer needs the document properties checked in configuration, could judge existing Document be document printing or interactive document, be unfavorable for follow-up typesetting operation.
The content of the invention
The present invention is intended to provide a kind of method and apparatus for identifying document properties by changing page effect, above-mentioned to solve Producer needs to check document properties, could perform the problem of follow-up typesetting operates.
The present invention provides a kind of method for identifying document properties by changing page effect, including:Determine current document Attribute is interactive document;On the page of the current document, along the whole periphery of the page, attribute according to predetermined dimensions After mapping, the border pattern with one fixed width is formed;Wherein, the border pattern belongs to interactive text for identifying the page Shelves.
Preferably, the process of the mapping includes:Coordinate and predetermined border width according to the page, it is determined that The coordinate of the border pattern;
Or the equipment according to the page is shown, determine the width of the border pattern.
Preferably, according to the equipment for showing the page, determining the process of the width of the border pattern includes:Output is more The mark of the display device of individual model and corresponding tick boxes;Wherein, the border of corresponding one of each display device itself is wide Degree;Receive user to choose tick boxes, according to choosing for user, determine the border width of the display device.
Preferably, in addition to:Judge the attribute of the current document;If it is determined that the attribute of the current document is printing Document, then on the page of the current document, any pattern is not shown.
Preferably, the color that the border pattern is presented is different from the color on the page.
The present invention also provides a kind of device that document properties are identified by changing page effect, including:Attribute module, it is used for The attribute for determining current document is interactive document;Display module, for the page in the current document, along the page Whole periphery, according to predetermined dimensions after attribute mapping, form the border pattern with one fixed width;Wherein, the boundary graph Case belongs to interactive document for identifying the page.
Preferably, the display module includes:First/second mapping block, output module;
First mapping block, for the coordinate according to the page and predetermined border width, determine the side The coordinate of boundary's pattern;
Or the second mapping mould, for the equipment according to the page is shown, determine the width of the border pattern;
The output module, for the page in the current document, according to the defeated of the first/second mapping block Go out result, form the border pattern with one fixed width.
Preferably, second mapping block includes:
Tick boxes module, mark and corresponding tick boxes for the display device that exports multiple models;Wherein, each The corresponding border width of itself of display device;
Receiving module, tick boxes are chosen for receiving user, according to choosing for user, determine the side of the display device Boundary's width.
Preferably, in addition to:Judge module, for judging the attribute of the current document;Analysis module, if for really The attribute of the fixed current document is document printing, then on the page of the current document, does not show any pattern.
Preferably, in addition to:Color module, for the face different from color on the page to be presented in the border pattern Color.
Methods and apparatus of the present invention, the attribute of the document while the document of display, can be shown.User is seeing page During face, so that it may know the page properties of current document, so as to quickly carry out the electronic editing of next step, significantly improve efficiency.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 shows the flow chart of embodiment;
Fig. 2 shows the flow chart that border width is determined in embodiment;
Fig. 3 is shown shows its schematic diagram for interactive document on the page in embodiment;
Fig. 4 shows the schematic diagram of the portrait page in embodiment;
Fig. 5 shows the schematic diagram of the horizontal version page in embodiment;
Fig. 6 shows the apparatus structure block diagram in embodiment.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, the present invention is described in detail.
Referring to Fig. 1, embodiments of the invention comprise the following steps:
S11:The attribute for determining current document is interactive document;
S12:On the page of the current document, along the whole periphery of the page, attribute reflects according to predetermined dimensions After penetrating, the border pattern with one fixed width is formed;Wherein, the border belongs to interactive document for identifying the page.
By the method for the present invention, the attribute of the document while the document of display, can be shown.User is seeing the page When, you can the electronic editing of next step is carried out by the attribute of current document.
Preferably, also include before step S11:
Judge the attribute of the current document;
If it is determined that the attribute of the current document is document printing, then on the page of the current document, do not show Any pattern.It is, of course, also possible to show other patterns, belong to document printing to identify the document.
Preferably, the mapping process in step S12 includes:
Coordinate and predetermined border width according to the page, determine the coordinate of the border pattern;
Or the equipment according to the page is shown, determine the width of the border pattern.
First, the attribute information of the page of extraction, attribute information include:Page size coordinate, page-size, type page it is big Direction of small, page back gauge and paper etc..
In embodiment, by taking border pattern 1024 × 768px size pages of bar shaped as an example, the coordinate of border pattern is calculated Process include Fig. 2 shown in step:
S21:Referring to Fig. 3, page info page upper left point coordinates is obtained(X1, Y1)Page bottom right point coordinates(X2, Y2);
S22:According to the empirical value of different size pages set grey bottom boundaries to the width W1 of page top, to the following width of page Spend W2, to the width W3 on the page left side, to the width W4 on the right of page.
The arc radius R1 in the corner of border pattern is obtained according to the empirical value of different size pages.
The radius R2 of circular object is obtained according to the empirical value of different size pages.
S23:Calculate grey bottom object data information, grey bottom object upper left point coordinates(X3, Y3)Bottom right point coordinates(X4, Y4).
X3=X1-W3 Y3=Y1-W1
Coordinates computed(X4, Y4)When, it is necessary to judge the format of current page, if the portrait file shown in Fig. 4, then X4 =X2+W4 Y4=Y2+W2;
If the horizontal version file shown in Fig. 5, then X4=X2+W2 Y4=Y2+W4
S24:Calculate the circular object data circular object upper left point coordinates in Fig. 3(X5,Y5);
If the portrait file shown in Fig. 4, then
X5=(X1+X2)/2-R2
Y5=Y2+W2/2-R2
If the horizontal version file shown in Fig. 4, then
X5=X2+W2/2-R2
Y5=(Y1+Y2)/2-R2
In addition, during display page for different resolution, such as:480 × 320px size pages, it can also use upper The calculating process stated.
Preferably, in addition to the process of above-mentioned determination border width, equipment that can also be according to the page is shown, Determining the process of the width of the border pattern includes:
Such as:
Export the mark of the display device of multiple models and corresponding tick boxes;Wherein, each display device corresponding one The individual border width of itself;
Receive user to choose tick boxes, according to choosing for user, determine the border width of the display device.
In this way, user can simulate the display effect of the interactive document of display of a variety of equipment, to hold The follow-up electronic composition of row.
Preferably, the present invention also provides a kind of device that document properties are identified by changing page effect, including:
Attribute module, the attribute for determining current document are interactive document;
Display module, for the page in the current document, along the whole periphery of the page, according to predetermined chi After very little attribute mapping, the border pattern with one fixed width is formed;Wherein, the border pattern belongs to for identifying the page Interactive document.
Preferably, the display module includes:First/second mapping block, output module;
First mapping block, for after attribute module is defined as interactive document, according to the coordinate of the page, with And predetermined border width, determine the coordinate of the border pattern;
Or the second mapping mould, for after attribute module is defined as interactive document, according to showing setting for the page It is standby, determine the width of the border pattern;
The output module, for the page in the current document, according to the defeated of the first/second mapping block Go out result, form the border pattern with one fixed width.
Preferably, second mapping block includes:
Tick boxes module, mark and corresponding tick boxes for the display device that exports multiple models;Wherein, each The corresponding border width of itself of display device;
Receiving module, tick boxes are chosen for receiving user, according to choosing for user, determine the side of the display device Boundary's width.
Preferably, in addition to:
Judge module, for judging the attribute of the current document, the page for judging document is the attribute of document printing Or the attribute of interactive document;
Analysis module, for if it is determined that module determines that the attribute of the current document is the attribute of document printing, then existing On the page of the current document, any pattern is not shown.
Preferably, in addition to:Color module, for after the output module output boundary pattern, in the boundary graph The color different from color on the page is presented in case.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (8)

  1. A kind of 1. method for identifying document properties by changing page effect, it is characterised in that including:
    The attribute for determining current document is interactive document;
    On the page of the current document, along the whole periphery of the page, according to predetermined dimensions after attribute mapping, formed Border pattern with one fixed width;Wherein, the border pattern belongs to interactive document, the mapping for identifying the page Process include:Coordinate and predetermined border width according to the page, determine the coordinate of the border pattern;Or root Equipment according to the page is shown, determine the width of the border pattern.
  2. 2. according to the method for claim 1, it is characterised in that the equipment according to the page is shown, determine the border The process of the width of pattern includes:
    Export the mark of the display device of multiple models and corresponding tick boxes;Wherein, each display device corresponds to one certainly The border width of body;
    Receive user to choose tick boxes, according to choosing for user, determine the border width of the display device.
  3. 3. according to the method for claim 1, it is characterised in that also include:
    Judge the attribute of the current document;
    If it is determined that the attribute of the current document is document printing, then on the page of the current document, do not show any Pattern.
  4. 4. according to the method for claim 1, it is characterised in that in the color and the page that the border pattern is presented Color is different.
  5. A kind of 5. device that document properties are identified by changing page effect, it is characterised in that including:
    Attribute module, the attribute for determining current document are interactive document;
    Display module, for the page in the current document, along the whole periphery of the page, belong to according to predetermined dimensions Property mapping after, formed with one fixed width border pattern;Wherein, the border pattern belongs to interactive for identifying the page Document, the process of the mapping include:Coordinate and predetermined border width according to the page, determine the boundary graph The coordinate of case;Or the equipment according to the page is shown, determine the width of the border pattern.
  6. 6. device according to claim 5, it is characterised in that the display module includes:
    Tick boxes module, mark and corresponding tick boxes for the display device that exports multiple models;Wherein, each display The corresponding border width of itself of equipment;
    Receiving module, tick boxes are chosen for receiving user, according to choosing for user, determine that the border of the display device is wide Degree.
  7. 7. device according to claim 5, it is characterised in that also include:
    Judge module, for judging the attribute of the current document;
    Analysis module, for if it is determined that the attribute of the current document is document printing, then in the page of the current document On, any pattern is not shown.
  8. 8. device according to claim 5, it is characterised in that also include:Color module, for being in the border pattern The now color different from color on the page.
CN201310303670.6A 2013-07-18 2013-07-18 The method and apparatus for identifying document properties by changing page effect Expired - Fee Related CN104298653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310303670.6A CN104298653B (en) 2013-07-18 2013-07-18 The method and apparatus for identifying document properties by changing page effect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310303670.6A CN104298653B (en) 2013-07-18 2013-07-18 The method and apparatus for identifying document properties by changing page effect

Publications (2)

Publication Number Publication Date
CN104298653A CN104298653A (en) 2015-01-21
CN104298653B true CN104298653B (en) 2017-11-24

Family

ID=52318382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310303670.6A Expired - Fee Related CN104298653B (en) 2013-07-18 2013-07-18 The method and apparatus for identifying document properties by changing page effect

Country Status (1)

Country Link
CN (1) CN104298653B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1361960A (en) * 1999-08-21 2002-07-31 肯特里奇数字实验室 Legitimacy protection of electronic document and a printed copy thereof
US7127673B2 (en) * 1999-12-21 2006-10-24 Fujitsu Limited Electronic document display system
CN102722737A (en) * 2012-05-13 2012-10-10 河南大学 Temper-proofing method of paper document

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1361960A (en) * 1999-08-21 2002-07-31 肯特里奇数字实验室 Legitimacy protection of electronic document and a printed copy thereof
US7127673B2 (en) * 1999-12-21 2006-10-24 Fujitsu Limited Electronic document display system
CN102722737A (en) * 2012-05-13 2012-10-10 河南大学 Temper-proofing method of paper document

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ADOBE ACORBAT XI帮助和教程;ADOBE;《http://help.adobe.com/archive/cn/acrobat/XI/acrobat_reference.pdf》;20121015;第232-240页 *
PDF文件怎样加密;wangjinling117;《http://jingyan.baidu.com/article/a681b0dee5da593b19434668.html》;20110504;正文第2-11页 *
PDF文件怎样解密;wangjinling117;《http://jingyan.baidu.com/article/2a1383286272c1074b134f6e.html》;20110504;正文第1-6页 *

Also Published As

Publication number Publication date
CN104298653A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN105045775A (en) Method and apparatus for generating Excel document in designated format
US20130227407A1 (en) Method and device for displaying an electronic document
CN106528762B (en) Electronic map processing method and processing system for identifying interest points
CN105279228A (en) Report processing method and device based on extensible markup language
CN104915332A (en) Method and device for generating composing template
CN105930312A (en) Method and apparatus for editing printed receipt based on POS terminal
CN106557458A (en) Electronic composition method and apparatus
CN112668289A (en) Extraction method and device of nested table and storage medium
CN106484388B (en) Method and device for realizing user interface
CN106610829A (en) Webpage screenshot method and device
CN109656652B (en) Webpage chart drawing method, device, computer equipment and storage medium
CN103605521A (en) Method and device for realizing interface apposition
CN102736819B (en) Electronic document display method and device
WO2015003493A1 (en) Data recovery method and electronic device
CN110126458A (en) A kind of PCB silk-screen automatic adjusting method, device and storage medium
CN104516919B (en) One kind quotes annotation process method and system
CN104298653B (en) The method and apparatus for identifying document properties by changing page effect
CN105590241A (en) Self-adaptive electronic bill implementation method and system
CN101980133A (en) Method and system for detecting text selection region deviation of double-layer electronic file
CN106559455B (en) Form filling result feedback prompting method and device
US9600451B2 (en) Method, terminal, and server for displaying file
JP6377743B2 (en) Method and apparatus for building an intermediate character library
CN104572609B (en) The subfield composition method and device of electronic document
CN108108339B (en) A kind of method and device of the boundary PDF and grid lines mark
CN106095349B (en) A kind of signature Method of printing and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 5 floor

Patentee after: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee after: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: FOUNDER INFORMATION INDUSTRY HOLDINGS Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20220913

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171124

CF01 Termination of patent right due to non-payment of annual fee