|
21 | 21 |
|
22 | 22 | package com.openkm.frontend.client.util; |
23 | 23 |
|
| 24 | +import java.util.List; |
| 25 | +import java.util.Map; |
| 26 | + |
24 | 27 | import com.google.gwt.core.client.GWT; |
25 | 28 | import com.google.gwt.event.dom.client.KeyUpEvent; |
26 | 29 | import com.google.gwt.http.client.URL; |
|
33 | 36 | import com.openkm.frontend.client.service.OKMGeneralService; |
34 | 37 | import com.openkm.frontend.client.service.OKMGeneralServiceAsync; |
35 | 38 |
|
36 | | -import java.util.List; |
37 | | -import java.util.Map; |
38 | | - |
39 | 39 | /** |
40 | 40 | * Util |
41 | 41 | * |
@@ -567,47 +567,39 @@ public static native void resizeSwfViewer(String width, String height) /*-{ |
567 | 567 | obj.height = height; |
568 | 568 | }-*/; |
569 | 569 |
|
570 | | - public static native void createPDFViewerFlexPaper(String pdfUrl, String width, String height, String printEnabled) /*-{ |
571 | | - if (printEnabled == 'true') { |
572 | | - fpViewer = "../js/flexpaper/FlexPaperViewer.swf"; |
573 | | - } else { |
574 | | - fpViewer = "../js/flexpaper/FlexPaperViewerRO.swf"; |
575 | | - } |
576 | | -
|
577 | | - pdfUrl = encodeURIComponent(pdfUrl); |
578 | | - $wnd.swfobject.embedSWF(fpViewer, "pdfviewercontainer", width, height, "10.0.0", "playerProductInstall.swf", |
579 | | - { |
580 | | - SwfFile: pdfUrl, |
581 | | - Scale: 0.6, |
582 | | - ZoomTransition: "easeOut", |
583 | | - ZoomTime: 0.5, |
584 | | - ZoomInterval: 0.1, |
585 | | - FitPageOnLoad: false, |
586 | | - FitWidthOnLoad: true, |
587 | | - PrintEnabled: printEnabled, |
588 | | - FullScreenAsMaxWindow: false, |
589 | | - ProgressiveLoading: true, |
590 | | -
|
591 | | - // PrintToolsVisible : printEnabled, |
592 | | - ViewModeToolsVisible: true, |
593 | | - ZoomToolsVisible: true, |
594 | | - FullScreenVisible: true, |
595 | | - NavToolsVisible: true, |
596 | | - CursorToolsVisible: true, |
597 | | - SearchToolsVisible: true, |
598 | | - localeChain: "en_US" |
599 | | - }, |
600 | | - { |
601 | | - quality: "high", |
602 | | - bgcolor: "#ffffff", |
603 | | - allowscriptaccess: "sameDomain", |
604 | | - allowfullscreen: "true" |
605 | | - }, |
606 | | - { |
607 | | - id: "FlexPaperViewer", |
608 | | - name: "FlexPaperViewer" |
609 | | - }); |
610 | | - }-*/; |
| 570 | + public static native void createPDFViewerFlexPaper(String pdfUrl, String width, String height) /*-{ |
| 571 | + fpViewer = "../js/flexpaper/FlexPaperViewer.swf"; |
| 572 | + pdfUrl = encodeURIComponent(pdfUrl); |
| 573 | + $wnd.swfobject.embedSWF(fpViewer, "pdfviewercontainer", width, height, "10.0.0", "playerProductInstall.swf", |
| 574 | + { |
| 575 | + SwfFile : pdfUrl, |
| 576 | + Scale : 0.6, |
| 577 | + ZoomTransition : "easeOut", |
| 578 | + ZoomTime : 0.5, |
| 579 | + ZoomInterval : 0.1, |
| 580 | + FitPageOnLoad : false, |
| 581 | + FitWidthOnLoad : true, |
| 582 | + FullScreenAsMaxWindow : false, |
| 583 | + ProgressiveLoading : true, |
| 584 | + ViewModeToolsVisible : true, |
| 585 | + ZoomToolsVisible : true, |
| 586 | + FullScreenVisible : true, |
| 587 | + NavToolsVisible : true, |
| 588 | + CursorToolsVisible : true, |
| 589 | + SearchToolsVisible : true, |
| 590 | + localeChain: "en_US" |
| 591 | + }, |
| 592 | + { |
| 593 | + quality : "high", |
| 594 | + bgcolor : "#ffffff", |
| 595 | + allowscriptaccess : "sameDomain", |
| 596 | + allowfullscreen : "true" |
| 597 | + }, |
| 598 | + { |
| 599 | + id : "FlexPaperViewer", |
| 600 | + name : "FlexPaperViewer" |
| 601 | + }); |
| 602 | + }-*/; |
611 | 603 |
|
612 | 604 | public static native void resizePDFViewerFlexPaper(String width, String height) /*-{ |
613 | 605 | obj = $wnd.swfobject.getObjectById('FlexPaperViewer'); |
|
0 commit comments