146
questions
85
votes
3
answers
185k
views
Pdf.js: rendering a pdf file using a base64 file source instead of url
I'm trying to render a page from a pdf with pdf.js
Normally, using a url, I can do this:
PDFJS.getDocument("http://www.server.com/file.pdf").then(function getPdfHelloWorld(pdf) {
//
// Fetch the ...
6
votes
3
answers
18k
views
How to render PDF using pdf.js viewer in PyQt?
I have tried adding the pdf.js viewer files in my project and it works in browsers like Chrome, Mozilla, Safari, etc, but it's not loading some pages in node-webkit and PyQt webkit.
I am trying to ...
28
votes
5
answers
90k
views
Pdf.js and viewer.js. Pass a stream or blob to the viewer
I'm having troubles in finding a solution for this:
I retrieve a PDF blob from a SQL filestream field using Javascript in this way (it's a lightswitch project)
var blob = new Blob([screen....
3
votes
1
answer
4k
views
How to use a external Javascript library (PDF lib) in Apps script?
I need to modify a PDF on a Apps script application. To do that I want to use a JS library : PDF-LIB
my code :
eval(UrlFetchApp.fetch("https://unpkg.com/pdf-lib/dist/pdf-lib.js")....
32
votes
16
answers
44k
views
How to know if PDF.JS has finished rendering?
I am using PDF.JS to render pdf pages into different canvas elements. my requirement is to capture the output of the canvas and to display it as an image. Is there some event to know if the rendering ...
97
votes
2
answers
187k
views
How to Use pdf.js [closed]
I am considering using pdf.js (an open source tool that allows embedding of a pdf in a webpage). There isn't any documentation on how to use it.
I assume what I do is make an html page with the ...
66
votes
11
answers
116k
views
How to display whole PDF (not only one page) with PDF.JS?
I've created this demo:
http://polishwords.com.pl/dev/pdfjs/test.html
It displays one page. I would like to display all pages. One below another, or place some buttons to change page or even better ...
28
votes
4
answers
59k
views
Use PDF.js to statically convert a PDF to HTML
PDF.js is the latest library from Mozilla, and is a standards-based PDF renderer that is written entirely in Javascript. Currently you cannot access the generated HTML, and the library can only be ...
43
votes
4
answers
74k
views
PDF.js scale PDF on fixed width
I have a fixed box where I want to display my PDF's in rendered by PDF.js. As PDF.js documentation is not really accessible (spitting through their source files), I'd like to know whether it's ...
26
votes
4
answers
38k
views
pdf.js with text selection
How to make the text in a PDF selectable?
Have tried here. The PDF is written fine, but no text selection
https://github.com/mozilla/pdf.js
https://github.com/mozilla/pdf.js/blob/master/web/...
22
votes
6
answers
67k
views
How to correctly extract text from a pdf using pdf.js
I'm new to ES6 and Promise. I'm trying pdf.js to extract texts from all pages of a pdf file into a string array. And when extraction is done, I want to parse the array somehow. Say pdf file(passed via ...
18
votes
5
answers
39k
views
RDLC Local report viewer for ASP.NET Core and Angular(>2.0)
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="...
13
votes
3
answers
13k
views
How do I retrieve text from user selection in pdf.js?
This question is specific to pdf.js, a javascript based pdf renderer. I'm building a custom version where I need to extract the text that I select inside the pdf.
There are other posts where you can ...
12
votes
1
answer
36k
views
PDF.JS: Render PDF using an ArrayBuffer or Blob instead of URL
I know of a similar question to this one: Pdf.js: rendering a pdf file using a base64 file source instead of url. That question was awesomely answered by Codetoffel but my question is different in ...
10
votes
5
answers
45k
views
Printing PDF using pdf.js
I am embedding a single page PDF in a page using pdf.js and I want to be able to print just the PDF, not the whole HTML page.
Is this possible?