1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00
pdf.js/web
Rob Wu d34e6ddd60 Set page size via @page + size
In Blink-based browsers, there is a mismatch between document size and
paper size. Even if exactly the same values and unit are used, it is
possible that the printed results takes more pages than expected.

To solve the issue, the page size is set via @page size, and the canvas
and ancestor nodes are assigned a width+height of 100% (=relative to the
page). This change resolves bugs such as blank pages and split pages.
2015-03-23 11:19:48 +01:00
..
images Add updated loading-small.png (and corresponding Retina) asset 2014-10-01 00:13:45 +02:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotations_layer_builder.js Replaces text selection example 2014-12-20 23:41:34 -06:00
chromecom.js Renames and refactors PDFView to PDFViewerApplication. 2014-09-28 10:39:56 -05:00
compatibility.js Disable PresentationMode for certain problematic configurations 2015-03-13 22:09:36 +01:00
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.js Fix regression that prevents downloading of font files in the debugger 2014-10-28 19:56:55 +01:00
default_preferences.js Implement streaming using moz-chunk-arraybuffer 2014-09-19 19:05:25 -05:00
document_properties.js cleaned whitespace 2015-02-17 11:07:37 -05:00
download_manager.js Fixes DownloadManager for IE10 and above 2014-04-28 22:43:05 +02:00
firefoxcom.js cleaned whitespace 2015-02-17 11:07:37 -05:00
grab_to_pan.js Handtool: Remove focus from previous node on click 2014-09-03 16:31:47 +02:00
hand_tool.js Removing unused code 2014-07-18 22:34:50 +02:00
interfaces.js Refactors draw method in PDFPageView; makes optional some PDFPageViewOptions options 2014-12-20 23:41:34 -06:00
mozPrintCallback_polyfill.js Print shortcut: Ctrl + (Shift +) P only 2014-01-29 18:38:42 +01:00
overlay_manager.js [OverlayManager] Add preventDefault to the keydown event handler 2014-05-27 23:48:02 +02:00
password_prompt.js Convert the existing overlays to use the OverlayManager 2014-05-25 21:33:15 +02:00
pdf_attachment_view.js Determine filename only once and reduce code for _bindLink 2015-01-28 20:53:03 +01:00
pdf_find_bar.js cleaned whitespace 2015-02-17 11:07:37 -05:00
pdf_find_controller.js Merge pull request #5769 from dumyan/findcontroller-nbsp 2015-02-28 14:50:25 +01:00
pdf_history.js Renames and refactors PDFView to PDFViewerApplication. 2014-09-28 10:39:56 -05:00
pdf_outline_view.js Add JSDoc comments to PDFOutlineView 2015-01-27 23:04:48 +01:00
pdf_page_view.js Set page size via @page + size 2015-03-23 11:19:48 +01:00
pdf_rendering_queue.js Refactors draw method in PDFPageView; makes optional some PDFPageViewOptions options 2014-12-20 23:41:34 -06:00
pdf_thumbnail_view.js Remove the |el| property in PDFPageView and PDFThumbnailView 2015-02-27 00:26:02 +01:00
pdf_thumbnail_viewer.js Update thumbnail style only when sidebar is visible 2015-01-27 21:08:36 +01:00
pdf_viewer.component.js Replaces text selection example 2014-12-20 23:41:34 -06:00
pdf_viewer.css Remove unused annotation highlight div 2014-12-21 17:38:22 +01:00
pdf_viewer.js Merge pull request #5721 from Snuffleupagus/move-findController-resolveFirstPage 2015-02-27 06:33:15 -06:00
preferences.js Adjust use of chrome.storage.managed for Opera 2014-09-06 00:37:30 +02:00
presentation_mode.js Make presentation mode work again in Safari 2015-03-13 21:41:14 +01:00
secondary_toolbar.js Renames and refactors PDFView to PDFViewerApplication. 2014-09-28 10:39:56 -05:00
text_layer_builder.css Replaces text selection example 2014-12-20 23:41:34 -06:00
text_layer_builder.js Add a |textlayerrendered| event 2015-01-06 17:57:32 +01:00
ui_utils.js Use binary search in getVisibleElements() 2015-03-01 17:41:20 +01:00
view_history.js Added Promise.catch 2014-05-22 13:53:19 -04:00
viewer-snippet-chrome-extension.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-firefox-extension.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-minified.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-mozPrintCallback-polyfill.html Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox 2015-03-07 00:16:55 +01:00
viewer-snippet.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer.css Set page size via @page + size 2015-03-23 11:19:48 +01:00
viewer.html cleaned whitespace 2015-02-17 11:07:37 -05:00
viewer.js Set page size via @page + size 2015-03-23 11:19:48 +01:00