Questions tagged [pdf-rendering]

54 questions
2
votes
1 answer

How to place text over image in react-pdf/renderer

I'm currently trying to place a text over an image that is covering the entire page in react-pdf renderer. Does anyone know how to do this? Tried checking the issues in their docs and found this thread:…
2
votes
1 answer

Repair PDFium crashes for old Android versions or include own library

I have an Android app which uses the standard PdfRenderer to render PDFs. It is working so far so good and I managed to get rid of the most of the errors in the app. The only error I have no idea how to get rid of is: signal 11 (SIGSEGV), code 1…
2
votes
0 answers

Rendering of XHTML to PDF is slow on FlyingSaucer with OpenPDF library

Any chance to improve XHTML to PDF rendering speed in FlyingSaucer /OpenPDF ? I am using version 9.1.20 of flying-saucer-pdf-openpdf library. Simple XML took almost 5 seconds. Took 0.5 sec with the flying-saucer-pdf lib. org.w3c.dom.Document doc =…
JMX
  • 21
  • 1
  • 6
2
votes
0 answers

Failed using pdfRenderer on my device : 'void dalvik.system.CloseGuard.warnIfOpen()'

I tried to display PDF with this example from YouTube : "PDFRenderer APIs to display PDF documents" It works with an emulator (even if the page is not displayed on the entire screen, it's another problem), but when I try on my own device, I've this…
Nicolaz
  • 149
  • 1
  • 8
2
votes
1 answer

VFR Reader detect when page did rendered

I'm using vfrReader and I found that drawLayer:inContext in ReaderContentPage.m called multiple times during rendering. Is it possible to catch page did rendered event?
ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
2
votes
0 answers

Why am I getting a PDFParseException when attempting to get a page of a PDFFile instance?

I am using PDFRenderer version 0.9.1 to convert PDFs to PNG programmatically in ColdFusion. Here is the UDF I've written to do this:
Eric Belair
  • 10,574
  • 13
  • 75
  • 116
2
votes
2 answers

Render HTML or GSP as a PDF and save it on server

I have an html template which I need to render as a .PDF and then save that pdf file on server. I'm using "rendering" plugin of grails. I'm able to render file as PDF but I don't understand how to save it on server location and not on user's system.…
jdev1
  • 141
  • 2
  • 14
2
votes
1 answer

Render/Dispaly and Play youtube video embedded in pdf, Android

I have an PDF that contains hyperlinks and YouTube video embedded in it. Target : Need to open PDF and all hyperlinks and videos should be working. Findings : I have tried many of projects and third-party applications. Most of them use MuPDF, and…
Chanchal Shelar
  • 363
  • 2
  • 12
2
votes
1 answer

Render times for PDF page components (parsing, fonts, graphics, etc)

I would like to know which operations in PDF page rendering (for a common technical book) take the most time. Is it font rendering? Is it objects parsing? Is it graphics drawing? Or what else?
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
1 answer

values of levelOfDetail and levelsOfDetailBias to render pdf on CATiledLayer in ios

i am developing a project in which i render PDF on the CATiledLayers.I have Used the CGPdf class methods to render the pdf and succeeded too. I would like to know the values to be used for levelsOfDetail and levelsOfDetailBias for avoiding any…
Dinakar
  • 1,198
  • 15
  • 37
1
vote
0 answers

ipad / objective c - create a low resolution image prior to pdf page rendering

Obviously during the rendering of a high quality PDF, there can be a decent amount of time taken to completely draw the page, I'm trying to find a way to efficiently display a low quality image of that PDF page (ala iBooks) in order to make this…
wierddemon
  • 223
  • 1
  • 2
  • 10
1
vote
0 answers

Is there a way to display a PDF from an output stream from a decryption cipher

I am currently working on an android application that stores sensitive documents that are encrypted on the device. When the user opens the document it decrypts it and displays it to them. I have figured out the encryption I am just not sure how to…
Trax Bagley
  • 101
  • 4
1
vote
0 answers

Does drawing PDF on a layer take much memory in iPhone?

Hi i am working on a PDF reader application.For zoom scale of 1 or less then 1(i.e normal mode)I render pdf on a CALayer,this layer is attached to a view which is subView of a scroll view.For zoom scales more than 1 i am creating a tiled layer and…
Hariprasad
  • 1,094
  • 2
  • 12
  • 30
1
vote
0 answers

Register additional fonts for PDFBox rendering

Since 2.0 PdfBox can render embedded fonts. However I can not influence what PDFs come in and there are certain PDFs without embedded fonts. In that case the fonts installed on the system are used. Now due to some restriction I can also not install…
Lonzak
  • 9,334
  • 5
  • 57
  • 88
1
vote
1 answer

The PDF renderer class is not rendering a PDF on Android SDK 21

Here's the code I'm using to render a PDF called "answerkey.pdf" that's stored in "Download/Adobe Reader/answerkey.pdf" package com.practice.pdftest; import android.app.Activity; import android.content.Context; import…
starship9
  • 93
  • 1
  • 8