Jonas Jenwald
f0719ed565
[api-minor] Change the getViewport
method, on PDFPageProxy
, to take a parameter object rather than a bunch of (randomly) ordered parameters
...
If, as PR 10368 suggests, more parameters should be added to `getViewport` I think that it would be a mistake to not change the signature *first* to avoid needlessly unwieldy call-sites.
To not break any existing code and third-party use-cases, this is obviously implemented with a deprecation warning *and* with a working fallback[1] for the old method signature.
---
[1] This is limited to `GENERIC` builds, which should be sufficient.
2018-12-21 11:55:20 +01:00
Wojciech Maj
ef1f255649
ESLint --fix
2018-12-11 15:23:26 +01:00
Jonas Jenwald
ef8e5fd77c
Convert PDFDocumentLoadingTask
, in src/display/api.js
, to an ES6 class
...
Also deprecates the `then` method, in favour of the `promise` getter.
2018-11-18 19:07:57 +01:00
Brendan Dahl
01bff1a81d
Rename the globals to shorter names.
...
pdfjsDistBuildPdf=pdfjsLib
pdfjsDistWebPdfViewer=pdfjsViewer
pdfjsDistBuildPdfWorker=pdfjsWorker
2018-03-16 11:08:56 -07:00
Jonas Jenwald
b8606abbc1
[api-major] Completely remove the global PDFJS
object
2018-03-01 18:13:27 +01:00
Jonas Jenwald
c3c1fc511d
Move the workerSrc
option from the global PDFJS
object and into GlobalWorkerOptions
instead
2018-02-16 13:22:35 +01:00
Yury Delendik
a18caa730d
Adds gulp dist-install command; using pdfjs-dist package in examples.
2017-06-12 10:22:16 -05:00
Yury Delendik
2049cf01db
Moves preprocessor stuff to the gulpfile.
2017-02-04 08:19:46 -06:00
klemens
6f03f62327
trivial spelling fixes
2016-07-17 14:33:41 +02:00
Tim van der Meij
b8aaa24257
Convert all node make
instances to gulp
2016-03-04 20:30:36 +01:00
Yury Delendik
601d29b14e
Fixes all examples to require workerSrc to be set.
2015-11-06 07:50:21 -06:00
Yury Delendik
e128081857
Adds text-only example
2014-04-09 21:59:19 -05:00