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
25
votes
3 answers

Android's PdfRenderer class produces low quality images

I'm using PdfRendererabove api 21 to display pdf in my app and I noticed that the quality of pages is very poor. I followed also google sample to use PdfRenderer and this is how I create Bitmap for page: //mCurrentPage is a PdfRenderer.Page and…
Giorgio Antonioli
  • 15,771
  • 10
  • 45
  • 70
14
votes
6 answers

PDF Library for Android - PDFBox?

Wich libraries exists to use to draw PDF files on Android? I found PDFBox, that is a JSE Library, and want to know if somehow it can be used to draw the PDFs on Android. I know Android converts Standard bytecodes into Dalvik Bytecodes, but how it…
Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167
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
12
votes
4 answers

How to implement PdfRenderer Zoom and Scroll support?

I am trying to use PdfRenderer, and the requirement is to have Zoom and scroll available with it, but in Android PdfRenderer do not provide any support for Zoom and scroll, there is only page navigation support available. But i guess zoom and scroll…
Shridutt Kothari
  • 7,326
  • 3
  • 41
  • 61
11
votes
1 answer

CGPDFDocument unable to read pdf

I followed the following example to view a pdf in my App (Xamarin.iOS). Everything worked fine until recently I started to notice some pdf files can't be read using this method. I open and got info on my mac and I noticed the following: if I export…
ScarletMerlin
  • 465
  • 4
  • 24
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
9
votes
0 answers

opening password protected PDF document and rendering in android using new "PdfRenderer" class?

In Android 5.0, Google introduced the PdfRenderer class for rendering PDFs. I tried rendering the pdf using it and it worked. However, when it comes to password protected PDF i dint find a way to open it. Has anyone done this or have any idea how to…
frogEye
  • 364
  • 3
  • 14
9
votes
1 answer

ITextRenderer: Adjust page height to content

I'm using ITextRenderer to generate a PDF from HTML and what I need to do is a cash register receipt. This receipt has dynamic width and, of course, dynamic content. This said, the height of content will always be different and right now I'm…
Oliveira
  • 1,281
  • 1
  • 11
  • 19
7
votes
2 answers

Pdf Renderer in android converted image is Transparent background

I'm a newbie for android developing. I'm working on converting Pdf to Image and storing it in a location. I have used the PdfRenderer (API level 21) to convert the PDF to bitmap Image. The converted image is Transparent background. Please guide me…
abdul kadhar
  • 337
  • 4
  • 20
7
votes
1 answer

Is there a plan to include Android PdfRenderer in a support library?

In Android 5.0, Google introduced the PdfRenderer class, which is great for rendering PDFs. The problem is that it is only available with minSDK 21. https://developer.android.com/reference/android/graphics/pdf/PdfRenderer.html How can i find out if…
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

Java PDF Viewer

I am using java and RCP and I am trying to show pdf Document with Acrobat on my views. I don't need to change them. I have this error with this code. Any idea how to resolve this problem?. P.s.: it works good same times. PDFFile pdfFile; pdfFile =…
Haythem
  • 417
  • 4
  • 13
  • 20
6
votes
2 answers

Android Studio - PDFRendererBasic - Unable to replace sample.pdf?

Everytime I edit the PDFRendererBasicFragment java code mFileDescriptor = context.getAssets().openFd("sample.pdf").getParcelFileDescriptor(); to a different pdf placed in the assets folder, the application crashes.. Logcat…
emvee
  • 304
  • 4
  • 17
6
votes
2 answers

PDF PrinterJob get Job status

I have an issue to print a PDF using java. I know that Java doesn't support print PDF natively cause java doesn't have a PDF renderer. So to solve this problem I'm using a PDFRenderer library and here is an example for printing with it: File f =…
whizzzkey
  • 926
  • 3
  • 21
  • 52
6
votes
1 answer

How to increase the resolution of image in PDF renderer?

I want to increase the resolution of a image. I used PDFRenderer-0.9.0 jar . It is downloaded from java.net for converting PDF pages to images. I want to Convert 46_2.pdf PDF file to image . The converted 46_2.png image is small with dimensions…
UdayKiran Pulipati
  • 6,579
  • 7
  • 67
  • 92
1
2 3
8 9