Questions tagged [pdf-rendering]
54 questions
12
votes
2 answers
Displaying PDF files with python3
I want to write a python3/PyGTK3 application that displays PDF files and I was not able to find a python package that allows me to do that.
There is pypoppler, but it looks outdated (?) and does not seem to support python3 (?)
Do you have any…

Fabian Henze
- 980
- 1
- 10
- 27
12
votes
3 answers
html-pdf npm library gives different output on windows & ubuntu
I'm using https://www.npmjs.com/package/html-pdf library which is based on Phantom JS which internally uses webkit. I'm pasting the dummy HTML & JS code(keep these files in 1 folder) and also attaching the output screenshot.
The issue I'm facing is…

Pranav Mahajan
- 2,048
- 2
- 23
- 36
11
votes
2 answers
PDF.js not rendering pdf correctly in IE
I am using PDF.js framework to render PDF. I am using base64 data to render PDF. But in IE 11 pdf looking blurry.
See below screen from IE 11
See below code :
var renderPDF = function(url, canvasContainer,data) {
var scale= 0.9; //"zoom"…

Tushar Ahirrao
- 12,669
- 17
- 64
- 96
9
votes
1 answer
CGContextDrawPDFPage memory Leak - App Crash
When I analyze my app with Instruments, I found out that data allocated by CGContextDrawPDFPage is not released immediately. App getting crash because of CGContextDrawPDFPage.
Hello here is my code for drawing pdf in CATiledlayer
-…

Ravindhiran
- 5,304
- 9
- 50
- 82
8
votes
4 answers
How to render whole pdf document using pdf.js library?
I tried rendering PDF document using pdf.js library. I know only basics in javascript and I am new to promises, so at first I followed advice on this page: Render .pdf to single Canvas using pdf.js and ImageData (2. answer). But as a result, I…
user3913960
8
votes
6 answers
How to display a pdf that has been downloaded in python
I have grabbed a pdf from the web using for example
import requests
pdf = requests.get("http://www.scala-lang.org/docu/files/ScalaByExample.pdf")
I would like to modify this code to display it
from gi.repository import Poppler, Gtk
def…

marshall
- 2,443
- 7
- 25
- 45
6
votes
0 answers
Android PdfRenderer throws IOException
My application lists PDF files, and when the user selects a PDF, the app opens it. If the user selects a corrupted PDF file, PdfRenderer throws IOException (which is fine, since I catch that exception and inform the user that the file is…

Aswin P Ashok
- 702
- 8
- 27
6
votes
2 answers
Convert malformed HTML to PDF using Flying Saucer PDF Rendering
In a project GitHub I'm trying to convert any arbitrary HTML string into a PDF version. By convert I mean parse the HTML, and render it into a PDF file.
To achieve that I'm using Flying Saucer PDF Rendering like this:
Main.java
public class Main {
…

lealceldeiro
- 14,342
- 6
- 49
- 80
4
votes
0 answers
PdfRendering zoom on page
I'm working on a project where I need to display PDF content inside our application.
I'm trying to use PdfRenderer of Android API. For now, I'm able to show a pdf page as bitmap and move between all other pages.
But I don't understand how to…

Nicolas Demoisson
- 83
- 9
4
votes
6 answers
pdf.js not working with Safari
We're testing out pdf.js and while it seems like an awesome project we can't get it working in Safari.
(Tested on PDF.JS version = 0.8.229 (latest) / Safari 5.1.9 - 6.0.4 / Mac OSX 10.6.8 - 10.8.3)
EXAMPLE:
This is an example of the demo code…

Yarin
- 173,523
- 149
- 402
- 512
4
votes
2 answers
How to render pdf within the android application using PDF library
I searched a lot on PDF rendering but not get proper answer.can anyone tell me which library (licensed under GPL) to render PDF and how to render that PDF.
If anyone has sample code then it will be more helpful for me.

mrbhatkande458
- 63
- 1
- 7
4
votes
2 answers
C# solution for rendering PDFs and OCRing the resulting images?
I'm looking for is a C# solution to import data from PDF documents into our database, in a commercial application. Our customers will be looking to import any arbitrary document. Ordinarily I'd write this off as a complete impossibility, but the…

Polynomial
- 27,674
- 12
- 80
- 107
3
votes
2 answers
How to read an existing pdf file using the itextpdf.jar file in java/Android
I want to read a pdf file using Java/Android from my SD card. I imported the itextpdf5.1.1.jar file in to Eclipse. I am able to read a file if I create a new file from an existing one, like this:
public void readPdfFile(String pFilename){
…

Tripaty Sahu
- 955
- 4
- 13
- 32
3
votes
1 answer
Network error while opening PDF within IE browser
Adobe Reader's browser plugin in Internet Explorer(all versions) displays the following message while rendering some Pdf's "A network error occurred while accessing this document on the Internet. Would you like to close the document or reload…

Lihkinisak
- 749
- 2
- 7
- 14
2
votes
1 answer
How to draw a PDF file with different font size?
I am currently working on a PDF Reader application. I draw PDF files in a tiled layer with animation.
Now I want to draw PDFs with different font size (not the size specified in PDF). How can I do this?

MinuMaster
- 1,457
- 1
- 13
- 29