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
0
votes
0 answers

does anyone know what PDF reader/renderer plugin is this?

does anyone know what PDF reader plugin is this ? exemple image .. this is the link for the exemple image https://demo.publicknowledgeproject.org/ojs3/testdrive/index.php/testdrive-journal/article/view/special-editorial-2019/178 else i want a pdf…
0
votes
1 answer

PdfRenderer keep crashing in android API 25

I use PdfRenderer to render PDF preview in Android API 25: var parcelFileDescriptor: ParcelFileDescriptor? = null var pdfRenderer: PdfRenderer? = null var firstPage: PdfRenderer.Page? = null try { val file = File(filePath) …
Nam Nô
  • 31
  • 6
0
votes
1 answer

How to do more efficient render a pdf with PDFRender and show in LazyColumn in JetPack Compose

i want to download a pdf file from FireStorage, render the file, add every page like ImageBitMap in a List and show in a LazyColumn. The problem is that it is very slow trying to scroll, even freezing 4-5 secs when page change. Any ideas on how to…
0
votes
1 answer

JavaFX convert PDF-File to PNG-File with PDFBox

I try to convert PDF file to PNG image with my JavaFX (v16) application. follow code import net.sourceforge.tess4j.util.PdfBoxUtilities; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.rendering.ImageType; import…
user6834389
  • 73
  • 1
  • 11
0
votes
1 answer

Is it important to close PdfRenderer and when

I am using PdfRenderer in my app. In this app a user can open a PDF file and browse it. He can open another PDF file in the same session. I just noticed, that I don't close it at all after use or before opening a new PDF. I just do the…
mspnr
  • 416
  • 4
  • 12
0
votes
1 answer

How to render PDF file from Internal storage inside Android App using PdfRenderer

I am trying to give a preview of PDF to the user before uploading it to a server. I am using PdfRenderer. I just to give the preview of the 1st page. On Start, I am calling the file chooser function that lets you select a pdf file from Internal…
0
votes
0 answers

How to get first page of pdf file as pdf programmatically?

I'm trying to get the first page of the PDF file as PDF. PDFRenderer helps to get the first page as Bitmap. My requirement is to get as PDF. I don't want to get Bitmap then write as PDF. Any best approach?
Azay Gupta
  • 281
  • 2
  • 16
0
votes
1 answer

How to enable Dark mode for PdfRenderer

I am using PdfRenderer to open a PDF file in Android Application. If the dark theme is enabled the text is black and the background is also black, so it looks like blank black screen. Can I change the color of the text while rendering it in…
Pr38y
  • 1,565
  • 13
  • 21
0
votes
0 answers

How to use PDFRendered on a local file (which is downloaded from the internet) in Android?

I am trying to make an app which downloads the pdf file from the internet and saves it to Downloads folder. After downloading the pdf,instead of opening a 3rd party pdf app , I want it to render in the app itself.( I have done downloading and saving…
hiteshchopra11
  • 101
  • 2
  • 5
0
votes
1 answer

How to draw multiline string to pdf with UIGraphicsPDFRenderer?

I'm trying to create a pdf file which will include some text. The problem is pdf acts like first line width is infinite. Here is the result of pdf something like: This PDF cr. I can't see the rest because the screen size is not enough :) let…
Berkan C.
  • 5
  • 3
0
votes
0 answers

Get correct path from file picker

I need to get a PDF file into my app. I already looked at similar questions and none of them work. The PdfReader keeps throwing an exception that says: File not found. So i figured the directory is wrong. Here is my…
8kk
  • 140
  • 9
0
votes
1 answer

PdfRenderer Error : java.io.IOException: cannot create document. Error: 3

I am trying to convert PDF To image Bitmap.. and for that I am Using this Code Below. pdfFile = Environment.getExternalStorageDirectory().toString() + "/" + "imagepdf.pdf" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { …
Learning Always
  • 1,563
  • 4
  • 29
  • 49
0
votes
1 answer

How to download a PDF file from the Internet and render using PdfRenderer

I am trying to download a PDF file with the following code: try { URL url = new URL(urls[0]); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.connect(); if…
Mehdi Haghgoo
  • 3,144
  • 7
  • 46
  • 91
0
votes
1 answer

Best practice for displaying multiple bitmaps in a scrollable list

What I am trying to do: I render single pdf pages to bitmaps using Android PdfRenderer class. (Rendering so fare is not the issue) No I want to display the on the screen the entire first page and half of the second page. My question? What is the…
0
votes
0 answers

Why is my PDFRenderer so small?

I have a workking PDF downloader and PDFRenderer. I am using openFileInput method to keep the file secure from scanners. My problem is the Bitmap generated is so small it cannot be read. I tried to use like every example recommended but I cannot…
BCope
  • 1
  • 1
  • 2
1 2 3
8 9