Questions tagged [pdfobject]

PDFObject is an easy-to-use method for dynamically embedding PDF files into HTML documents. It uses JavaScript to generate and inject a standardsfriendly element into your HTML file.

PDFObject is, according to its website, an easy-to-use method for dynamically embedding PDF files into HTML documents. It uses JavaScript to generate and inject a standards friendly <object> element into your HTML file.

42 questions
9
votes
4 answers

Embed a Blob using PDFObject

I'm using: https://pdfobject.com/ To display an embedded pdf file on my web app. However I cannot render a pdf created from a blob. This is what I've tried: var arrayBufferView = new Uint8Array(response.Body.data); var file = new…
Pablo Estrada
  • 3,182
  • 4
  • 30
  • 74
8
votes
0 answers

How to customize filename in browsers builtin PDF viewer for base64 pdfs

I'm embedding PDFs from a base64 string like this: var pdfData = 'data:application/pdf;filename=MY_CUSTOM_FILENAME.pdf;base64,' + 'JVBERi0xLjcKCjEgMCBvYmogICUgZW50cnkgcG9pbnQKPDwKICAvVHlwZSAvQ2F0YWxvZwog' + …
Aero WuBook
  • 173
  • 1
  • 6
6
votes
1 answer

Rotate object tag (PDF) in Javascript

i'm trying to rotate an object tag that contains a PDF viewed by Acrobat Plugin via AcroPdf.dll. I already saw this solution but don't rotate the PDF itself on >=IE9 (works on chrome) I'm using jQuery 1.11.3 and PDFObject 1.2 and i can't change the…
Manuel Spigolon
  • 11,003
  • 5
  • 50
  • 73
4
votes
2 answers

Display embedded PDF in Internet Explorer 11 from binary string or base64

There is a 3rd party service which sends me a PDF file in either binary string or base64 encoded. Is there any possibility to display the PDF embedded in IE 11 using either binary string or base64 encoded. From SO and other forums, I concluded that…
roray
  • 756
  • 1
  • 16
  • 35
4
votes
1 answer

Detecting when a pdf finishes loading within an object tag

I'm using PDFObject to embed a pdf on a webpage. The resulting markup is: I need to run some javascript when the pdf…
Filipe Correia
  • 5,415
  • 6
  • 32
  • 47
3
votes
1 answer

JS Plugin to avoid copy from pdf

I am looking for a JS Plugin that let me to show 1. PDF Document in Web browser 2. (Most Important)Text in that PDF must not be copied by other I have tried using PDFObject that allowed me to embed PDF Document into my HTML document here…
user13647429
2
votes
1 answer

How to decode image with /ASCIIHexDecode

I'm trying to extract images from PDF files using iTextSharp. The process is working for most of PDF files I have but fails with some others. Especially, I observe that failing PDF has images with filter /ASCIIHexDecode and /CCITTFaxDecode. How to…
Steve B
  • 36,818
  • 21
  • 101
  • 174
2
votes
1 answer

Pass value from viewmodel to script in zk

I am trying to use PDFObject to show the pdf files inline. The application may contain many files. All the files are shown in the list. On clicking any one of the file, the pdf should be viewable if browser contains the pdf plugin or else show some…
Roshan Shahukhal
  • 243
  • 4
  • 15
1
vote
2 answers

PDFObject is not showing correctly in the browser

I'm trying to render a embed pdf file using PDFObject. In the backend I send the pdf as follows fs.readFile(uploadFileFd, function (err,data){ res.contentType("application/pdf"); res.send(data); }); After that I'm get the response in the…
dilver
  • 55
  • 2
  • 11
1
vote
0 answers

PDFObject.js embed pdf byte array

I am using PDFObject.js to load PDF document in JSF pages.