CN102693217A - Automatic layout method by table font and paper size analysis - Google Patents

Automatic layout method by table font and paper size analysis Download PDF

Info

Publication number
CN102693217A
CN102693217A CN2012101480543A CN201210148054A CN102693217A CN 102693217 A CN102693217 A CN 102693217A CN 2012101480543 A CN2012101480543 A CN 2012101480543A CN 201210148054 A CN201210148054 A CN 201210148054A CN 102693217 A CN102693217 A CN 102693217A
Authority
CN
China
Prior art keywords
font
computer
paper
width
relatively
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
Application number
CN2012101480543A
Other languages
Chinese (zh)
Other versions
CN102693217B (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.)
91550 TROOPS PLA
Original Assignee
91550 TROOPS PLA
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 91550 TROOPS PLA filed Critical 91550 TROOPS PLA
Priority to CN201210148054.3A priority Critical patent/CN102693217B/en
Publication of CN102693217A publication Critical patent/CN102693217A/en
Application granted granted Critical
Publication of CN102693217B publication Critical patent/CN102693217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention belongs to the technical field of automatic layout, and particularly relates to an automatic layout method for tables. The technical scheme includes that the automatic layout method by table font and paper size analysis is used for universal computers and includes the steps: A, presetting a used font number in a computer; B, presetting used a paper size and margins in the computer; C, acquiring basic parameters of a table by the aid of the computer; and D, performing automatic layout. Report style design and paper selection are performed by the computer automatically according to the table structure so as to meet layout requirements, and artificial layout is reduced greatly. The automatic layout method by table font and paper size analysis can be used as a report subsystem of a general management information system and as an independent report tool.

Description

Form wastepaper with characters written or printed on it dimension analysis automatic composing method
Technical field
The invention belongs to the automatic typesetting technical field, particularly a kind of automatic composing method to form.
Background technology
Continuous development along with digitizing technique; All trades and professions are increasing to the statistical demand amount of various data, to the calculating of mass data and analyze require especially accurately with flexibly, it is finally added up and analysis result is all exported with report form; These information categories are numerous; Form is different, and data item number and the data length dosed in the form also have nothing in common with each other, and is upwards different in length and breadth at font selection, paper size and paper when these differences directly cause setting type.If adopt artificial the composing, then often need adjust more loaded down with trivial details and poor efficiency repeatedly.
Summary of the invention
The objective of the invention is: provide a kind of, can through analytical calculation, adjust the vertical, horizontal of font size, paper size and the space of a whole page automatically, realize automatic typesetting according to the data structure in the form in the method for general-purpose computer to the form automatic typesetting.
Technical scheme of the present invention is: a kind of form wastepaper with characters written or printed on it width analysis automatic composing method, and it uses general-purpose computer, and may further comprise the steps:
A. in computer, select used font number
Select following 8 kinds of fonts number for use:
Figure BSA00000716500600011
B. in computer, select used paper and back gauge
Select following 5 kinds of paper for use:
Figure BSA00000716500600021
Set: top margin T, bottom margin B, the left side is apart from L, rightmargin R;
C. computer obtains the form basic parameter
Automatically obtained or the following form basic parameter of artificial input by computer: each tab takies width b; Title row/data rows number n; Contain character number p in the i title row i, i=1,2 ..., n; Contain character number m in the i data rows i, i=1,2 ..., n;
D. automatic typesetting
D1. computer calculates:
Every capable tab takies overall width: S=(n+1) b;
After selecting for use sequence number to be the font number of j:
Every capable title row take the width summation: P = Σ i = 1 n C j p i + S ;
The each row of data row take the width summation: M = Σ i = 1 n C j m i + S ;
After selecting for use sequence number to be the paper of k:
The breadth extreme of form: Z when vertically setting type 1=W k-L-R;
The breadth extreme of form: Z when laterally setting type 2=E k-T-B;
D2.P and M relatively get big value and give variable d;
D3.d and Z 1Relatively, if .d is greater than Z 1, then font is dwindled No. one, return the d value that the D1 step must make new advances after, continue relatively to be less than or equal to Z up to d 1, then number vertically set type along paper according to this font; If it is the most small size that font narrows down to, d is still greater than Z 1, then begin .d and Z from the font maximum number 2Relatively, repeat above-mentioned steps, thereby laterally set type; Change to the most small sizely once more like font, d is still greater than Z 2, then prompting " changing large size paper ";
D4. return D1 step continuation automatic typesetting after changing large size paper.
Utilize the present invention to design the form style automatically and to select paper by computer, reach the composing requirement, alleviated the trouble of artificial composing greatly according to tableau format.Both can be used as independent report tool again and use as the Report Subsystem of general management infosystem.
Embodiment
A kind of form wastepaper with characters written or printed on it width analysis automatic composing method, it uses general-purpose computer, and may further comprise the steps:
A. in computer, select used font number
Select following 8 kinds of fonts number for use:
Figure BSA00000716500600031
B. in computer, select used paper and back gauge
Select following 5 kinds of paper for use:
Figure BSA00000716500600032
Set: top margin T, bottom margin B, the left side is apart from L, rightmargin R;
C. computer obtains the form basic parameter
Automatically obtained or the following form basic parameter of artificial input by computer: each tab takies width b; Title row/data rows number n; Contain character number p in the i title row i, i=1,2 ..., n; Contain character number m in the i data rows i, i=1,2 ..., n;
D. automatic typesetting
D1. computer calculates:
Every capable tab takies overall width: S=(n+1) b;
After selecting for use sequence number to be the font number of j:
Every capable title row take the width summation: P = Σ i = 1 n C j p i + S ;
The each row of data row take the width summation: M = Σ i = 1 n C j m i + S ;
After selecting for use sequence number to be the paper of k:
The breadth extreme of form: Z when vertically setting type 1=W k-L-R;
The breadth extreme of form: Z when laterally setting type 2=E k-T-B;
D2.P and M relatively get big value and give variable d;
D3.d and Z 1Relatively, if .d is greater than Z 1, then font is dwindled No. one, return the d value that the D1 step must make new advances after, continue relatively to be less than or equal to Z up to d 1, then number vertically set type along paper according to this font; If it is the most small size that font narrows down to, d is still greater than Z 1, then begin .d and Z from the font maximum number 2Relatively, repeat above-mentioned steps, thereby laterally set type; Change to the most small sizely once more like font, d is still greater than Z 2, then prompting " changing large size paper ";
D4. return D1 step continuation automatic typesetting after changing large size paper.

Claims (1)

1. form wastepaper with characters written or printed on it width analysis automatic composing method, it uses general-purpose computer, and may further comprise the steps:
A. in computer, select used font number
Select following 8 kinds of fonts number for use:
Figure FSA00000716500500011
B. in computer, select used paper and back gauge
Select following 5 kinds of paper for use:
Set: top margin T, bottom margin B, the left side is apart from L, rightmargin R;
C. computer obtains the form basic parameter
Automatically obtained or the following form basic parameter of artificial input by computer: each tab takies width b; Title row/data rows number n; Contain character number p in the i title row i, i=1,2 ..., n; Contain character number m in the i data rows i, i=1,2 ..., n;
D. automatic typesetting
D1. computer calculates:
Every capable tab takies overall width: S=(n+1) b;
After selecting for use sequence number to be the font number of j:
Every capable title row take the width summation: P = Σ i = 1 n C j p i + S ;
The each row of data row take the width summation: M = Σ i = 1 n C j m i + S ;
After selecting for use sequence number to be the paper of k:
The breadth extreme of form: Z when vertically setting type 1=W k-L-R;
The breadth extreme of form: Z when laterally setting type 2=E k-T-B;
D2.P and M relatively get big value and give variable d;
D3.d and Z 1Relatively, if .d is greater than Z 1, then font is dwindled No. one, return the d value that the D1 step must make new advances after, continue relatively to be less than or equal to Z up to d 1, then number vertically set type along paper according to this font; If it is the most small size that font narrows down to, d is still greater than Z 1, then begin .d and Z from the font maximum number 2Relatively, repeat above-mentioned steps, thereby laterally set type; Change to the most small sizely once more like font, d is still greater than Z 2, then prompting " changing large size paper ";
D4. return D1 step continuation automatic typesetting after changing large size paper.
CN201210148054.3A 2012-05-15 2012-05-15 Automatic layout method by table font and paper size analysis Active CN102693217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210148054.3A CN102693217B (en) 2012-05-15 2012-05-15 Automatic layout method by table font and paper size analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210148054.3A CN102693217B (en) 2012-05-15 2012-05-15 Automatic layout method by table font and paper size analysis

Publications (2)

Publication Number Publication Date
CN102693217A true CN102693217A (en) 2012-09-26
CN102693217B CN102693217B (en) 2014-11-26

Family

ID=46858674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210148054.3A Active CN102693217B (en) 2012-05-15 2012-05-15 Automatic layout method by table font and paper size analysis

Country Status (1)

Country Link
CN (1) CN102693217B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595396A (en) * 2018-03-28 2018-09-28 福建榕基软件工程有限公司 A kind of automatic generation method and terminal of resume

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1336603A (en) * 2000-07-28 2002-02-20 西门子公司 Method for outputing table and device thereof
US6639611B1 (en) * 1999-12-15 2003-10-28 Sun Microsystems, Inc. System and method for efficient layout of a display table
CN101013418A (en) * 2007-02-15 2007-08-08 北京大学 Auto-adaptive typesetting method for word in textbox
CN101833429A (en) * 2009-03-10 2010-09-15 佳能株式会社 Print controlling apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6639611B1 (en) * 1999-12-15 2003-10-28 Sun Microsystems, Inc. System and method for efficient layout of a display table
CN1336603A (en) * 2000-07-28 2002-02-20 西门子公司 Method for outputing table and device thereof
CN101013418A (en) * 2007-02-15 2007-08-08 北京大学 Auto-adaptive typesetting method for word in textbox
CN101833429A (en) * 2009-03-10 2010-09-15 佳能株式会社 Print controlling apparatus and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595396A (en) * 2018-03-28 2018-09-28 福建榕基软件工程有限公司 A kind of automatic generation method and terminal of resume
CN108595396B (en) * 2018-03-28 2023-08-04 福建榕基软件工程有限公司 Automatic resume generation method and terminal

Also Published As

Publication number Publication date
CN102693217B (en) 2014-11-26

Similar Documents

Publication Publication Date Title
CN101876967B (en) Method for generating PDF text paragraphs
CN108470021A (en) The localization method and device of table in PDF document
CN110163030B (en) PDF framed table extraction method based on image information
CN109634992B (en) A kind of structure of report decomposition method, report form generation method, device
CN102722475A (en) Method for converting form in portable document format (PDF) document into Excel form
CN101706771A (en) Template-based intelligent format checking method aiming at Word document
US8773712B2 (en) Repurposing a word processing document to save paper and ink
CN104951429A (en) Recognition method and device for page headers and page footers of format electronic document
CN102779118A (en) Paper typesetting method and system
US20150161486A1 (en) Determining an object location relative to a digital document
CN109840278A (en) Histogram data switching control method, device, computer equipment and storage medium
CN110765739A (en) Method for extracting table data and chapter structure from PDF document
CN105320734A (en) Web page core content extraction method
CN101470698B (en) Layout method and corresponding system for symbol of sending organizations
CN102693217B (en) Automatic layout method by table font and paper size analysis
CN110991152A (en) Method and system for step-by-step data acquisition and automatic summarization
US20200026749A1 (en) Pdf extraction with text-based key
CN105183709B (en) A kind of EXCEL preliminary budgets tabular matter method
CN110377559B (en) PDF file data extraction method, device and storage medium
CN108595396A (en) A kind of automatic generation method and terminal of resume
CN102467353B (en) Document printing method and computer
CN106273470B (en) Three-dimensional printing device and its print data storage method
CN104317600B (en) A kind of configurable curve drawing generating method and system
CN103488619B (en) Method and device for processing document file
CN102541551B (en) A kind of easy-to-use page report design method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant