pdfrenderer

Java PDF Viewer

余生颓废 提交于 2019-11-27 01:38:51
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 = PdfFileLoader.loadPdf(file, new NullProgressMonitor()); PdfDocument pdfDocument = new OneDimensionalPdfDocument(pdfFile, new NullProgressMonitor()); pdfViewer.setPdfDocument(pdfDocument); Error from PdfDocument pdfDocument = new OneDimensionalPdfDocument(pdfFile, new NullProgressMonitor()) : Unsupport CMap format: 6 java.nio.BufferUnderflowException

Android's PdfRenderer class produces low quality images

萝らか妹 提交于 2019-11-27 01:22:49
问题 I'm using PdfRenderer above 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 mImageView is an ImageView Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), Bitmap.Config.ARGB_8888); mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY); mImageView.setImageBitmap

Pdf Viewer using mupdf library [closed]

和自甴很熟 提交于 2019-11-26 22:08:07
问题 I have tried mupdf library to render my pdf ie. to have my own PDF VIewer, but when i try to form libmupdf.so file using Cygwin on my Windows system, getting errors and .so file not building. plz guide. 回答1: Download latest android NDK Install CYGWIN Download complete source code of MUPDF (with thirty part tool) Download ANT build for windows set all needed path (JAVA_HOME,ANT_HOME) go to MuPDF directory Run MAKE command Then Import project in android from c:\mupdf\android Run your android

Java PDF Viewer

杀马特。学长 韩版系。学妹 提交于 2019-11-26 08:24:22
问题 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 = PdfFileLoader.loadPdf(file, new NullProgressMonitor()); PdfDocument pdfDocument = new OneDimensionalPdfDocument(pdfFile, new NullProgressMonitor()); pdfViewer.setPdfDocument(pdfDocument); Error from PdfDocument pdfDocument = new