Commit Graph

76 Commits

Author SHA1 Message Date
Jonas Jenwald
4a6575643b [SVG] Specify the PDFJS.cMapUrl/PDFJS.cMapPacked parameters in the svgviewer example
Re: issue 7017.
This should prevent the error, but does not fix the broken rendering.

The rendering issues are caused by `svg.js` not supporting the various text rendering modes, in this case specifically "invisible" (as indicated in the console `Warning: Unimplemented method setTextRenderingMode`).

Compared to the canvas case, where we just ignore invisible text, a smarter solution is probably required for the SVG case. Since just ignoring invisible text in `svg.js` would mean that text-selection isn't possible.
2016-02-26 23:07:39 +01:00
Yury Delendik
85e95d34ed Use RequireJS in the viewer, examples and tests. 2015-12-29 09:20:52 -06:00
Yury Delendik
79c2f69c32 Adds/modifies examples for node.js and webpack. 2015-12-21 13:46:50 -06:00
Jonas Jenwald
3079dd937f Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/
This patch makes the naming consistent with the `TextLayerBuilder`, and also the new `AnnotationLayer`, and should thus help reduce possible confusion when working with the code.
Please note that the files were renamed using `git mv`, in order to preserve blame.
2015-12-18 19:55:54 +01:00
Yury Delendik
6b60c8f4db Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
Tim van der Meij
91274d6d2d Rename annotation_helper.js to annotation_layer.js 2015-12-02 23:30:28 +01:00
Yury Delendik
06c1904675 Refactors FontLoader to group fonts per document. 2015-11-24 13:27:22 -06:00
Yury Delendik
56ccaea99b Move text layer building logic into src/display/text_layer.js 2015-11-19 10:50:27 -06:00
Yury Delendik
2f34fd46cb Move CustomStyle. 2015-11-19 10:47:17 -06:00
Manas
a2ba1b8189 Uses editorconfig to maintain consistent coding styles
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
2015-11-14 07:32:18 +05:30
Yury Delendik
601d29b14e Fixes all examples to require workerSrc to be set. 2015-11-06 07:50:21 -06:00
Jonas Jenwald
1f9466ea02 Add a couple of CSS hacks in order for scrollIntoView to work in the "simpleviewer" component example
This is intended as a temporary solution, in order to get the "simpleviewer" example to work, until we've re-factored `scrollIntoView` to work in both the standard and components-based viewers.
2015-07-30 17:19:54 +02:00
Jonas Jenwald
297f760dce Add a PDFLinkService instance to the "simpleviewer" component example 2015-07-30 17:19:54 +02:00
Tim van der Meij
70cba472e0 Improve the instructions for the 'hello world' example 2015-03-18 22:27:00 +01:00
Tim van der Meij
fcefcb7e7e Remove broken links from hello world example 2015-03-18 20:59:14 +01:00
Collin Anderson
54e984c763 cleaned whitespace 2015-02-17 11:07:37 -05:00
Yury Delendik
81649b00a9 Base64 example and be more flexible what type of data is passed. 2015-01-12 14:52:52 -06:00
Yury Delendik
513a3d8c91 Replaces text selection example 2014-12-20 23:41:34 -06:00
Yury Delendik
6048c8a910 Minor node/pdf2svg.js fixes. 2014-10-22 09:59:20 -05:00
Yury Delendik
88d5fa0fc3 Fixes examples comments. 2014-09-30 15:42:28 -05:00
Yury Delendik
5740b96020 Introduces 'pagesinit' event. 2014-09-30 12:41:53 -05:00
Yury Delendik
b16a406f3a Packages PDFViewer as a UI component. 2014-09-30 12:41:53 -05:00
Yury Delendik
de844a8826 Removes examples from jsbin.com 2014-09-16 09:24:48 -05:00
Yury Delendik
de23d3791e Fixes image and font embedding 2014-08-14 15:11:27 -05:00
Yury Delendik
bc574aa629 Refactors SVG api 2014-08-14 12:56:11 -05:00
pramodhkp
0e5998a325 Added svg export tool 2014-08-14 23:18:19 +05:30
pramodhkp
6d53fc4db7 Minor changes for api.js, font_loader.js and svg.js 2014-08-14 01:01:09 +05:30
Yury Delendik
c6f8244ce5 Simplify text-selection example. 2014-08-06 10:56:05 -05:00
pramodhkp
7efd50e64d Added paintJpegXObject 2014-06-25 03:55:14 +05:30
Tim van der Meij
c7e614323a Removing unnecessary includes from text selection example 2014-06-23 22:45:11 +02:00
Yury Delendik
9a28b8a412 Misc UI improvements for the SVG Viewer 2014-06-19 22:20:55 -05:00
pramodhkp
dd253aadeb SVG Viewer example demo 2014-06-20 08:25:05 +05:30
Yury Delendik
bdeca30fbf Splits shared/annotation.js into core/ and display/ 2014-06-17 17:43:33 -05:00
Yury Delendik
fcc4dfd9b5 Moves shared/function.js to core/ 2014-05-23 14:11:47 -05:00
Yury Delendik
7a19085159 Moves shared/colorspace.js into core/ 2014-05-23 14:11:47 -05:00
Yury Delendik
8609f386a9 Merge pull request #4782 from mzgol/script-type
Remove type="text/javascript" from script tags.
2014-05-12 20:24:50 -05:00
Michał Gołębiowski
1a8fc8d2b6 Use jQuery 2 in examples
Since pdf.js doesn't work in IE8 anyway, it doesn't make sense to use
jQuery 1 with it. jQuery 2 should be used in every example that needs
jQuery.
2014-05-13 02:45:10 +02:00
Michał Gołębiowski
e625af3fef Remove type="text/javascript" from script tags.
"text/javascript" is not a correct MIME type (the correct one is
"application/javascript") but it's not even needed; all browsers default
to the correct type and treat it as executable JS when type is ommited.
Since not all browsers recognize the "application/javascript" MIME type
the only way to both stay compliant and to support all popular browsers
is to omit the type. It's also shorter this way.
2014-05-13 02:41:01 +02:00
Yury Delendik
b8344a543c Basic node.js example that demostrate pdf.combined.js file use 2014-04-19 15:43:16 -05:00
Yury Delendik
206db6f715 Merge pull request #4588 from yurydelendik/text-only
Adds text-only example
2014-04-10 20:30:46 -05:00
Yury Delendik
e128081857 Adds text-only example 2014-04-09 21:59:19 -05:00
Yury Delendik
9c84bfa416 Fixes text-selection example 2014-04-09 20:52:21 -05:00
Yury Delendik
f57c6935d7 Implements WebGL support 2014-04-03 08:36:22 -05:00
Cristihan
9613ba2e22 Update index.html 2014-03-12 10:57:59 -05:00
Tim van der Meij
1b1a9f1b81 Making all examples adhere to the style guide 2014-03-08 23:04:30 +01:00
Samuel Chantaraud
4eb7c04034 Fixed examples/acroforms/forms.js 2014-02-22 09:49:29 -04:00
Yury Delendik
bf432a37bb Refactors shared/pattern.js into core/ and display/ 2014-01-25 12:18:22 -06:00
Brendan Dahl
7563a9dfa0 Update docs on the workerSrc setting. 2013-11-18 14:37:01 -08:00
Sebastian Kruse
041671f81b BugFix: Missing var (context) in function call getOutputScale of text-selection example 2013-10-30 11:43:22 +01:00
Vivin Paliath
f3d1f20652 issue #3346
squashing commits.
2013-08-27 10:05:38 -07:00