web-document-viewer 11.2.12 → 11.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/atalaWebDocumentViewer.css +62 -1
- package/atalaWebDocumentViewer.d.ts +43 -3
- package/atalaWebDocumentViewer.js +252 -1108
- package/images/atala-ui-icons-16.png +0 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
.atala-ui-icon-upload { background-position: -448px 0; }
|
|
47
47
|
.atala-ui-icon-upload-cancel { background-position: -464px 0; }
|
|
48
48
|
|
|
49
|
+
.atala-ui-icon-bookmarks { background-position: -480px 0; }
|
|
49
50
|
.atala-ui-form-highlight { background-color: rgb(204, 215, 255) !important; background-color: rgba(204, 215, 255, .7) !important }
|
|
50
51
|
.atala-ui-form-required { border: 3px solid red !important }
|
|
51
52
|
|
|
@@ -201,6 +202,57 @@ button.atala-upload-files-cancel-button {
|
|
|
201
202
|
height: 32px;
|
|
202
203
|
}
|
|
203
204
|
|
|
205
|
+
.atala_bookmark_content{
|
|
206
|
+
display: none;
|
|
207
|
+
position: absolute;
|
|
208
|
+
background-color: #f1f1f1;
|
|
209
|
+
min-width: 150px;
|
|
210
|
+
max-width: 350px;
|
|
211
|
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
212
|
+
z-index: 11;
|
|
213
|
+
font-family: Arial,Helvetica,sans-serif;
|
|
214
|
+
font-size: 1em;
|
|
215
|
+
overflow: auto;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.atala_bookmark_header{
|
|
219
|
+
font-size: 1.3em;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.atala_bookmark_content li,ul {
|
|
223
|
+
color: black;
|
|
224
|
+
padding: 9px 9px;
|
|
225
|
+
text-decoration: none;
|
|
226
|
+
display: block;
|
|
227
|
+
cursor: pointer;
|
|
228
|
+
user-select: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.atala_bookmark_content a:hover {background-color: #ddd}
|
|
232
|
+
|
|
233
|
+
/* Create the caret/arrow with a unicode, and style it */
|
|
234
|
+
.atala-bookmark-caret::before {
|
|
235
|
+
content: "\25BA";
|
|
236
|
+
color: black;
|
|
237
|
+
display: inline-block;
|
|
238
|
+
margin-right: 6px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
|
|
242
|
+
.atala-bookmark-caret-down::before {
|
|
243
|
+
transform: rotate(90deg);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* Hide the nested list */
|
|
247
|
+
.atala-bookmark-nested {
|
|
248
|
+
display: none;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
|
|
252
|
+
.atala-bookmark-active {
|
|
253
|
+
display: block;
|
|
254
|
+
}
|
|
255
|
+
|
|
204
256
|
.atala_tiled_page_image {
|
|
205
257
|
display: flex;
|
|
206
258
|
flex-direction: row;
|
|
@@ -210,4 +262,13 @@ button.atala-upload-files-cancel-button {
|
|
|
210
262
|
flex-direction: column;
|
|
211
263
|
padding: 0px;
|
|
212
264
|
font-size: 0;
|
|
213
|
-
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/* .atala_cover_for_tiled_page_image{
|
|
268
|
+
width: 100%;
|
|
269
|
+
height: 100%;
|
|
270
|
+
position: absolute;
|
|
271
|
+
top: 0;
|
|
272
|
+
left: 0;
|
|
273
|
+
z-index: 1;
|
|
274
|
+
} */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
//-------------------------------------------------------------------------------------------------
|
|
2
2
|
//
|
|
3
3
|
// Type definition file for Atalasoft Web Document Viewer.
|
|
4
|
-
// (C) 2003-
|
|
4
|
+
// (C) 2003-2022 Kofax. All Rights Reserved.
|
|
5
5
|
//
|
|
6
6
|
// This source code is property of Atalasoft, Inc. (http://www.atalasoft.com/)
|
|
7
7
|
// Permission for usage and modification of this code is only permitted
|
|
8
8
|
// with the purchase of a source code license.
|
|
9
9
|
//-------------------------------------------------------------------------------------------------
|
|
10
|
-
// Version 11,
|
|
10
|
+
// Version 11,3,0,702
|
|
11
11
|
|
|
12
12
|
export as namespace Atalasoft;
|
|
13
13
|
interface NotificationCallback {
|
|
@@ -58,6 +58,14 @@ interface DocumentPageReference{
|
|
|
58
58
|
index: number;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
interface BookmarkData{
|
|
62
|
+
id: number;
|
|
63
|
+
Page: number;
|
|
64
|
+
Top: number;
|
|
65
|
+
Text: string;
|
|
66
|
+
Children: BookmarkData[];
|
|
67
|
+
}
|
|
68
|
+
|
|
61
69
|
interface DocumentInfo{
|
|
62
70
|
count: number;
|
|
63
71
|
dpi: number;
|
|
@@ -414,8 +422,33 @@ export namespace Controls {
|
|
|
414
422
|
* @param callback Function to execute when the operation has completed.
|
|
415
423
|
*/
|
|
416
424
|
public rotatePages(indices: number[]|string[], angles: number|number[]|string[], callback?: NotificationCallback): void;
|
|
417
|
-
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Gets all bookmarks for PDF document.
|
|
428
|
+
*/
|
|
429
|
+
public getBookmarks(): BookmarkData[];
|
|
418
430
|
|
|
431
|
+
/**
|
|
432
|
+
* Gets an array of child bookmarks relative to specified.
|
|
433
|
+
* @param {BookmarkData} bookmark - the bookmark object for which children are searched.
|
|
434
|
+
*/
|
|
435
|
+
public getChildBookmarks(bookmark: BookmarkData): BookmarkData[];
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Scrolls viewer to the specified bookmark.
|
|
439
|
+
* @param {BookmarkData} bookmark - the bookmark object to scroll to.
|
|
440
|
+
* @param {NotificationCallback} [callback] - Function to be called when the operation has completed.
|
|
441
|
+
*/
|
|
442
|
+
public scrollToBookmark(bookmark: BookmarkData, callback?: NotificationCallback): void;
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Removes whole information about the bookmarks from PDF document.
|
|
447
|
+
* @param {NotificationCallback} [callback] - Function to be called when the operation has completed.
|
|
448
|
+
*/
|
|
449
|
+
public removeAllBookmarks(callback?: NotificationCallback): void;
|
|
450
|
+
|
|
451
|
+
//#endregion
|
|
419
452
|
}
|
|
420
453
|
|
|
421
454
|
/**
|
|
@@ -568,6 +601,8 @@ export namespace Controls {
|
|
|
568
601
|
savefileformat?: string;
|
|
569
602
|
savepath?: string;
|
|
570
603
|
scripturl?: string;
|
|
604
|
+
savepreviouslysigneddocument?: boolean;
|
|
605
|
+
showbookmarks?: boolean;
|
|
571
606
|
showbuttontext?: boolean;
|
|
572
607
|
showerrors?: boolean;
|
|
573
608
|
showpageborder?: boolean;
|
|
@@ -1148,6 +1183,11 @@ export namespace Controls {
|
|
|
1148
1183
|
annotation: AnnotationData;
|
|
1149
1184
|
}
|
|
1150
1185
|
|
|
1186
|
+
interface AnnotationChangedEvent{
|
|
1187
|
+
annotation: AnnotationData;
|
|
1188
|
+
annobefore: AnnotationData;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1151
1191
|
interface AnnotationsLoadedEvent{
|
|
1152
1192
|
annotation: AnnotationData;
|
|
1153
1193
|
}
|