pdfjs

Creating and showing pdf in Ionic

戏子无情 提交于 2019-11-30 22:15:30
I am using PDFMAKE to create a base64 encoded pdf and I tried to show it with the Iframe by giving the encoded base64 to iframe src. It works on PC but it didn't work on the mobile ( android and ios ). So, finally I stumbled upon Angularjs-PDF to show the pdf. Now, I am able see the pdf in mobile. But when I try to give custom width and height respective to device it takes. But the problem arises when I use zoom functionality, the page gets zoomed but it goes out of the screen. I can not even slide or swipe to see the content outside of the screen. I want to make a pdf on the client side and

Generating thumbnail of a pdf using PDF.js

倾然丶 夕夏残阳落幕 提交于 2019-11-29 02:37:36
I would like to generate a thumbnail from a pdf file using PDF.js, but it isn't like anothers js that have just one file and all needed to include the js in your project is to write: <script src="any.js"></script> How can I use PDF.js in my project? I'm using PHP in backend. async5 Based on helloworld example : function makeThumb(page) { // draw page to fit into 96x96 canvas var vp = page.getViewport(1); var canvas = document.createElement("canvas"); canvas.width = canvas.height = 96; var scale = Math.min(canvas.width / vp.width, canvas.height / vp.height); return page.render({canvasContext:

RDLC Local report viewer for ASP.NET Core and Angular(>2.0)

落爺英雄遲暮 提交于 2019-11-28 23:50:52
Is there any way to show RDLC Local ReportViewer control in asp.net core webpage? To show a ReportViewer, on a traditional WebForms application, the below code works. <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div style="height: 600px;"> <rsweb:ReportViewer ID="reportViewer" runat="server" Width="100%" Height="100%"></rsweb:ReportViewer> </div> </form> </body> I have already tried and tested the below components. The results are given below. ReportViewerForMvc - Works for MVC, but not compatible with ASPNET Core.

Generating thumbnail of a pdf using PDF.js

谁说胖子不能爱 提交于 2019-11-27 16:57:25
问题 I would like to generate a thumbnail from a pdf file using PDF.js, but it isn't like anothers js that have just one file and all needed to include the js in your project is to write: <script src="any.js"></script> How can I use PDF.js in my project? I'm using PHP in backend. 回答1: Based on helloworld example: function makeThumb(page) { // draw page to fit into 96x96 canvas var vp = page.getViewport(1); var canvas = document.createElement("canvas"); canvas.width = canvas.height = 96; var scale

RDLC Local report viewer for ASP.NET Core and Angular(>2.0)

丶灬走出姿态 提交于 2019-11-27 13:14:23
问题 Is there any way to show RDLC Local ReportViewer control in asp.net core webpage? To show a ReportViewer, on a traditional WebForms application, the below code works. <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div style="height: 600px;"> <rsweb:ReportViewer ID="reportViewer" runat="server" Width="100%" Height="100%"></rsweb:ReportViewer> </div> </form> </body> I have already tried and tested the below components. The