From c783846b565300b352aca82106b30c5b11144c8b Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 21 Apr 2017 18:21:52 -0500 Subject: [PATCH] Updated Frequently Asked Questions (markdown) --- Frequently-Asked-Questions.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Frequently-Asked-Questions.md b/Frequently-Asked-Questions.md index d8dfebc..d2cd09e 100644 --- a/Frequently-Asked-Questions.md +++ b/Frequently-Asked-Questions.md @@ -11,7 +11,8 @@ * [I know that my PDFs are corrupted. Will PDF.js attempt to display it?](#corrupted-pdf) * [I have a really great idea. Where is the best place to record it?](#idea) * [I'm developing a custom solution based on PDF.js core library. Can you help me?](#custom) -* [I want to render all 100 pages in a document at high resolution. Is it a good idea?](#allthepages) +* [I want to render all 100 pages in a document at high resolution. Is it a good idea?](#allthepages) +* [PDF.js is fetching entire PDF file from a server. Can it fetch only its portion?](#range) * [What is a latest stable version of PDF.js?](#version) * [What types of PDF files are slow in PDF.js? Can I optimize a PDF file to make PDF.js faster?](#optimize) @@ -176,6 +177,11 @@ Not really. You can count yourself: a letter page size is 816⨉1056px at 96DPI The demo viewer creates, renders, and holds canvases only for visible pages to reduce amount of used memory. Our recommendation is to create and render only visible pages. + +## PDF.js is fetching entire PDF file from a server. Can it fetch only its portion? + +Actually PDF.js is doing just that. The PDF is a complicated format;in most of the cases, vital data of a PDF document is located at the end. Depending on [browser support](#faq-support) and on what web server returns in the [HTTP Range Requests headers](https://tools.ietf.org/html/rfc7233), the PDF.js automatically may start using HTTP Range Requests to fetch not-yet-loaded portions of a PDF needed for rendering of visible pages, so a document can be rendered without fully loading it. + ## What is a latest stable version of PDF.js?