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
5
votes
1 answer

ImageView not showing image from bitmap created by PDFRenderer on Android API 29

I have a PDF that I want to show in an ImageView. It's showing on API 24-28 but no image shows on API 29. I think the issue may be the bitmap created by the PDFRenderer. I put a breakpoint after the .render method and (in the debugger) clicked…
mobiledevcookie
  • 612
  • 1
  • 5
  • 7
5
votes
0 answers

Android PdfRenderer throws SecurityException - cannot create document with error 4

I'm trying to render some pages using PdfRenderer android api. Some of my users started seeing this error: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1337, result=-1, data=Intent {…
5
votes
1 answer

PDFRenderer unable to display a file

I'm using API Level 21 and I'm trying to display a PDF downloaded from internet and stored in the cache directory. private void openRenderer(Context context) throws IOException { Log.d("NoiPA", "Opening PDF File: " + pdfPath); // In this…
Progeny
  • 672
  • 1
  • 11
  • 25
5
votes
0 answers

PDFRenderer zoom and flips

My PDF Renderer has following concern - when i zoom image view, the page gets zoomed along with that the page is either moved to the next or previous page..the page is NOT held.. I have implemented the flips using xml and the zoom using gesture…
Diya
  • 107
  • 1
  • 11
4
votes
1 answer

How To Download JDK 1.8.0_191

I'm trying to use PDFRenderer from PDFBox and works fine but it gives me a warning saying: Aug 31, 2019 11:46:48 PM org.apache.pdfbox.rendering.PDFRenderer suggestKCMS INFO: Your current java version is: 1.8.0_171 Aug 31, 2019 11:46:48 PM…
Ebdulmomen1
  • 606
  • 1
  • 10
  • 21
4
votes
1 answer

SecurityException with PdfRenderer, comes with password protected pdfs, and than repeats even with normal pdfs

If trying to open Password Protected PDF with PdfRenderer API, gives SecurityException and handled accordingly, inside catch block and thenonDestroy basic clean up is done, and comes back to home activity and then navigating a simple non-protected…
4
votes
2 answers

Why is PDFBox PDFRenderer slow?

I want to convert a PDF to a TIFF using PDFBox 2.x and the PDFRenderer Class. But it runs very slowly compared to ghostscript. Here's my sample code public class SpeedTest { static long startTime = System.currentTimeMillis (); public static…
tombo_189
  • 384
  • 5
  • 22
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…
4
votes
2 answers

SlimerJs PDF Render to file

I am looking at SlimerJs (v0.9.6) as an option for rendering PDFs. I have marked up the HTML that the PDF should be rendered from and I run this command to render it out: slimerjs renderPdf.js In my renderPdf.js file I have defined: var webpage =…
travega
  • 8,284
  • 16
  • 63
  • 91
4
votes
1 answer

PDF rendering with white lines on top/bottom, left/right edges

I'm using the (excellent) vfr-reader in several iOS applications. It works like a charm, but I'm having problems with the rendering of some PDF files. In VFR-Reader, I'm seeing white lines at the top and bottom, and/or left and right edges, which is…
thomers
  • 2,603
  • 4
  • 29
  • 50
3
votes
0 answers

Help in compiling pdfrender library

I have a problem in compiling project http://code.google.com/p/droidreader When I compile in eclipse using NDK ,NDK doesnt compile because it says it cannot find fitz.h even though its in directory where it should be and thus i cant compile to get…
farajnew
  • 926
  • 2
  • 9
  • 15
3
votes
1 answer

Render PDF from URI in Android?

I'm using Android Render in my app, but I've got problems with getting a PDF file from URI. Here's how I get the URI of the file: public void performFileSearch() { Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); …
3
votes
2 answers

Password Protected pdf is not accessed by PdfRenderer

public void onBrowse(View view) { Intent chooseFile; Intent intent; chooseFile = new Intent(Intent.ACTION_GET_CONTENT); chooseFile.addCategory(Intent.CATEGORY_OPENABLE); chooseFile.setType("file/*"); intent =…
3
votes
0 answers

Android - Use custom font in PdfRenderer

I want to display a pdf file in an android app. I used the pdf renderer sample app from android studio. The rendered image does not have any text by default. That is because the pdf uses a custom font which has to be installed on the PC to display…
3
votes
1 answer

pdfrender android parcefiledescriptor from buffer byte array

I have a pdf into a byte array buffer. I would like to open it with PdfRender in Android, but PdfRender accepts only in the constructor ParcelFileDescriptor. Java.IO.File f = new Java.IO.File (pdfPathfile); ParcelFileDescriptor fileDescriptor =…
Zamby
  • 33
  • 5
1
2
3
8 9