This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id="c1"></canvas><br> | |
<script> | |
var c1 = document.getElementById("c1"); | |
var ctx = c1.getContext("2d"); | |
ctx.font = "12px serif"; | |
ctx.fillText("test", 10, 25); | |
</script> | |
<canvas id="c2"></canvas><br> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/stream.js b/src/stream.js | |
index fc16317..882e3f7 100644 | |
--- a/src/stream.js | |
+++ b/src/stream.js | |
@@ -754,6 +754,10 @@ var PredictorStream = (function PredictorStreamClosure() { | |
default: | |
error('Unsupported predictor: ' + predictor); | |
} | |
+ | |
+ // hack for TypedArray-less browsers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | |
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ | |
// save the file as '<pdf.js>/font~/debug.js' | |
// bookmarklet -> javascript:(function(){if(window.fontDebugScript)%20return;%20var%20script%20=%20window.fontDebugScript%20=%20document.createElement('script');script.setAttribute('src',%20'../font~/debug.js');document.body.appendChild(script);})(); | |
'use strict'; | |
(function fontDebug() { | |
var fonts; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script> | |
function run() { | |
var c = document.getElementById("c"); | |
var ctx = c.getContext("2d"); | |
ctx.font = "30px serif"; | |
ctx.fillText("A", 20, 60); | |
ctx.fillText("B", 40, 60); | |
var c2 = document.getElementById("c2"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SETLOCAL | |
SET MOZBUILDDIR=%~dp0 | |
SET MOZILLABUILD=%MOZBUILDDIR% | |
echo "Mozilla tools directory: %MOZBUILDDIR%" | |
REM Git path | |
set GIT_ROOT=C:\Program Files\Git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTMLElement dataset property | |
(function checkDatasetProperty() { | |
var div = document.createElement('div'); | |
if ('dataset' in div) | |
return; // dataset property exists | |
Object.defineProperty(HTMLElement.prototype, 'dataset', { | |
get: function htmlElementDatasetGetter() { | |
// adding dataset field to the actual object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
per pereba | |
chrome://pdf.js/content/web/viewer.html?file=http%3A%2F%2Fwww.popcyt.com%2F2210-md4.pdf | |
other with no portuguese accentuations (í,é,ã,â,à,ç,etc) | |
chrome://pdf.js/content/web/viewer.html?file=http%3A%2F%2Fwww.salto.sp.gov.br%2Fconcurso_02_2011_gcm_2.pdf | |
chrome://pdf.js/content/web/viewer.html?file=http%3A%2F%2Fwww.lfg.com.br%2Fconcursodebolsas%2Flista_preliminar_classificao.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core.js b/src/core.js | |
index 284b3cb..b8d5c98 100644 | |
--- a/src/core.js | |
+++ b/src/core.js | |
@@ -316,7 +316,7 @@ var Page = (function pagePage() { | |
startRendering: function pageStartRendering(ctx, callback, textLayer) { | |
this.ctx = ctx; | |
this.callback = callback; | |
- this.textLayer = textLayer; | |
+ this.textLayer = false && textLayer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function buildJpeg(data, components, transform, embed) { | |
var chunks = []; | |
// SOI | |
chunks.push([0xFF, 0xD8]); | |
// APP12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABKYAAAaUCAYAAADKMxRpAAAgAElEQVR4nOzd7es7XWLf9/MHGD8IhtBk15QUO45dz9atjTGu41Xs0s06u4LiG7BFnWIi07p2VDdwoQ3ZGDW2d7ylXNM1WWHsysYRbKrgorBGbWplWdFsJ3bGEPVmskEt2oVxYQxTmD6YB/Pg0wdzr9vRzfc73+u63i8Q1+7vK2nOnJk5c+ajM2eMAAAAAAAAgA6YrgsAAAAAAACADyaCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYAoAAAAAAACdIJgCAAAAAABAJwimAAAAAAAA0AmCKQAAAAAAAHSCYA |
NewerOlder