CN107402928A - A kind of document rendering intent - Google Patents

A kind of document rendering intent Download PDF

Info

Publication number
CN107402928A
CN107402928A CN201610338647.4A CN201610338647A CN107402928A CN 107402928 A CN107402928 A CN 107402928A CN 201610338647 A CN201610338647 A CN 201610338647A CN 107402928 A CN107402928 A CN 107402928A
Authority
CN
China
Prior art keywords
file
vector
bitmap
client
bitmaps
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.)
Pending
Application number
CN201610338647.4A
Other languages
Chinese (zh)
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.)
Shanghai Huaqing Information Technology Co Ltd
Original Assignee
Shanghai Huaqing Information Technology 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 Shanghai Huaqing Information Technology Co Ltd filed Critical Shanghai Huaqing Information Technology Co Ltd
Priority to CN201610338647.4A priority Critical patent/CN107402928A/en
Publication of CN107402928A publication Critical patent/CN107402928A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of document rendering intent, including:Obtain cad file;Cad file is divided into multiple vector files according to picture;Each vector file is rendered into the bitmap of fixed dimension, and the index to all bitmaps is established according to the position relationship between corresponding vector file;Client file extent to display is obtained, and according to the index to all bitmaps of foundation, transfers corresponding bitmap and is sent to client progress tiled display.Compared with prior art, client of the present invention is shown by pictorial manner to cad file, when simply checking or mark, can meet to require, while can greatly improve display accelerating velocity of the cad file in Web or APP for document at some.

Description

A kind of document rendering intent
Technical field
The present invention relates to a kind of web Renderings, more particularly, to a kind of document rendering intent.
Background technology
With the development of Internet technology, cloud storage and cloud computing are applied more and more widely year by year, and document is deposited High in the clouds is stored up, carries out some team collaborations of Multipoint synchronous, because traditional client has the defects of clumsy, some are right Simple in document checks or marked, and Web has the advantages of cross-platform in addition, and designer or clerical workforce are past Toward being more prone to conduct interviews by Web modes and preview.
For some simple documents, such as text document and word document, realizing for online preview is more convenient, But for some documents such as cad file, because size is larger, geometric element is very more, current If uneasiness plugs part in Web browser Rendering, it is difficult to carry out rendering for efficient quick.And plug-in unit is installed It is difficult compatible a variety of browsers again.Therefore the online browse technology of current cad file is all more poorly efficient.
The content of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide a kind of document side of rendering Method.
The purpose of the present invention can be achieved through the following technical solutions:
In certain embodiments:A kind of document rendering intent, including:Obtain cad file;By cad file Multiple vector files are divided into according to picture;Each vector file is rendered into the bitmap of fixed dimension, and according to Position relationship between corresponding vector file establishes the index to all bitmaps;Obtain client file to display Scope, and according to the index to all bitmaps of foundation, transfer corresponding to bitmap be sent to client to carry out splicing aobvious Show.
In certain embodiments:A kind of document rendering intent, including:Obtain cad file;It is preloaded into client Scaling that may be present during the cad file is shown, and is directed to each scaling, by cad file Multiple vector files are divided into according to picture, obtain multiple vector file set;
For each vector file set:All vector files in the vector file set are rendered into fixed ruler Very little bitmap, and the index according to the position relationship foundation between corresponding vector file to all bitmaps;Obtain client Scaling to display and file extent are held, and according to the index to all bitmaps of foundation, is transferred corresponding Bitmap is sent to client and carries out tiled display.
In certain embodiments:A kind of document rendering intent, including:Obtain cad file;By cad file Multiple vector files are divided into according to picture;
Each vector file is rendered into the bitmap of fixed dimension, and closed according to the position between corresponding vector file System establishes the index to all bitmaps;Client is according to its file extent to display, according to foundation to all The index of bitmap, transfer corresponding bitmap from server and carry out tiled display.
In certain embodiments:A kind of document rendering intent, including:Obtain cad file;It is preloaded into client Scaling that may be present during the cad file is shown, and is directed to each scaling, by cad file Multiple vector files are divided into according to picture, obtain multiple vector file set;For each vector file set: All vector files in the vector file set are rendered into the bitmap of fixed dimension, and according to corresponding vector file Between position relationship establish to the indexes of all bitmaps;Client is according to its scaling and file to display Scope, according to the index to all bitmaps of foundation, transfer corresponding bitmap from server and carry out tiled display.
In the above method, the size of bitmap is determined based on default display resolution.
The size of the preferable bitmap is the 1/n of default display resolution2, wherein n is positive integer, more there is choosing , the n is 4.
Compared with prior art, the present invention has advantages below:
1) client is shown by pictorial manner to cad file, is checked at some for the simple of document Or during mark, can meet to require, while it is aobvious in Web or APP to greatly improve cad file Show accelerating velocity.
2) most calculating and render any plug-in unit need not be installed in server-side processes, client.
3) cad file is first divided into multiple vector files according to picture, then carries out subsequent treatment, Ke Yi great The big size for reducing committed memory when generating bitmap, cad file can be more in the process that server end is cut Increase effect.
4) by way of default display resolution, the cutting times brought by resolution ratio disunity can be reduced Excessively, the problem of bitmap quantity of generation is excessive, the load of server can be significantly reduced.
5) by be designed and sized to default integer square point the one of bitmap, follow-up tiled display can be facilitated, And n is related to 4, and one can avoid the unsharp problem of picture brought because bitmap size is excessive, and two The data redundancy because bitmap size is too small, brought can be avoided, the problem of in turn resulting in the wasting of resources.
Brief description of the drawings
Fig. 1 is the key step schematic flow sheet of the present invention;
Fig. 2 is that cad file splits schematic diagram.
Embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with the technology of the present invention side Implemented premised on case, give detailed embodiment and specific operating process, but the protection model of the present invention Enclose and be not limited to following embodiments.
Embodiment 1:
Cad file in uploading onto the server can show that client can be Web by preview is carried out in client Browser can also be APP (application program), and this application provides a kind of document rendering intent, it is possible to achieve visitor Quick display, including step are realized for the complicated super large file as CAD in family end:
Server first obtains cad file 101;
Server is preloaded into client and shows scaling that may be present during the cad file 101, such as Fig. 2 institutes Show, and be directed to each scaling, cad file 101 is divided into multiple vector files 102 according to picture, Multiple vector files 102 are obtained to gather, wherein:Scaling that may be present can design certainly when client is shown Dynamic algorithm generation, can also be from the mode of its exterior typing;
Gather for each vector file 102:All vector files 102 during the vector file 102 is gathered The bitmap of fixed dimension is rendered into, and is established according to the position relationship between corresponding vector file 102 to all bitmaps Index, wherein, the size of bitmap determines that the size of preferable bitmap is default based on default display resolution Display resolution 1/n2, wherein n is positive integer, more there is choosing, n 4.By presetting display resolution Mode, can reduce that the cutting times brought by resolution ratio disunity are excessive, the bitmap quantity of generation is excessive Problem, the load of server can be significantly reduced;
Client sends its scaling to display and file extent to server, by server according to foundation The index to all bitmaps, transfer corresponding to bitmap be sent to client carry out tiled display.
Idiographic flow with a specific cad file section case as shown in figure 1, be described in detail below:
S1:Cad file is obtained, sets default display resolution as 1024*1024, while design maximum support 4096*4096 sizes are shown, to meet under enough multiplication factors to the display precision of details;
S2:Scaling that may be present is calculated, scaling is represented with r, because 4096 be four times of 1024, Therefore r minimum 0.25, while in order to reduce data redundancy, r are up to 1.0, centre can arbitrarily choose it is several, In the present embodiment, it is 1.0,0.5,0.25 to select r;
S3:Scaling r is taken out, takes r=1.0 first;
S4:Cutting CAD is the small vector file of high a width of (16r) * (16r), wherein 16 be 4096 relative In the multiple of bitmap size;
S5:Small vector file is rendered into 256*256 picture;For ratio r=1.0, share: 16*16=256 pieces;
S6:By r=1.0 section, from left to right numbering is from top to bottom:
R1.0_0_0.jpg, r1.0_0_1.jpg ..., r1.0_0_15.jpg,;
R1.0_1_0.jpg, r1.0_1_1.jpg ..., r1.0_1_15.jpg,;
R1.0_15_0.jpg, r1.0_15_1.jpg ..., r1.0_15_15.jpg,;
S3 is gone to step, establishes the index for each scaling successively.
Then client is sent to server according to its scaling to display and file extent, by server root According to the index to all bitmaps of foundation, transfer corresponding bitmap and be sent to client progress tiled display.
Embodiment 2:
In order to avoid the present embodiment obscures, for identical thinking or step in embodiment 1, the present embodiment is not It is described in detail again.
In the present embodiment, index is not being established for different scaled sizes, for each cad file, only built A set of index is found, and has client to introduce row Zoom display according to the lasso trick.This mode can reduce server Calculate and store load, but the requirement to client can be improved.
Embodiment 3:
In order to avoid the present embodiment obscures, for identical thinking or step in embodiment 1, the present embodiment is not It is described in detail again.
Cad file is converted to one or more big bitmaps by the present embodiment according to scaling in advance, such as 4096*4096 to 1024*1024 bitmap,
But major bitmap is cut again and establishes index.
Although process is simple by the way of in the present embodiment, clothes can very be expended by being converted into the process of big bitmap The resource of business device, can cause to take substantial amounts of internal memory.

Claims (7)

1. a kind of document rendering intent, it is characterised in that including step:
Obtain cad file;
Cad file is divided into multiple vector files according to picture;
Each vector file is rendered into the bitmap of fixed dimension, and closed according to the position between corresponding vector file System establishes the index to all bitmaps;
Client file extent to display is obtained, and according to the index to all bitmaps of foundation, is transferred correspondingly Bitmap be sent to client carry out tiled display.
2. a kind of document rendering intent, it is characterised in that including step:
Obtain cad file;
It is preloaded into client and shows scaling that may be present during the cad file, and is directed to each pantograph ratio Example, is divided into multiple vector files according to picture by cad file, obtains multiple vector file set;
For each vector file set:All vector files in the vector file set are rendered into fixed ruler Very little bitmap, and the index according to the position relationship foundation between corresponding vector file to all bitmaps;
Client scaling to display and file extent are obtained, and according to the rope to all bitmaps of foundation Draw, transfer corresponding bitmap and be sent to client progress tiled display.
3. a kind of document rendering intent, it is characterised in that including step:
Obtain cad file;
Cad file is divided into multiple vector files according to picture;
Each vector file is rendered into the bitmap of fixed dimension, and closed according to the position between corresponding vector file System establishes the index to all bitmaps;
Client is according to its file extent to display, according to the index to all bitmaps of foundation, from server Bitmap carries out tiled display corresponding to transferring.
4. a kind of document rendering intent, it is characterised in that including step:
Obtain cad file;
It is preloaded into client and shows scaling that may be present during the cad file, and is directed to each pantograph ratio Example, is divided into multiple vector files according to picture by cad file, obtains multiple vector file set;
For each vector file set:All vector files in the vector file set are rendered into fixed ruler Very little bitmap, and the index according to the position relationship foundation between corresponding vector file to all bitmaps;
Client is according to its scaling to display and file extent, according to the rope to all bitmaps of foundation Draw, transferring corresponding bitmap from server carries out tiled display.
5. according to any described a kind of document rendering intent in claim 1-4, it is characterised in that institute's rheme The size of figure is determined based on default display resolution.
A kind of 6. document rendering intent according to claim 5, it is characterised in that the size of the bitmap For the 1/n of default display resolution2, wherein n is positive integer.
7. a kind of document rendering intent according to claim 5, it is characterised in that the n is 4.
CN201610338647.4A 2016-05-20 2016-05-20 A kind of document rendering intent Pending CN107402928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610338647.4A CN107402928A (en) 2016-05-20 2016-05-20 A kind of document rendering intent

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610338647.4A CN107402928A (en) 2016-05-20 2016-05-20 A kind of document rendering intent

Publications (1)

Publication Number Publication Date
CN107402928A true CN107402928A (en) 2017-11-28

Family

ID=60389151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610338647.4A Pending CN107402928A (en) 2016-05-20 2016-05-20 A kind of document rendering intent

Country Status (1)

Country Link
CN (1) CN107402928A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020093193A1 (en) * 2018-11-05 2020-05-14 Commscope, Inc. Of North Carolina Systems and methods for on-demand display of vector graphic images using raster graphics
WO2020224388A1 (en) * 2019-05-06 2020-11-12 腾讯科技(深圳)有限公司 Element rendering method and apparatus, computer readable storage medium, and computer device
EP3514709B1 (en) * 2018-01-22 2023-06-07 Joachim Becker Method and apparatus for transmitting and displaying user vector graphics with info items from a cloud-based cad archive on mobile devices, mobile or stationary computers

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736898A (en) * 2012-05-08 2012-10-17 国家测绘局卫星测绘应用中心 Method and device suitable for drawing vector data of multi-core CPU (central process unit) parallelly and device
US20120320058A1 (en) * 2011-06-14 2012-12-20 Robert Stephen Consulting LLC Facilities management system and method
US20130128977A1 (en) * 2011-11-21 2013-05-23 General Instrument Corporation Implicit determination and combined implicit and explicit determination of collocated picture for temporal prediction
CN102663119B (en) * 2012-04-19 2014-06-11 北京天下图数据技术有限公司 Method for rendering massive vector data
CN104050185A (en) * 2013-03-13 2014-09-17 百度在线网络技术(北京)有限公司 Zoom-display processing method and device for page contents
CN104182498A (en) * 2014-08-15 2014-12-03 成都天奥信息科技有限公司 Electronic chart engine under Android platform and electronic chart display method without time delay under Android platform
CN104200506A (en) * 2014-08-04 2014-12-10 广东威创视讯科技股份有限公司 Method and device for rendering three-dimensional GIS mass vector data
CN104240245A (en) * 2014-09-10 2014-12-24 中国科学院光电技术研究所 Method for converting vector graphics into bitmap and performing self-adaptive segmentation
CN105427236A (en) * 2015-12-18 2016-03-23 魅族科技(中国)有限公司 Method and device for image rendering

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120320058A1 (en) * 2011-06-14 2012-12-20 Robert Stephen Consulting LLC Facilities management system and method
US20130128977A1 (en) * 2011-11-21 2013-05-23 General Instrument Corporation Implicit determination and combined implicit and explicit determination of collocated picture for temporal prediction
CN102663119B (en) * 2012-04-19 2014-06-11 北京天下图数据技术有限公司 Method for rendering massive vector data
CN102736898A (en) * 2012-05-08 2012-10-17 国家测绘局卫星测绘应用中心 Method and device suitable for drawing vector data of multi-core CPU (central process unit) parallelly and device
CN104050185A (en) * 2013-03-13 2014-09-17 百度在线网络技术(北京)有限公司 Zoom-display processing method and device for page contents
CN104200506A (en) * 2014-08-04 2014-12-10 广东威创视讯科技股份有限公司 Method and device for rendering three-dimensional GIS mass vector data
CN104182498A (en) * 2014-08-15 2014-12-03 成都天奥信息科技有限公司 Electronic chart engine under Android platform and electronic chart display method without time delay under Android platform
CN104240245A (en) * 2014-09-10 2014-12-24 中国科学院光电技术研究所 Method for converting vector graphics into bitmap and performing self-adaptive segmentation
CN105427236A (en) * 2015-12-18 2016-03-23 魅族科技(中国)有限公司 Method and device for image rendering

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3514709B1 (en) * 2018-01-22 2023-06-07 Joachim Becker Method and apparatus for transmitting and displaying user vector graphics with info items from a cloud-based cad archive on mobile devices, mobile or stationary computers
WO2020093193A1 (en) * 2018-11-05 2020-05-14 Commscope, Inc. Of North Carolina Systems and methods for on-demand display of vector graphic images using raster graphics
WO2020224388A1 (en) * 2019-05-06 2020-11-12 腾讯科技(深圳)有限公司 Element rendering method and apparatus, computer readable storage medium, and computer device
US11741648B2 (en) 2019-05-06 2023-08-29 Tencent Technology (Shenzhen) Company Limited Element rendering method and apparatus, computer readable storage medium, and computer device

Similar Documents

Publication Publication Date Title
US20190361969A1 (en) Method and system for annotation and connection of electronic documents
US9569865B2 (en) Supporting color fonts
US10467790B2 (en) On-demand image spriting
JP2010279038A (en) Method and system for electronic image real-time personalization
CN103839479B (en) A kind of efficent electronic writing exchange method
CN107402928A (en) A kind of document rendering intent
US20190354573A1 (en) Optimized rendering of shared documents on client devices with document raster representations
US9454798B2 (en) Systems and methods of automatic image sizing
Chen et al. Construction of complex environmental art design system based on 3D virtual simulation technology
TW201527990A (en) A font cloud service system
CN107168703A (en) A kind of flow drawing generating method and system based on SVG plug-in units
US20170300584A1 (en) Customized and Automated Dynamic Infographics
CN104391896A (en) Plane printed product typesetting method and system based on webpage
Gao et al. CoWebDraw: a real-time collaborative graphical editing system supporting multi-clients based on HTML5
US11295492B2 (en) Electronic device and server related to rendering of web content and controlling method thereof
US20170277665A1 (en) Free form website structure design
CN104281562B (en) A kind of processing method and processing device of electronic document
CN111444452B (en) Webpage conversion method and device and storage medium
DE202015009149U1 (en) Automatic embedding of digital cards in software applications
CN109214266A (en) Method, computer readable recording medium and system for image procossing
US10157311B2 (en) Detecting arrows within images
CN109636880A (en) A kind of picture method for drafting and device, controller and medium
CN111063036B (en) Three-dimensional character arrangement method, medium, equipment and system based on path planning
CN107229498A (en) A kind of cross-domain method for realizing the local html files of javascript loadings
US9448982B2 (en) Immediate independent rasterization

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171128