Questions tagged [pdfium]

PDFium is an open-source PDF rendering engine used in Chrome web browser.

PDFium is an open-source PDF rendering engine used in Chrome web browser.

PDFium is available under BSD license.

Source code available at pdfium.googlesource.com/pdfium.

123 questions
13
votes
3 answers

Adding pdfium.dll to visual studio

For the application that I am making, I need to make use of the Pdfiumviewer package, which in turn requires you to add Pdfium itself, which is made available by Google. There is a "tutorial" on how to add pdfium on the official site but I haven't…
Melvin Winthagen
  • 277
  • 1
  • 2
  • 9
9
votes
1 answer

PDF downloading directly in Google Chrome -- how to display in browser window instead?

I have been using Google Chrome and recently I have re-installed my browser. I found that whatever PDF links I open are directly downloading. However, I want them to be view on browser. How can I do this? Chrome is an updated version.
S K padala
  • 251
  • 2
  • 3
  • 16
8
votes
2 answers

Build PDFium in Android

I am facing a problem. I have to add a PDF reader support to my Android App (now I'm using Mupdf but I need to change it). I found PDFium project (https://code.google.com/p/pdfium/) and I think it is what I need for my needs. I haven't too much…
peskarolo
  • 133
  • 2
  • 5
5
votes
2 answers

How to convert a PDF to a Bitmap image using PdfiumViewer?

I would like to grab a PDF from my hard disc and convert it to a bitmap image. How can I accomplish this using PdfiumViewer?
user10878445
5
votes
0 answers

Printing quality to match adobe reader

I'm using C# and the PDFium library to print a PDF to a particular label printer. When I print this PDF via Chrome, Edge, or my application, the quality is questionable. When I print through Adobe Reader or Foxit Reader, the quality is exactly what…
Troncoso
  • 2,343
  • 3
  • 33
  • 52
5
votes
1 answer

Call pdfium (chrome native pdf viewer) from javascript

I am aware that pdfium exposes a javascript API (see this question). But I can't find how to call those functions. On a page with a rendered PDF I can see an embed tag, but I don't know what to do with it. var p = …
4
votes
0 answers

Pdf Bookmarks not working in Bartekc Android Pdf Library

Bookmarks not working in Barteksc Pdf Library I am currently using the Barteksc Pdf library (v.3.1.0-Beta) for my Android app. But, the Barteksc Pdf library is not Supporting Pdf Bookmarks. When I click on the bookmark on my android app it doesn't…
Sam Joshua
  • 310
  • 6
  • 17
4
votes
1 answer

How can fonts be loaded into a PDF document with PDFiumSharp?

I'm trying to add a custom font (otf file or for testing purpose ttf) to my PDF document to render text page objects with. The rendered text is always the same gibberish like ÿÿÿÿÿÿe ('e' might be the last char of my string or a random character).…
cf16
  • 81
  • 8
4
votes
0 answers

Restricting search only to Iframe

Is there any way to restrict the browser's CTRL+F to search only within the contents of an iframe? The problem here is that I have an iframe which is displaying a PDF rendered by pdfium. Now when I am trying to search using CTRL+F, it also…
user-17171
  • 45
  • 9
4
votes
3 answers

How to resolve "The located assembly's manifest definition does not match the assembly reference." error?

I downloaded source code for pdfiumviewer from git hub. I made changes to one of the projects in that solution.Then I added that project to my application and added reference of that project to one my application's project.I had to uncheck the…
V K
  • 1,645
  • 3
  • 26
  • 57
4
votes
3 answers

Get original Size of PDF

I want to get the same image quality as if I would use the export pdf to png from Adobe Acrobat. But somehow this does not work for me. The dimensions that I get if I export the pdf to a png with help of the Adobe Acrobat tool are: Width:11264…
Niko.K
  • 297
  • 4
  • 17
4
votes
2 answers

does pdfium expose its api to javascript? i want to get the number of current page, but how to do this?

as we all know pdfium is now part of chrome, and this is a nice pdf render, but i am confronted with some problem. the code is as follows, the default page is 12 as sepcified by the #page=12 assignment, when this page is opened, i could jump or…
hugemeow
  • 7,777
  • 13
  • 50
  • 63
3
votes
1 answer

ways to separate passages in pdf using gap?

I have some pdf's with 2-3 passages for every page. every passage is separated by some line gap, but while reading with pymupdf, I cannot see any machine printable separator between passages. is there any other way, other library can do…
3
votes
1 answer

Problems with reading blob field - out of memory

I have an application in Delphi 7, where I made the code below to load large PDF files from a blob field to memory and then I load the PDF, it works perfect with large files I have already tested with 1 gigabyte files. However, somewhere there is a…
claudioprv
  • 199
  • 1
  • 1
  • 7
3
votes
1 answer

What are the correct options to compile PDFium for Android?

I am trying to build PDFium for Android. I am using a Debian stretch. I executed the following commands : > mkdir build > cd build > mkdir build/source > cd source > gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git > echo…
A. V.
  • 61
  • 7
1
2 3
8 9