CN102662983A - A method for previewing PDF files on a remote server - Google Patents

A method for previewing PDF files on a remote server Download PDF

Info

Publication number
CN102662983A
CN102662983A CN2012100655644A CN201210065564A CN102662983A CN 102662983 A CN102662983 A CN 102662983A CN 2012100655644 A CN2012100655644 A CN 2012100655644A CN 201210065564 A CN201210065564 A CN 201210065564A CN 102662983 A CN102662983 A CN 102662983A
Authority
CN
China
Prior art keywords
remote server
preview
file
pdf
pdf document
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
CN2012100655644A
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.)
NANJING XINYULI CULTURE SPREAD CO Ltd
Original Assignee
NANJING XINYULI CULTURE SPREAD 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 NANJING XINYULI CULTURE SPREAD CO Ltd filed Critical NANJING XINYULI CULTURE SPREAD CO Ltd
Priority to CN2012100655644A priority Critical patent/CN102662983A/en
Publication of CN102662983A publication Critical patent/CN102662983A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for previewing PDF files on a remote server including the following steps: a) the remote server transforms the PDF file uploaded by a user to a corresponding picture and saves the corresponding picture as a preview file; b) the remote server sets up access right for the preview file according to the right control when the PDF file is uploaded; c) when a client side asks for accessing to the PDF file, then the access to the PDF file is transformed to the access to the preview file. By using the method for previewing the PDF files on the remote server, the remote server transforms the PDF file to the corresponding picture preview file so that the content of the PDF file can be directly previewed from the remote server. The local client side does not need an ADOBE software, thus the local client side is convenient to use and the cost is greatly reduced.

Description

A kind of on remote server the method for preview pdf document
Technical field
The present invention relates to the online method for previewing of a kind of pdf document, relate in particular to a kind of on remote server the method for preview pdf document.
Background technology
PDF is the abbreviation of Portable Document Format (portable file layout), is a kind of electronic document format, and is irrelevant with operating system platform, formed by the exploitation of Adobe company.Pdf document is to be the basis with PostScript sound image model; On which kind of printer, all can guarantee accurate color and printing effect accurately; Be each character, color and the image that PDF can verily reproduce original copy; Therefore obtained to use widely, particularly the neighborhood in the internet, much document formats employing PDFs.
The technology of at present main online preview PDF document mainly is based on the mode of browser plug-in, in fact also is to call local ADOBE READER software to open these PDF documents, and therefore local browser must be installed ADOBE READER software.Therefore be necessary to be provided at the method for preview pdf document on the remote server, direct preview PDF content from the server, different client side need not be installed ADOBE software one by one.
Summary of the invention
Technical matters to be solved by this invention provide a kind of on remote server the method for preview pdf document, can be directly from the server preview PDF content, local client need not be installed ADOBE software, and is easy to use and reduce cost greatly.
The present invention be solve the problems of the technologies described above the technical scheme that adopts provide a kind of on remote server the method for preview pdf document; Comprise the steps: that the pdf document that a) remote server is uploaded the user converts corresponding picture into, and corresponding picture is stored as preview file; Control of authority when b) remote server is uploaded according to pdf document is that preview file is provided with access rights; C) when client-requested visit pdf document, transfer it to visit to preview file.
Above-mentioned on remote server the method for preview pdf document, wherein, said step a) medium-long range server calls the gmagick interface through PHP and converts pdf document into corresponding picture.
Above-mentioned on remote server the method for preview pdf document, wherein, client is given in the address that client is returned preview file in the said step c).
The present invention contrasts prior art has following beneficial effect: provided by the invention on remote server the method for preview pdf document; Remote server converts pdf document into corresponding preview picture file; Thereby can be directly from the server preview PDF content; Local client need not be installed ADOBE software, and is easy to use and reduce cost greatly.
Description of drawings
Fig. 1 is the method flow synoptic diagram of the present invention's preview pdf document on remote server.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further description.
Fig. 1 is the method flow synoptic diagram of the present invention's preview pdf document on remote server.
See also Fig. 1, specify the implementation process of the present invention's preview pdf document on remote server below:
Step S101: the pdf document that remote server is uploaded the user converts corresponding picture into, and corresponding picture is stored as preview file, converts pdf document into corresponding picture as call the gmagick interface through PHP.
Step S102: the control of authority when remote server is uploaded according to pdf document is that preview file is provided with access rights.
Step S103: when client-requested visit pdf document, transfer it to visit to preview file.
Specifically: remote server can use a LINUX server and gm software is installed, and PHP installs the gmagick expansion, is picture through gmagick conversion pdf document, and the request form of realization visit preview file also returns picture address and gives front end.The pdf document processor uses PHP+gmagick, when PHP handles pdf document, calls the gmagick expansion, converts corresponding picture into, and gmagick is the format conversion adapter based on gm of increasing income, and has encapsulated the interface of gm.
With/var/attachment/11.pdf is an example, after preview file generates, need carry out authority to preview file and judge.File as 11.pdf produces is following:
11
|_11_0.jpg
|_11_1.jpg
|_11_2.jpg
Wherein 11 is file, and the url address format of preview file is following:
http://*****/attachment/openPreview/MDQwYWJdlYWYIb1E2BmRRYwE8BjAGMQFsdddATkDOwU7UWIBNVFkWmxSZFFbUDQCYl1vCT0HOQMyAnkLcgtvAmIxNzE5NGUyMA%3D%3D/0-2.pdf
This URL will be rewritten as following form by the web server:
http://***/attachment/openPreview.php?permission=MDQwYWJdlYWYIb1E2BmRRYwE8BjAGMQFsdddATkDOwU7UWIBNVFkWmxSZFFbUDQCYl1vCT0HOQMyAnkLcgtvAmIxNzE5NGUyMA%3D%3D&pdf=0-2
Server will obtain file id according to the url address after the deciphering, and find the physical file address, thereby find the picture address after the PDF parameter, and 0 is photo current, and 2 are total how many pictures.
Wherein, in order to reduce the request of database, when back-end encryption, the parent directory address of preview file is joined in the AES; Then when front end is asked to the back-end, directly from url, absolute path is obtained out, do not need requested database once more.
In sum; Provided by the invention on remote server the method for preview pdf document; Remote server converts pdf document into corresponding preview picture file, thus can be directly from the server preview PDF content, no longer rely on relevant ADOBE plug-in unit in the browser; Local client need not be installed ADOBE software one by one, and is easy to use and reduce cost greatly.
Though the present invention discloses as above with preferred embodiment; Right its is not that any those skilled in the art are not breaking away from the spirit and scope of the present invention in order to qualification the present invention; When can doing a little modification and perfect, so protection scope of the present invention is when being as the criterion with what claims defined.

Claims (3)

1. the method for a preview pdf document on remote server is characterized in that, comprises the steps:
A) remote server pdf document that the user is uploaded converts corresponding picture into, and corresponding picture is stored as preview file;
Control of authority when b) remote server is uploaded according to pdf document is that preview file is provided with access rights;
C) when client-requested visit pdf document, transfer it to visit to preview file.
2. as claimed in claim 1 on remote server the method for preview pdf document, it is characterized in that said step a) medium-long range server calls the gmagick interface through PHP and converts pdf document into corresponding picture.
3. as claimed in claim 1 on remote server the method for preview pdf document, it is characterized in that client is given in the address that client is returned preview file in the said step c).
CN2012100655644A 2012-03-14 2012-03-14 A method for previewing PDF files on a remote server Pending CN102662983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100655644A CN102662983A (en) 2012-03-14 2012-03-14 A method for previewing PDF files on a remote server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100655644A CN102662983A (en) 2012-03-14 2012-03-14 A method for previewing PDF files on a remote server

Publications (1)

Publication Number Publication Date
CN102662983A true CN102662983A (en) 2012-09-12

Family

ID=46772474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100655644A Pending CN102662983A (en) 2012-03-14 2012-03-14 A method for previewing PDF files on a remote server

Country Status (1)

Country Link
CN (1) CN102662983A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067500A (en) * 2012-12-28 2013-04-24 广州杰赛科技股份有限公司 Web browsing method based on cloud terminal
CN103942344A (en) * 2014-05-12 2014-07-23 深圳市中博科创信息技术有限公司 File preview method and file processing system
CN104615391A (en) * 2015-02-03 2015-05-13 九玉(北京)科技有限公司 File previewing method, device and system
CN104933018A (en) * 2014-03-19 2015-09-23 北京畅游天下网络技术有限公司 File processing method and apparatus
CN105068709A (en) * 2015-07-23 2015-11-18 广东欧珀移动通信有限公司 File processing method and apparatus
CN105786778A (en) * 2016-02-29 2016-07-20 四川长虹电器股份有限公司 Method for remotely reading PDF file
CN107967412A (en) * 2017-11-27 2018-04-27 武汉武钢众鹏信息系统有限公司 A kind of method for controlling pdf document limited accass
US10901607B2 (en) 2016-06-24 2021-01-26 Microsoft Technology Licensing, Llc Carouseling between documents and pictures

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009157461A (en) * 2007-12-25 2009-07-16 Canon Marketing Japan Inc Document management system, document managing device, document management method, and program
CN101872364A (en) * 2010-07-02 2010-10-27 苏州阔地网络科技有限公司 Method for converting document into picture on line
CN101945233A (en) * 2009-07-03 2011-01-12 深圳Tcl新技术有限公司 Method for looking up PPT (Power Point) and PDF (Portable Document Format) documents and television adopting same
CN102117436A (en) * 2009-12-30 2011-07-06 鸿富锦精密工业(深圳)有限公司 System and method for analyzing patient electronic receipt file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009157461A (en) * 2007-12-25 2009-07-16 Canon Marketing Japan Inc Document management system, document managing device, document management method, and program
CN101945233A (en) * 2009-07-03 2011-01-12 深圳Tcl新技术有限公司 Method for looking up PPT (Power Point) and PDF (Portable Document Format) documents and television adopting same
CN102117436A (en) * 2009-12-30 2011-07-06 鸿富锦精密工业(深圳)有限公司 System and method for analyzing patient electronic receipt file
CN101872364A (en) * 2010-07-02 2010-10-27 苏州阔地网络科技有限公司 Method for converting document into picture on line

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067500A (en) * 2012-12-28 2013-04-24 广州杰赛科技股份有限公司 Web browsing method based on cloud terminal
CN103067500B (en) * 2012-12-28 2015-06-24 广州杰赛科技股份有限公司 Web browsing method based on cloud terminal
CN104933018A (en) * 2014-03-19 2015-09-23 北京畅游天下网络技术有限公司 File processing method and apparatus
CN104933018B (en) * 2014-03-19 2018-01-16 北京畅游天下网络技术有限公司 A kind of document handling method and device
CN103942344A (en) * 2014-05-12 2014-07-23 深圳市中博科创信息技术有限公司 File preview method and file processing system
CN104615391A (en) * 2015-02-03 2015-05-13 九玉(北京)科技有限公司 File previewing method, device and system
CN105068709A (en) * 2015-07-23 2015-11-18 广东欧珀移动通信有限公司 File processing method and apparatus
CN105786778A (en) * 2016-02-29 2016-07-20 四川长虹电器股份有限公司 Method for remotely reading PDF file
CN105786778B (en) * 2016-02-29 2018-04-27 四川长虹电器股份有限公司 The long-range method for reading pdf document
US10901607B2 (en) 2016-06-24 2021-01-26 Microsoft Technology Licensing, Llc Carouseling between documents and pictures
CN107967412A (en) * 2017-11-27 2018-04-27 武汉武钢众鹏信息系统有限公司 A kind of method for controlling pdf document limited accass
CN107967412B (en) * 2017-11-27 2020-06-26 宝信软件(武汉)有限公司 Method for controlling limited access of PDF file

Similar Documents

Publication Publication Date Title
CN102662983A (en) A method for previewing PDF files on a remote server
EP3065062B1 (en) Converting pdf forms into browser-editable forms
US10044881B2 (en) Relay apparatus, communication system and communicating method
CN104035937A (en) Extensible system and method for electronic document online browsing
US11656825B2 (en) Communication apparatus, control program of communication apparatus, and relay apparatus providing efficient download of electronic data
JP2013093017A (en) Wireless printing from out-of-network device
CN104462522A (en) File on-line previewing method, terminal and server
JP2015011438A (en) Communication method, device, information processing device, and program
JP2007272765A (en) Information processor, thumbnail management device, content processing method, storage medium, and program
JP2014016896A (en) Service providing system, information storage device, and information processing apparatus, method, and program
JP2014016897A (en) Service providing system, information storage device, and information processing apparatus, method, and program
JP2009075977A (en) Portable terminal browsing document distribution server, portable terminal, and portable terminal browsing document distribution system
CN102541836A (en) Method and device for adjusting format file layout
CN102662985A (en) A method for previewing OFFICE files on a remote server
KR101208588B1 (en) System for handling text based on vector image of supply publish on demand and method therefor
KR101700481B1 (en) Information processing apparatus, information processing method, and information processing system
KR101334589B1 (en) Font processing method for maintaining document layout, and computer-readable recording medium for the same
JP6445457B2 (en) Electronic document providing method, system, parent server, and child client
JP2007293759A (en) Printing system
JP2007216552A (en) IMAGE FORMING APPARATUS AND Web PAGE FILE ACQUISITION PROGRAM
JP2007286758A (en) Image storage system and image formation system
US20170371864A1 (en) System and method for device filtered translation
TW201535295A (en) Personalized news editing system and method
KR102108574B1 (en) System and method for providing image file containing copyright information
JP7284427B1 (en) Information processing system, its control method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120912