mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Enable/disable image smoothing based on image interpolate value. (bug 1722191)
While some of the output looks worse to my eye, this behavior more closely matches what I see when I open the PDFs in Adobe acrobat. Fixes: #4706, #9713, #8245, #1344
This commit is contained in:
parent
8a79f13e5a
commit
f38fb42b42
13 changed files with 74 additions and 9 deletions
|
@ -32,6 +32,9 @@ import {
|
|||
const DEFAULT_LINK_REL = "noopener noreferrer nofollow";
|
||||
const SVG_NS = "http://www.w3.org/2000/svg";
|
||||
|
||||
const CSS_PIXELS_PER_INCH = 96.0;
|
||||
const PDF_PIXELS_PER_INCH = 72.0;
|
||||
|
||||
class DOMCanvasFactory extends BaseCanvasFactory {
|
||||
constructor({ ownerDocument = globalThis.document } = {}) {
|
||||
super();
|
||||
|
@ -622,6 +625,7 @@ function getXfaPageViewport(xfaPage, { scale = 1, rotation = 0 }) {
|
|||
|
||||
export {
|
||||
addLinkAttributes,
|
||||
CSS_PIXELS_PER_INCH,
|
||||
DEFAULT_LINK_REL,
|
||||
deprecated,
|
||||
DOMCanvasFactory,
|
||||
|
@ -637,6 +641,7 @@ export {
|
|||
LinkTarget,
|
||||
loadScript,
|
||||
PageViewport,
|
||||
PDF_PIXELS_PER_INCH,
|
||||
PDFDateString,
|
||||
RenderingCancelledException,
|
||||
StatTimer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue