Ajax/ASP.Net-powered PDF Viewer/Editor

Currently, I am working on a project that aims to enable document reading directly within the browser, eliminating the need for any additional software installations. This feature is intended to be a crucial part of a management application tailored for businesses. Despite experimenting with iTextSharp and PDFSharp libraries, I have discovered that they do not offer the functionality I require; these tools mainly focus on generating PDFs from HTML content. However, during my search for an alternative solution, I came across an intriguing project developed by Mozilla Lab. Mozilla's innovative technology enables PDF documents to be rendered directly in the browser without the necessity of a plug-in or external application. Learn more about pdf.js here

I am now curious about integrating this script with ASP.Net. If it is feasible, I would greatly appreciate your guidance on relevant source code or recommended links for successfully implementing this solution.

Answer №1

I think the link you mentioned is all about generating a PDF file within the browser, rather than displaying an existing PDF file in the browser.

On that note, there's an intriguing project called pdf.js that focuses on rendering PDF files using JavaScript and HTML5. It functions as a JavaScript library that takes PDF bytes and attempts to display them. This means you can easily incorporate it into any website regardless of the server-side technology by simply including the script and making the necessary calls. Check out this basic example to get started.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Tips for Avoiding the (!Page.IsPostBack) Method when Redirecting from Another Page

Despite my efforts, I have been unsuccessful in bypassing a method when redirected from another page. I am looking for a way to achieve this by simulating the behavior of (!Page.IsPostback) in ASP.NET. For example, Let's say Form A contains a method ...

Is it possible to extend the Object class in order to automatically initialize a property when it is being modified?

My experience with various programming languages leads me to believe that the answer is likely a resounding no, except for PHP which had some peculiar cases like $someArray['nonexistentKey']++. I'm interested in creating a sparse object whe ...

Display only alphabetic characters in the text field

I have a jQuery function that I am working on: $('#contact_name').on('input', function() { var input=$(this); var re =/^[A-Za-z]+$/; var is_email=re.test(input.val()); if(is_email) { } else { } }); This function is targeted at the fol ...

Issues with Jquery content sliders

I am really struggling with this piece of code and I just can't seem to figure out what's causing the issue. If anyone has any insight on how I can make it display a slide for 3 seconds, fade out, show a new slide, and then loop back to the first ...

transferring information between two html pages using javascript

Although this question has been raised multiple times, I have gone through the answers and attempted various solutions, however, my code is still not functioning correctly. Below are my working files : my_app -index.html -task1 -index.html I ...

When using the Google API load callback, the Angular(4) router does not actually replace routes; instead, it stacks them up each time

I've been attempting to implement Google Authentication in my Angular 4 application. I have successfully loaded the Google platform.js and api.js in my index.html file. When I click on the login button, this is what I have coded: gapi.load('auth ...

Insert the entered value into the table

I'm struggling to extract the content from an input textfield and insert the value into a table row. However, every time someone submits something, the oldest post shifts down by one row. Below is my current attempt, but I'm feeling quite lost at ...

Accept only numerical values, addition and subtraction symbols, commas, the F5 key, and various other characters

I want to restrict key strokes to only numbers (including those on the numpad), minus (-) and plus (+) signs, and commas (,). Currently, it types twice when I input a number (e.g. 2 is displayed as 22) and replaces the current value with the new number. F ...

The function JSON.parse(data) may result in an undefined value being returned

data = { "users": [ [{ "value": "01", "text": "ABC XYZ" }], [{ "value": "02", "text": "XYZ ABC" }] ] } var jsonData = JSON.parse(data); for (var i = 0; i < jsonData.users.length; i++) { var userlist = json ...

Looking for an uncomplicated SSO system similar to Google Identity Toolkit but with a customizable UI interface?

I'm really impressed with the Google Identity Toolkit, it's so user-friendly and easy to set up! However, I'm having trouble with the fact that it forces me to use its UI. Is there another option available that will allow visitors to simply ...

What is the best way to transfer a multidimensional array from PHP to JavaScript?

Attempting to extract array value from a JSON string, I utilize the json_decode function in PHP. <?php $jsonContent=file_get_contents('http://megarkarsa.com/gpsjson.php'); $jsonDecoded=json_decode($jsonContent,true); foreach($jsonEncoded[&apo ...

Production environment causing VueJs components to not update their style accordingly

Recently, I deployed a Vue app that was integrated with Laravel on a shared hosting platform. However, I encountered an issue after updating a component's style and running the production command again. Despite redeploying and updating the "public/app ...

Executing a Google Script will result in a newly inserted column automatically adopting the

My coding issue involves a simple scenario where cell A1 contains a date, for example 06/06/2017. What I aim to do is add three columns and apply formulas to them. I insert columns using the following code: ss.insertColumns(1,3); Subsequently, I set for ...

The Soundcloud ajax response failed to be delivered

I'm attempting to retrieve user data from SoundCloud using this query. Although I can see the successful call in the Chrome network tab after clicking, the JSON response is not reaching the javascript alert as expected. This is preventing me from addi ...

The error message "Blazor WebAssembly JSRuntime.InvokeVoidAsync - blazor.webassembly.js:1 Uncaught (in promise) TypeError: Converting circular structure to JSON" indicates that

I have implemented the drawio-integration project in my Blazor WebAssembly application. https://github.com/jgraph/drawio-integration This is how the simple helloworld sample appears: <img onclick='DiagramEditor.editElement(this);' src=" ...

Tips for changing array items into an object using JavaScript

I am working with a list of arrays. let arr = ["one","two"] This is the code I am currently using: arr.map(item=>{ item }) I am trying to transform the array into an array of sub-arrays [ { "one": [{ ...

What could be causing the information from the ajax call to not appear in this popover?

Hovering over a link will trigger a popover with a 1 second delay containing user profile information, loaded using AJAX. $(function() { var timer = null; var xhr = null; $('.user_popup').hover( function(event) { ...

Is there a way to incorporate locales in calculations involving percentages?

Given the number 4030.146852312 I want to retrieve the four decimal places from this number, resulting in: 4030.1468 Furthermore, I need to format this number according to the specified locale. For example: 4.030,1468 What is the best way to achieve thi ...

Prevent onlick actions until JavaScript function has completed

I run a dynamic quiz website using PHP, JavaScript, and MySQL. The quiz consists of multiple choice questions with answer options displayed on four buttons. <input type = "button" value="$alt1" onClick="changeQuestion('alternative1'); this.st ...

Node.js implementation for processing batches of data from the Youtube Data API

I'm looking to leverage the Youtube API for batch processing multiple video ids in a single request. Currently, I'm able to successfully make individual requests by appending the video id, request parameters, and API key to the following url: ? ...