Create thumbnail image for PDF in Android - java

I'm looking for a Java library that can take a PDF and create a thumbnail image (PNG) from the first page in an Android Mobile Device.
I found this Create thumbnail image for PDF in Java but this will not work for android as it is dependent on AWT.
Please help me with the free support lib in android.

Apache PDFBox.
The Apache PDFBox™ library is an open source Java tool for working
with PDF documents. This project allows creation of new PDF documents,
manipulation of existing documents and the ability to extract content
from documents. Apache PDFBox also includes several command line
utilities. Apache PDFBox is published under the Apache License v2.0.
In itself, it is not compatible with Android so you may want to have a look at the Android port - PdfBox-Android library.
If you want a web service, Datalogics PDF WebAPI is an option.

Related

Opensource PDF generator for Angular and Java

I'm looking for the best PDF generators for Angular and JAVA. If there's one that can be used in both would be great. The requirements I have on these PDF creators are:
OpenSource
Easy to use
Can be used on Enterprise level
Generate custom PDFs (not just print-outs of what’s on the screen)
So far I have on my list:
iText (discarded)
Apache POI
Aspose (discarded)
PDFBox
PDF Clown (discarded)
In angular if you have data on UI then you can use following libraries which have good provision to export pdf:
"jspdf": "^1.4.1"
"jspdf-autotable": "^2.3.4"
If you need customized reports and have dependency on backend then you can use Jasper Reports which can give more reach appearance.

Create PDF that Android devices could read

I use Apache PDFBox library to create pdf-files. It creates files with the XFA structure. Applications on PC, Mac or Linux can read these files without any problems. But Android devices cannot do it. I see the following error message in the pdf-file:
"Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document".
I am trying to find a solution to create pdf files that could be read by Android devices. I cannot find any information how to do it.
Did anyone do something like that?
If you generate a non-XFA PDF you'll probably have more luck with it. The XFA spec is large, complicated and not well supported. Adobe Reader supports it but not many other readers (on Android or on desktop).

Visio to PDF API for Linux and Windows

I'm evaluating transformers to find visio to pdf transformer. I found there is none. Is there any external third party api that can convert visio to pdf(Both Linux and Windows). I found easyPDF api, but it only support windows platform.
Any kind help is appreciated.

Powerpoint Preview and Thumbnail

We are providing a thumbnail & preview functionality for rich powerpoint documents on our Java based site.
Currently, we are using iSpringConverter tool for converting the powerpoint documents to swf file.
The tool is licensed and windows based, and allows interaction through java.
This swf file is then launched on the client side as popups.
Can anyone suggest any other tools/frameworks/options/approaches used for implementing
- Generation of thumbnails and preview for powerpoints
- Viewers used, in case the preview is generated in some formats.
Any more ideas/suggestions.
Try SWFTOOLS, it works very well :)
You can make calls to it running command lines (using Process class).
I dont know if it transparently make thumbnails and etc... but I think you can done it by yourself using it.
hope it helps.
http://www.swftools.org/
You may try Aspose.Slides for Java to create thumbnails of the PowerPoint slides in your Java application. You can then show those images as a preview using any image control. This component doesn't require MS Office/Open Office etc. to be installed on your development or deployment machines for processing PowerPoint files. The API is quite simple and provides detailed documentation and help. Please see if this might help in your scenario.
Disclosure: I work as a developer evangelist at Aspose.

How to convert .doc / .xls file into PDF using Java

I want to convert .doc/.xls file into PDF through my java application. Now, I know there have been some discussions on this topic. I also know that JODConverter is one option, but the problem with this is dependency on OpenOffice. Whoever wants to use my app will first need to install OpenOffice on his/her host. I want to avoid this. Do we have any new solution through which I can do this conversion in my app without having dependencies on any other applications.
You could use POI for reading XLS and DOC, and use iText for generating the PDF.
POI project:
http://jakarta.apache.org/poi/
iText project:
http://www.lowagie.com/iText

Categories

Resources