web-document-viewer 11.2.11 → 11.3.1

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.
@@ -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
 
@@ -200,3 +201,74 @@ button.atala-upload-files-cancel-button {
200
201
  width: 32px;
201
202
  height: 32px;
202
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
+
256
+ .atala_tiled_page_image {
257
+ display: flex;
258
+ flex-direction: row;
259
+ }
260
+
261
+ .atala_tile_column {
262
+ flex-direction: column;
263
+ padding: 0px;
264
+ font-size: 0;
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
+ } */
@@ -7,7 +7,7 @@
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,2,0,578
10
+ // Version 11,3,0,681
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
- //#endregion
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;
@@ -579,6 +614,7 @@ export namespace Controls {
579
614
  showstatus?: boolean;
580
615
  singlepage?: boolean;
581
616
  tabular?: boolean;
617
+ tiling?: boolean;
582
618
  toolbarbuttons?: ToolbarButtonConfig[];
583
619
  toolbarparent?: Record<string, any>;
584
620
  upload?: FileUploadConfig;
@@ -1147,6 +1183,11 @@ export namespace Controls {
1147
1183
  annotation: AnnotationData;
1148
1184
  }
1149
1185
 
1186
+ interface AnnotationChangedEvent{
1187
+ annotation: AnnotationData;
1188
+ annobefore: AnnotationData;
1189
+ }
1190
+
1150
1191
  interface AnnotationsLoadedEvent{
1151
1192
  annotation: AnnotationData;
1152
1193
  }