CN107515945A - A kind of method of the preview document in webpage - Google Patents

A kind of method of the preview document in webpage Download PDF

Info

Publication number
CN107515945A
CN107515945A CN201710778878.1A CN201710778878A CN107515945A CN 107515945 A CN107515945 A CN 107515945A CN 201710778878 A CN201710778878 A CN 201710778878A CN 107515945 A CN107515945 A CN 107515945A
Authority
CN
China
Prior art keywords
document
client
webpage
pdf
preview
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
CN201710778878.1A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201710778878.1A priority Critical patent/CN107515945A/en
Publication of CN107515945A publication Critical patent/CN107515945A/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to document preview technology, and it discloses a kind of method of the preview document in webpage, solves to need that in client installation office softwares document preview could be realized in conventional art, or need to install the problem of flash plug-in units occupancy resource is more.This method includes:A. after service end receives the document of some client upload, judge whether document is pdf forms, if it is, into step b, otherwise into step c;B. it is identification name and type of the document addition with uniqueness, is then stored in database, into step d;C. pdf forms are converted document to, are then identification name and type of the document addition with uniqueness, and be stored in database;D. when there is client to need some document of preview in webpage, the identification name of the document and type are sent to service end;E. service end searches corresponding pdf documents in database and is sent to client;F. client by increase income pdf.js bags by the pdf documents of acquisition webpage render come.

Description

A kind of method of the preview document in webpage
Technical field
The present invention relates to document preview technology, and in particular to a kind of method of the preview document in webpage.
Background technology
Web document preview at present is the function of being needed mostly in many Web Hostings, and web document preview means are divided substantially For two kinds:
1. use PageOffice.PageOffice can be opened in web page, edited, Print Preview, printing Word, The Office documents such as Excel, PowerPoint.Although PageOffice need not install related plug-in unit in server end, Need the locally-installed Microsoft Office softwares of client.Therefore, for being fitted without Microsoft Office softwares Client have it is very big using limitation.
2. carrying out document preview using flash animation software, such a mode needs the service end to be text form transforming .swf web client installation flash related softwares are also needed to while form, occupancy resource is more, has for web site performance Large effect.
The content of the invention
The technical problems to be solved by the invention are:A kind of method of the preview document in webpage is proposed, solves traditional skill Need that in client installation office softwares document preview could be realized in art, or need that flash plug-in units occupancy resource is installed The problem of more.
The technical solution adopted by the present invention is as follows:
A kind of method of the preview document in webpage, comprises the following steps:
A. after service end receives the document of some client upload, judge whether document is pdf forms, if it is, Into step b, otherwise into step c;
B. it is identification name and type of the document addition with uniqueness, is then stored in database, into step d;
C. pdf forms are converted document to, are then identification name and type of the document addition with uniqueness, and be stored in Database;
D. when there is client to need some document of preview in webpage, the identification name of the document and type are sent to clothes Business end;
E. service end searches corresponding pdf documents in database and is sent to client;
F. client by increase income pdf.js bags by the pdf documents of acquisition webpage render come.
Optimize as further, in step a, the document that the client uploads is word, excel or pdf form.
Optimize as further, in step a, client services end interface by http request and document is uploaded into service End.
As further optimization, the mark name includes user's name and timestamp.
Optimize as further, in step c, service end calls the service of JodConverter.jar bags, starts OpenOffice transforms a document to pdf format files.
The beneficial effects of the invention are as follows:It is unified with pdf forms when the document that service end uploads to client stores Stored, and add mark name and type, when client has the demand of preview document, the identification name of the document and type are sent out Service end is given, corresponding pdf documents can be sent to client and be rendered by service end, and the present invention inserts compared to traditional flash Part occupancy resource is less, compared to PageOffice, it is not necessary to which client installs office softwares.
Brief description of the drawings
Fig. 1 is the method flow diagram of preview document in webpage in the embodiment of the present invention.
Embodiment
The present invention is directed to propose a kind of method of the preview document in webpage, solves to need to pacify in client in conventional art Dress office softwares could realize document preview, or need to install the problem of flash plug-in units occupancy resource is more.
In the present invention, when some client needs to upload document first, end interface is serviced by http request, will Word, excel or pdf format file upload to service end, and service end obtains document and relevant information, determines whether pdf lattice Formula document, if it is, addition unique mark title (user's name+timestamp) and type (the affiliated type of document) deposit data Storehouse.If it is not, just first passing through pdf plug-in units transforms a document to pdf format files, unique mark title and type are then added (the affiliated type of document) is stored in database.When there is client to need preview document, end interface is serviced by http request, by text Shelves unique name and type are transmitted to service end, obtain pdf format files, then by pdf.js bags of increasing income by pdf format files Render to come in webpage.
Below in conjunction with the accompanying drawings and embodiment is further described to the solution of the present invention:
As shown in figure 1, the method for preview document in webpage in the present embodiment comprises the following steps:
Client uploads document step:
1. client uploads word, excel or pdf format file by http request interface.
2. service end receives document.
3. determine whether pdf format files.
4. if it is, addition unique name (user type+timestamp) and type.
5. if it is not, that calls the service of JodConverter.jar bags with regard to service end, start OpenOffice by document It is converted into pdf format files.
6 service ends translate into the document addition unique name (user type+timestamp) and type of pdf forms.
7. the document after adding unique name type is stored in database by service end.
Client request document is to render process:
1. obtaining client needs preview document unique name (user type+timestamp) and type.
2. client services end interface by asking, document unique name and type are transmitted to service end.
3. the pdf format files that service end finds deposit database by unique name and type are transmitted to client.
4. client obtains the pdf format files that service end is transmitted to.
5. client is rendered pdf format files in webpage by pdf.js bags of increasing income.

Claims (5)

  1. A kind of 1. method of the preview document in webpage, it is characterised in that comprise the following steps:
    A. after service end receives the document of some client upload, judge whether document is pdf forms, if it is, into Step b, otherwise into step c;
    B. it is identification name and type of the document addition with uniqueness, is then stored in database, into step d;
    C. pdf forms are converted document to, are then identification name and type of the document addition with uniqueness, and be stored in data Storehouse;
    D. when there is client to need some document of preview in webpage, the identification name of the document and type are sent to service End;
    E. service end searches corresponding pdf documents in database and is sent to client;
    F. client by increase income pdf.js bags by the pdf documents of acquisition webpage render come.
  2. A kind of 2. method of the preview document in webpage as claimed in claim 1, it is characterised in that in step a, the client The document that end uploads is word, excel or pdf form.
  3. 3. a kind of method of the preview document in webpage as claimed in claim 1, it is characterised in that in step a, client is led to Cross http request service end interface and document is uploaded to service end.
  4. 4. a kind of method of the preview document in webpage as claimed in claim 1, it is characterised in that the mark name includes using Name in an account book claims and timestamp.
  5. 5. a kind of method of the preview document in webpage as claimed in claim 1, it is characterised in that in step c, service end is adjusted Serviced with JodConverter.jar bags, start OpenOffice and transform a document to pdf format files.
CN201710778878.1A 2017-08-30 2017-08-30 A kind of method of the preview document in webpage Pending CN107515945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710778878.1A CN107515945A (en) 2017-08-30 2017-08-30 A kind of method of the preview document in webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710778878.1A CN107515945A (en) 2017-08-30 2017-08-30 A kind of method of the preview document in webpage

Publications (1)

Publication Number Publication Date
CN107515945A true CN107515945A (en) 2017-12-26

Family

ID=60724680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710778878.1A Pending CN107515945A (en) 2017-08-30 2017-08-30 A kind of method of the preview document in webpage

Country Status (1)

Country Link
CN (1) CN107515945A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471716A (en) * 2019-08-20 2019-11-19 江西金格科技股份有限公司 The non-embedded method using Office in OA system
CN113778680A (en) * 2021-09-10 2021-12-10 厦门悦讯信息科技股份有限公司 Document online preview method and system
CN114528813A (en) * 2022-01-26 2022-05-24 山东浪潮通软信息科技有限公司 File conversion management method, device, equipment and medium for online preview
CN115114234A (en) * 2022-08-29 2022-09-27 太平金融科技服务(上海)有限公司深圳分公司 File preview method, device, server, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004779A (en) * 2010-11-19 2011-04-06 百度在线网络技术(北京)有限公司 Document sharing platform and document processing method
CN103106205A (en) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 Method and device for browsing files on mobile terminal
US20140032649A1 (en) * 2012-07-24 2014-01-30 Academic Networking and Services (ANS), LLC Method and system for educational networking and services
CN105740435A (en) * 2016-01-28 2016-07-06 安徽四创电子股份有限公司 On-line preview design method of document on the basis of distribution
CN107093155A (en) * 2017-04-20 2017-08-25 过来人(北京)教育科技有限公司 It is a kind of based on admire class education Education Administration Information System, implementation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004779A (en) * 2010-11-19 2011-04-06 百度在线网络技术(北京)有限公司 Document sharing platform and document processing method
CN103106205A (en) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 Method and device for browsing files on mobile terminal
US20140032649A1 (en) * 2012-07-24 2014-01-30 Academic Networking and Services (ANS), LLC Method and system for educational networking and services
CN105740435A (en) * 2016-01-28 2016-07-06 安徽四创电子股份有限公司 On-line preview design method of document on the basis of distribution
CN107093155A (en) * 2017-04-20 2017-08-25 过来人(北京)教育科技有限公司 It is a kind of based on admire class education Education Administration Information System, implementation method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471716A (en) * 2019-08-20 2019-11-19 江西金格科技股份有限公司 The non-embedded method using Office in OA system
CN113778680A (en) * 2021-09-10 2021-12-10 厦门悦讯信息科技股份有限公司 Document online preview method and system
CN114528813A (en) * 2022-01-26 2022-05-24 山东浪潮通软信息科技有限公司 File conversion management method, device, equipment and medium for online preview
CN115114234A (en) * 2022-08-29 2022-09-27 太平金融科技服务(上海)有限公司深圳分公司 File preview method, device, server, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107515945A (en) A kind of method of the preview document in webpage
CN102663125B (en) Method and system for collecting microblog contents to make electronic document
CN101201815B (en) System and method for generating patent application file
JP5562977B2 (en) Technology for automatically syndicating content over the network
CN105589836A (en) Document previewing method, terminal and server
CN103389969A (en) Method, device and system for previewing PDF (portable document format) file on mobile terminal
CN107943915B (en) Method and device for OFD (office file) online display based on HTML5
CN102184177A (en) Method and system for previewing file
CN102541948A (en) Method and device for extracting document structure
US20120250081A1 (en) Terminal Device and Method for Controlling the Same
CN102487402A (en) Method, device and system for realizing webpage rendering by server side
CN101916293B (en) Introduce the method and apparatus of media information in a document
WO2009049061A1 (en) Methods, apparatus, and systems for providing local and online data services
CN104035937A (en) Extensible system and method for electronic document online browsing
CN103927606B (en) A kind of papery and management of electronic documents method of feature based code
CN103338236B (en) A kind of concurrent data acquisition methods and system
CN105404693B (en) A kind of service clustering method based on demand semanteme
CN107682399A (en) A kind of file breaker point continuous transmission method based on big data
CN102420822A (en) Network file transmission method and system
CN103678317A (en) Automatic webpage layout adaptation method and system
CN110737860A (en) rich text picture insertion method and device
CN103530135A (en) Proxy service generating device and proxy service generating method
CN103902571A (en) Method and system for saving webpage complete content and corresponding client end and server
JP2011507074A5 (en)
CN110889261A (en) Method for automating electronic official document service processing

Legal Events

Date Code Title Description
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: 20171226