Search the Community
Showing results for tags 'PDF Viewer'.
-
i have a problem trying to open files whit the UniPDFframe. this is the code that i am using for open the PDF, is like the code in the Example. folderUrl:= UniServerModule.FilesFolderURL + QR_Liquidaciones.FieldByName('nombrepdf').AsString; UniPDFFrame.PdfURL:= folderUrl; i want to open the PDF here \\192.168.0.150\Liquidaciones\ and the pdfurl is http://localhost/Prueba/pwug_cnf.dll///192.168.0.150/Liquidaciones/ this is the url that the componen concatenates http://localhost/Prueba/pwug_cnf.dll/ i am using the build 1558
-
Good afternoon. I comment my situation, make a project which deploys it in IIS. When I want to open the pdf, I get the address and the component automatically adds the path of the dll in front of the path that I provide, does anyone know how to solve it? or how to remove the path that concatenates me? this is the code that i am using for open the PDF, is like the code in the Example. folderUrl:= UniServerModule.FilesFolderURL + QR_Liquidaciones.FieldByName('nombrepdf').AsString; UniPDFFrame.PdfURL:= folderUrl; i want to open the PDF here \\192.168.0.150\Liquidaciones\ and the pdfurl is http://localhost/Prueba/pwug_cnf.dll///192.168.0.150/Liquidaciones/ this is the url that the componen concatenates http://localhost/Prueba/pwug_cnf.dll/ thanks.
-
Hi All!! A PDF Viewer Panel - No Browser Plugin required, pure JavaScript Source: http://www.sencha.com/forum/showthread.php?237361-A-PDF-Viewer-Panel-No-Browser-Plugin-required-pure-JavaScript Demo: http://SunboX.github.com/ext_ux_pdf_panel/demo/ Github Project: https://github.com/SunboX/ext_ux_pdf_panel How to use: TRY... 1. Download files: http://sunbox.github.io/ext_ux_pdf_panel/lib/pdf.js/compatibility.js --> copy to directory (/files/pdf/) sunbox.github.io/ext_ux_pdf_panel/lib/pdf.js/pdf.js --> copy to directory (/files/pdf/) http://sunbox.github.io/ext_ux_pdf_panel/ux/util/PDF/TextLayerBuilder.css --> copy to directory (/files/pdf/pdf/) http://sunbox.github.io/ext_ux_pdf_panel/ux/panel/PDF.js --> copy to directory (/files/pdf/pdf/) http://sunbox.github.io/ext_ux_pdf_panel/ux/util/PDF/TextLayerBuilder.js --> copy to directory (/files/pdf/pdf/) 2. Add CustomFiles in UniServerModule: files/pdf/compatibility.js files/pdf/pdf.js files/pdf/pdf/PDF.js files/pdf/pdf/TextLayerBuilder.js files/pdf/pdf/TextLayerBuilder.css 3. Paste into a form UniHTMLFrame1 and add UniHTMLFrame1.HTML...: <div id="pdfviewer" align="center"></div> 4. procedure TMainForm.UniButton1Click(Sender: TObject); begin UniSession.AddJS('if (Ext.get("pdfviewerpanel")) {Ext.get("pdfviewerpanel").remove()};'); UniSession.AddJS('Ext.create(''Ext.ux.panel.PDF'', {' + 'id : "pdfviewerpanel", ' + 'title : ''PDF Panel'',' + //'width : ' + IntToStr(UniHTMLFrame1.Width) + ' ,' + //'height : ' + IntToStr(UniHTMLFrame1.Height) + ',' + 'width : 489,' + 'height : 633,' + 'pageScale: 0.75,' + 'src : ''http://cdn.mozilla.net/pdfjs/tracemonkey.pdf'', ' + 'renderTo : "pdfviewer"' + //'renderTo : Ext.getBody()' + '});'); end; Best regards.