CN110399105A - A kind of Method of printing and system of the map page - Google Patents
A kind of Method of printing and system of the map page Download PDFInfo
- Publication number
- CN110399105A CN110399105A CN201910649251.5A CN201910649251A CN110399105A CN 110399105 A CN110399105 A CN 110399105A CN 201910649251 A CN201910649251 A CN 201910649251A CN 110399105 A CN110399105 A CN 110399105A
- Authority
- CN
- China
- Prior art keywords
- page
- map
- printing
- map page
- screenshot
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1206—Improving or facilitating administration, e.g. print management resulting in increased flexibility in input data format or job format or job type
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1242—Image or content composition onto a page
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
- G06F3/1257—Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
Abstract
The invention belongs to replicate or labeling method technical field, the Method of printing and system of a kind of map page are disclosed, is write for showing the map page and loading the html page of corresponding region cartographic information according to point information;Obtain the map page for needing to print;Map sheet face is preloaded in the server by PhantomJS tool generates page screenshot;Page screenshot is inserted into preset printing template;Mimeograph documents are generated based on server, print the word document comprising map page info screenshot of generation.The Method of printing and system of the map page provided by the invention can solve the problems, such as map page print poor compatibility, user experience difference and low efficiency, and have the characteristics that high efficiency, versatility, practicability, reusability.
Description
Technical field
The invention belongs to replicate or the Method of printing of labeling method technical field more particularly to a kind of map page and be
System.
Background technique
Currently, the prior art commonly used in the trade is such that
It is usually used what the included printing function of Computer Browser was printed, due to depending on the browser of user
Environment will lead to Railway Project below.
The printing of the existing map page is all based on the included page print function of browser, and the no dedicated map page is beaten
Impression method, tool or system.
The page that when carrying out map page print using browser, browser compatibility is poor, prints can not redjustment and modification and
It is unable to bulk print.The map page is printed using existing method, user experience is poor, and treatment effeciency is low.
Problem of the existing technology is:
The prior art is without dedicated map page Method of printing, tool or system.The page that browser compatibility is poor, prints
Redjustment and modification and bulk print can not be unable to.User experience is poor, and treatment effeciency is low.
Solve the difficulty of above-mentioned technical problem:
Difficult point essentially consist in client browser to be solved rely on the problem of, from client realize printing function switch to from
Server-side is printed.
Solve the meaning of above-mentioned technical problem:
It solves the problems, such as that above-mentioned technical problem is able to solve map printing compatibility, can be realized the function of bulk print,
User experience can be greatly promoted.
Summary of the invention
In view of the problems of the existing technology, the present invention provides the Method of printings and system of a kind of map page.This hair
It is bright that the problems in background technique has been able to solve using the function of being printed based on server-side.
The invention is realized in this way a kind of Method of printing of the map page specifically includes:
Step 1 is write for showing the map page and loading html pages of corresponding region cartographic information according to point information
Face.
Step 2 obtains the map page for needing to print.
Step 3 preloads map sheet face by PhantomJS tool in the server and generates page screenshot.
Page screenshot is inserted into preset printing template by step 4.
Step 5 generates mimeograph documents based on server, prints the word text comprising map page info screenshot of generation
Shelves.
Further, the step 1 specifically includes:
Setting needs the map page info printed, and uses the ground such as state's plat, hypergraph, Baidu map, Google Maps
Figure control and correlation API load specified map area and render exhibition cartographic information.
Further, in step 4, the printing template is made using the word of Microsoft.
Further, the step 5 specifically includes:
The word document comprising cartographic information of generation is returned into user, user is printed by the word that computer carries
Function is printed.
Another object of the present invention is to provide a kind of map page print system, specifically include:
Html page writes module, map page acquisition module, page screenshot generation module, template generation module, printing
Execution module.
Html page writes module: needing the map page info printed and write to be loaded according to point information for setting
The cartographic information of corresponding region and the html page for showing cartographic information.
Map page acquisition module: for obtaining the map page for needing to print.
Page screenshot generation module: page is generated for preloading map sheet face in the server by PhantomJS tool
Face screenshot.
Template generation module: for using the word of Microsoft to make printing template, and page screenshot is inserted into impression block
In plate.
Print execution module: for generating mimeograph documents based on server and printing cutting comprising map page info for generation
The word document of figure.
Further, the map page print system is deployed on window system server.
Another object of the present invention is to provide a kind of map page print routine, the map page print routine is realized
The Method of printing of the map page.
Another object of the present invention is to provide a kind of processing of the information data of Method of printing for realizing the map page
Terminal.
Another object of the present invention is to provide a kind of computer readable storage mediums, including instruction, when it is in computer
When upper operation, so that computer executes the Method of printing of the map page.
In conclusion advantages of the present invention and good effect are as follows:
The Method of printing and system of the map page provided by the invention can solve map page print poor compatibility, user's body
The problem of property tested difference and low efficiency, and have the characteristics that high efficiency, versatility, practicability, reusability.
Detailed description of the invention
Fig. 1 is map page Method of printing flow chart provided in an embodiment of the present invention.
Fig. 2 is map page Method of printing schematic diagram provided in an embodiment of the present invention.
Fig. 3 is map page print system structural schematic diagram provided in an embodiment of the present invention.
In figure: 1, html page writes module;2, map page acquisition module;3, page screenshot generation module;4, template
Generation module;5, print execution module.
Fig. 4 is the map page schematic diagram of map page Method of printing ready-to-print provided in an embodiment of the present invention.
Fig. 5 is the word document information schematic diagram that map page Method of printing provided in an embodiment of the present invention generates.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiments, to the present invention
It is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to
Limit the present invention.
The printing of the existing map page is all based on the included page print function of browser, and the no dedicated map page is beaten
Impression method, tool or system.The page that when carrying out map page print using browser, browser compatibility is poor, prints can not
Redjustment and modification and it is unable to bulk print.The map page is printed using existing method, user experience is poor, and treatment effeciency is low.
To solve the above problems, elaborating with reference to the accompanying drawing to technical solution of the present invention.
As Figure 1-Figure 2, map page Method of printing provided in an embodiment of the present invention specifically includes:
S101, setting needs the map page info printed, using state's plat, hypergraph, Baidu map, Google Maps etc.
Map OCX and correlation API load specified map area and render exhibition cartographic information.Write for show the map page and according to
The html page of point information load corresponding region cartographic information.
S102 obtains the map page for needing to print.
S103 preloads map sheet face by PhantomJS tool in the server and generates page screenshot.
Page screenshot is inserted into the printing template for advancing with Microsoft word production by S104.
S105 generates mimeograph documents based on server, the word document comprising map page info screenshot of generation is returned
Back to user, printed by the word printing function that computer carries.
As shown in figure 3, the map page print system of the embodiment of the present invention specifically includes:
Html page write module 1, map page acquisition module 2, page screenshot generation module 3, template generation module 4,
Print execution module 5.
Html page writes module 1: needing the map page info printed and write to be added according to point information for setting
It carries the cartographic information of corresponding region and shows the html page of cartographic information.
Map page acquisition module 2: for obtaining the map page for needing to print.
Page screenshot generation module 3: page is generated for preloading map sheet face in the server by PhantomJS tool
Face screenshot.
Template generation module 4: for using the word of Microsoft to make printing template, and page screenshot is inserted into impression block
In plate.
Print execution module 5: for based on server generate mimeograph documents and print generation comprising map page info
The word document of screenshot.
The map page print system of the embodiment of the present invention is deployed on window system server.
Technical effect of the invention is described further combined with specific embodiments below.
Embodiment 1:
Map page Method of printing provided in an embodiment of the present invention specifically includes:
Step S1, the html page for showing the map page is write.
Wherein, specified map area is loaded using API such as state's plat, Baidu map, Google Maps.Baidu map API
It is a set of application programming interfaces based on Baidu map provided for developer, including JavaScript, iOS, Andriod, quiet
The miscellaneous editions such as state map, Web service provide base map, location finding, Perimeter, public transport are driven navigation, positioning clothes
The abundant functions such as business, geocoding and inverse geocoding.
Step S2, the cartographic information for needing to print is obtained.
Step S3, map page screenshot is generated by PhantomJS, as shown in Figure 4.PhantomJS- is one based on clothes
The JavaScript API at business device end, it supports web without browser comprehensively, can be used for page automation, network prison
It surveys, Web page screen-cutting, and without interface operation etc., can be considered server-side browser.
Step S4, page screenshot is inserted into word template, it is as shown in Figure 5 generates word document information.
Step S5, the word document comprising map page screenshot that printing generates.
Below with reference to effect, the invention will be further described.
Below table is traditional map printing function and printing function comparison data of the present invention.
It is printed based on client | It is printed based on server-side | |
Compatibility | Difference, support section browser | Height supports all browsers |
Bulk print | It does not support | It supports |
Page modification | It does not support | It supports |
Switch to word | It does not support | It supports |
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When using entirely or partly realizing in the form of a computer program product, the computer program product include one or
Multiple computer instructions.When loading on computers or executing the computer program instructions, entirely or partly generate according to
Process described in the embodiment of the present invention or function.The computer can be general purpose computer, special purpose computer, computer network
Network or other programmable devices.The computer instruction may be stored in a computer readable storage medium, or from one
Computer readable storage medium is transmitted to another computer readable storage medium, for example, the computer instruction can be from one
A web-site, computer, server or data center pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)
Or wireless (such as infrared, wireless, microwave etc.) mode is carried out to another web-site, computer, server or data center
Transmission).The computer-readable storage medium can be any usable medium or include one that computer can access
The data storage devices such as a or multiple usable mediums integrated server, data center.The usable medium can be magnetic Jie
Matter, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid
State Disk (SSD)) etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (8)
1. a kind of Method of printing of the map page, which is characterized in that the map page Method of printing the following steps are included:
Step 1 obtains the page for showing map and loads the html page of corresponding region cartographic information according to point information;
Step 2 obtains the map page of printing;
Step 3 preloads the map page and generates page screenshot;
Page screenshot is inserted into preset printing template by step 4;
Step 5 generates the word document mimeograph documents comprising map page info screenshot based on server.
2. the Method of printing of the map page as described in claim 1, which is characterized in that the step 1 specifically includes:
The map page info of printing is set, and using state's plat, hypergraph, Baidu map, Google Maps Map OCX and phase
API is closed to load specified map area and render exhibition cartographic information.
3. the Method of printing of the map page as described in claim 1, which is characterized in that the step 5 further comprises:
The word document comprising cartographic information of generation is returned into user and is printed.
4. a kind of map page print system for the Method of printing for implementing the map page described in claim 1, which is characterized in that institute
Map page print system is stated to specifically include:
Html page writes module, loads corresponding region according to point information for setting the map page info of printing and writing
Cartographic information and show cartographic information the html page;
Map page acquisition module, for obtaining the map page of printing;
Page screenshot generation module generates the page section for preloading map sheet face in the server by PhantomJS tool
Figure;
Template generation module makes printing template by using word, and page screenshot is inserted into printing template;
Print execution module, for based on server generate mimeograph documents and print generation comprising map page info screenshot
Word document.
5. map page print system as claimed in claim 4, which is characterized in that the map page print system is deployed in
On window system server.
6. a kind of map page print routine, which is characterized in that the map page print routine realizes that claims 1 to 3 is appointed
The Method of printing of the map page described in meaning one.
7. a kind of information data processing terminal for realizing the Method of printing of the map page described in claims 1 to 3 any one.
8. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer is executed as weighed
Benefit requires the Method of printing of the map page described in 1-3 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910649251.5A CN110399105B (en) | 2019-07-18 | 2019-07-18 | Method and system for printing map page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910649251.5A CN110399105B (en) | 2019-07-18 | 2019-07-18 | Method and system for printing map page |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110399105A true CN110399105A (en) | 2019-11-01 |
CN110399105B CN110399105B (en) | 2022-11-22 |
Family
ID=68324527
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910649251.5A Active CN110399105B (en) | 2019-07-18 | 2019-07-18 | Method and system for printing map page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110399105B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1537298A (en) * | 2001-03-21 | 2004-10-13 | Ƥ����˹ϵͳ��˾ | System and method for printing over networks via print server |
US8786875B1 (en) * | 2010-03-26 | 2014-07-22 | Open Invention Network, Llc | Systems and methods for printing a document from a mobile communication device |
CN104461412A (en) * | 2014-12-30 | 2015-03-25 | 广州视源电子科技股份有限公司 | Web page designated area printing method and system |
CN108572805A (en) * | 2018-03-20 | 2018-09-25 | 北京明朝万达科技股份有限公司 | Document printing method and system |
CN109960478A (en) * | 2019-04-02 | 2019-07-02 | 武大吉奥信息技术有限公司 | A kind of Web map printing method for previewing and device |
-
2019
- 2019-07-18 CN CN201910649251.5A patent/CN110399105B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1537298A (en) * | 2001-03-21 | 2004-10-13 | Ƥ����˹ϵͳ��˾ | System and method for printing over networks via print server |
US8786875B1 (en) * | 2010-03-26 | 2014-07-22 | Open Invention Network, Llc | Systems and methods for printing a document from a mobile communication device |
CN104461412A (en) * | 2014-12-30 | 2015-03-25 | 广州视源电子科技股份有限公司 | Web page designated area printing method and system |
CN108572805A (en) * | 2018-03-20 | 2018-09-25 | 北京明朝万达科技股份有限公司 | Document printing method and system |
CN109960478A (en) * | 2019-04-02 | 2019-07-02 | 武大吉奥信息技术有限公司 | A kind of Web map printing method for previewing and device |
Also Published As
Publication number | Publication date |
---|---|
CN110399105B (en) | 2022-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9239719B1 (en) | Task management system | |
US8615499B2 (en) | Estimating data reduction in storage systems | |
CN109683998B (en) | Internationalization realization method, device and system | |
US20100241948A1 (en) | Overriding XSLT Generation | |
US20060230066A1 (en) | Using schemas to generate application specific business objects for use in an integration broker | |
RU2008121949A (en) | REMOTE READ-ACCESS ACCESS TO VARIOUS DATA STORES | |
CN108923997B (en) | Cloud service node automatic testing method and device based on python | |
USRE48851E1 (en) | Thin client for mapping system | |
US20100138397A1 (en) | System and method for providing e-book | |
US11093705B2 (en) | Apparatus and method of verifying simultaneous edit match for markup language-based document | |
CN104008042A (en) | UI (user interface) automated testing method, system and device | |
CN106776779B (en) | Method for generating entity file by JSON data based on Mac platform | |
CN103733199A (en) | Mobile APP for design management framework | |
US20100318889A1 (en) | Automatic Insertion of Data from Web Forms into Documents | |
CN110399105A (en) | A kind of Method of printing and system of the map page | |
CN103473106A (en) | Method and system for generating page | |
CN108259616B (en) | Session sharing method and device, electronic equipment and readable storage medium | |
CN109240660B (en) | Access method of advertisement data, storage medium, electronic device and system | |
CN113656041A (en) | Data processing method, device, equipment and storage medium | |
JP2007018091A (en) | Information processor, information processing system, application development support method and program | |
CN110737636B (en) | Data import method, device and equipment | |
CN112486460A (en) | Method, system, device and medium for automatically importing interface document | |
CN110309455B (en) | Method, device and equipment for displaying OLE vector diagram | |
CN111124482A (en) | Method and device for configuring file information | |
CN111262727A (en) | Service capacity expansion method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |