摘要 |
A method and device for increasing the online browsing and loading speed of a PDF document, the method comprising: acquiring the attribute information of a PDF document from a remote server, and determining according to the attribute information whether the PDF document is a nonlinear document; if yes, then acquiring the cross reference table data of the PDF document from the remote server, determining the position and size of the page tree of the PDF document according to the position and size of each object in the cross reference table data, and acquiring the page tree of the PDF document from the remote server; presenting the obtained page tree to a user, analyzing the page data of the page tree, extracting, from the page tree, the position and size of the page object specified by the user, and acquiring the corresponding page object data from the remote server; acquiring, from the remote server, resource object data and page content stream data corresponding to the obtained page object data; and according to the obtained page object data, the resource object data and the page content stream data, acquiring the page selected by the user, and presenting the page to the user. |