Questions tagged [pdfrenderer]

An application or API that is capable of drawing a PDF to various display mediums (computer monitor, image files, printers).

An application or API that is capable of drawing a PDF to various display mediums (computer monitor, image files, printers).

135 questions
2
votes
0 answers

What is the relation between pdf coordinates (pdfbox library) and image coordinates (PDFRenderer of pdfbox 2.0.0)?

public String convertPdfPagesToImages(File file, String outputImageDir) { PDDocument document = null; try { document = PDDocument.load(file); PDFRenderer pdfRenderer = new PDFRenderer(document); for (int page = 0; page <…
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

JavaFX printing non node objects

I want to print a PDFFile object from the Pdf-Renderer library using javafx printing. Is it possible to print non Node objects? Currently i'm using AWT printing (check this example) but it doesn't go well with javafx because my javafx window freezes…
bazi
  • 1,758
  • 5
  • 27
  • 41
2
votes
1 answer

Need help with pdf-renderer

I'm using PDF-Renderer to view PDF files within my java application. It's working perfectly for normal PDF files. However, i want the application to be able to display encrypted PDF files. The ecrypted file will be decrypted with CipherInputStream,…
Dami Lola
  • 209
  • 1
  • 3
  • 8
2
votes
2 answers

pdfRender in android studio using API min 17

i'm creating project using android studio, my project using pdfRender from android developer, but it just can using API 23. when i'm change using API 17, the libary is error. please give me solution.
Aan Elzam
  • 25
  • 2
  • 6
2
votes
1 answer

View PDF File From Android ListView

I have a list of PDF files in my assets folder. What I want is to put these PDF files in a ListView and whenever I click an item in the ListView, the PDF file would be open/rendered. Is that even possible?
Agustin
  • 21
  • 3
2
votes
0 answers

Android: Unable to create PDFRenderer

I am currently having problem create PDFRenderer object. I have a pdf file inside the assets folder and using getAssets().openfd to get the file descriptor. My code creating the object is: try { _fileDescriptor =…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
2
votes
1 answer

How to check if any PDF is password protected in Android without using 3rd party solutions

I am trying to import a pdf in my application using PdfRenderer - Android's in-built solution. With this i am facing problem mentioned on this link. google issue My requirement is to check if any password is password protected or not without using…
userv
  • 2,527
  • 4
  • 27
  • 36
2
votes
0 answers

Android PdfRenderer class - Too long to render on few PDFs

In Android 5.0, Google introduced the PdfRenderer class for rendering PDFs. However, on few PDFs, the rendering is too long (~5 seconds) and I noticed a common point between all of this PDFs: they contain a clipping mask. When I remove this mask,…
mfekim
  • 475
  • 4
  • 9
2
votes
2 answers

PDFRenderer file not found exception

following is my PDFRenderer code and error is "File not found" Kindly help.. import java.io.File; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Matrix; import…
Diya
  • 107
  • 1
  • 11
2
votes
2 answers

Android pdfrenderer not working properly with 19 or 21 minsdk

Making a program for Android L' using pdfrenderer the issue is when 'm running the emulator with minsdk = 21 ERROR - "emulator-5554 disconnected! Cancelling 'com.example.andro_pdf_two.MainActivity activity launch'!" when 'm trying to run the…
Diya
  • 107
  • 1
  • 11
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
0 answers

Rendering PDF in Window 8

I'm looking for a component for WinRT (Windows 8 Metro) to be able to render PDFs. I cannot use the Reader app for security reason and I must add some overlay on the rendered PDF. Does any one has an idea? Any PDF lib that is working in WINRT? I can…
SirLeamont
  • 105
  • 5
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
1
vote
0 answers

PDF name tree limits

I have a PDF file that I try to parse using PDF Renderer and have the following issues: (1) Some of the name trees have Limits defined with either the lower or upper bound is NULL. The specification doesn't really say anything on how to deal with…
ph8c4
  • 96
  • 1
  • 7
1 2 3
8 9