Display a PDF document on an ASP.net page

Can anyone suggest me which is the best way to display a PDF document on an aspx page. I want users to use the zoom feature when viewing a PDF document.

Thanks in advance

+2
source share
4 answers

If you have a PDF in memory, use one of the Stream objects to split it into a byte array (possibly using the .ToArray () function of the MemoryStream class). In this example below, an array of bytes is called data:

Response.ContentType = "Application/pdf";

Response.OutputStream.Write(data, 0, data.Length);

: , , , PDF . , , PDF -. , , embed, . , PDF ,

<embed id="Embed1" src='<%# pdfLocation() %>' runat="server" name="pdfLoad"></embed>

pdfLocation PDF.

+1

PDF PDF.

+1

, Flash , Adobe FlashPaper. PDF, , , Adobe Reader Foxit Reader. , , , , , Scribd.

0

, - ?

Edit - Thats, , , , .

-1

Source: https://habr.com/ru/post/1765343/


All Articles