All Projects → makbn → JThumbnail

makbn / JThumbnail

Licence: GPL-2.0 license
Java thumbnail generator for Office,PDF,HTML,Text,MP3,MPEG and Image documents

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to JThumbnail

Zettlr
A Markdown Editor for the 21st century.
Stars: ✭ 6,099 (+25312.5%)
Mutual labels:  office, docx
Docx
Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Stars: ✭ 1,288 (+5266.67%)
Mutual labels:  office, docx
Phpword
A pure PHP library for reading and writing word processing documents
Stars: ✭ 6,017 (+24970.83%)
Mutual labels:  office, docx
modern-office-git-diff
An experiment in tracking and diffing versions of modern Microsoft Office files in Git.
Stars: ✭ 51 (+112.5%)
Mutual labels:  office, docx
Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+9629.17%)
Mutual labels:  office, docx
Docx2tex
Converts Microsoft Word docx to LaTeX
Stars: ✭ 271 (+1029.17%)
Mutual labels:  office, docx
Desktopeditors
An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
Stars: ✭ 1,008 (+4100%)
Mutual labels:  office, docx
redmine preview office
Plugin for Redmine. Preview Microsoft Office Documents in Redmine's preview pane
Stars: ✭ 27 (+12.5%)
Mutual labels:  office, docx
Phpstamp
The XSL-way templating library for MS Office Word DOCX documents.
Stars: ✭ 150 (+525%)
Mutual labels:  office, docx
Docx
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
Stars: ✭ 2,150 (+8858.33%)
Mutual labels:  office, docx
Quip Export
Export all folders and documents from Quip
Stars: ✭ 28 (+16.67%)
Mutual labels:  office, docx
Open Xml Sdk
Open XML SDK by Microsoft
Stars: ✭ 3,005 (+12420.83%)
Mutual labels:  office, docx
Officeproducer
Produce doc/docx/pdf format from doc/docx template
Stars: ✭ 95 (+295.83%)
Mutual labels:  office, docx
Duckx
C++ library for creating and updating Microsoft Word (.docx) files.
Stars: ✭ 214 (+791.67%)
Mutual labels:  office, docx
eoffice
Export and import graphics and tables to MicroSoft office
Stars: ✭ 19 (-20.83%)
Mutual labels:  office, docx
Office2PDF
Office 文件(Word、Excel、PPT)批量转为 PDF 文件,文档完善,自用满意
Stars: ✭ 114 (+375%)
Mutual labels:  office
pdftron-android-samples
PDFTron Android Samples
Stars: ✭ 30 (+25%)
Mutual labels:  office
MLSA-Certificate-Automate
Automate your Microsoft Learn Student Ambassadors event certificate with Python
Stars: ✭ 24 (+0%)
Mutual labels:  docx
docxjs
Docx rendering library
Stars: ✭ 315 (+1212.5%)
Mutual labels:  docx
docx-wasm-client-side
Microsoft Word doc/docx to PDF conversion, client-side in-browser, using docx-wasm
Stars: ✭ 37 (+54.17%)
Mutual labels:  docx

JThumbnail

Codacy Badge

JThumbnail is a Java library for creating Thumbnails of common types of file including .doc, .docx, .pdf , .mp4 and etc. full list

  • Project is under development!

How to use

try {
   AppSettings.init(args);   
   Thumbnailer.start();
   File in = new File("/inputFile.docx");
   if(in.exists()) {
      ThumbnailCandidate candidate = new ThumbnailCandidate(in,"unique_code");

      Thumbnailer.createThumbnail(candidate, new ThumbnailListener() {
         @Override
         public void onThumbnailReady(String hash, File thumbnail) {
            System.out.println("FILE created in : " + thumbnail.getAbsolutePath());
         }

         @Override
         public void onThumbnailFailed(String hash, String message, int code) {

         }
      });
   }
   } catch (IOException | ThumbnailerException e) {
         e.printStackTrace();
   }

Configuration Args

  • openoffice_port tcp port for open office.
  • openoffice_dir open office home dir.
  • temp_dir temp directory for saving thumb files.
  • thumb_height thumbnail height size in px.
  • thumb_width thumbnail width size in px.

Requirements

  • Java JRE 1.8
  • OpenOffice 4 or LibreOffice (optional)

Supported File Formats

  • Office files (doc, docx, xls, xlsx, ppt, pptx)
  • OpenOffice files (all of them)
  • Text files (txt, pdf, rtf, html)
  • Image files (jpg, png, bmp, gif)
  • AutoCad files (dwg)
  • MP3 files (user album-art as thumbnail)
  • MPEG files (generate gif file)

Adding Repository

Maven


Step 1. Add the JitPack repository to your build file

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Step 2. Add the dependency

	<dependency>
	    <groupId>com.github.makbn</groupId>
	    <artifactId>JThumbnail</artifactId>
	    <version>master-SNAPSHOT</version>
	</dependency>

Gradle


Step 1. Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

	dependencies {
	        implementation 'com.github.makbn:JThumbnail:master-SNAPSHOT'
	}

TODO

  • Update all dependenciesfrom jar to maven
  • update project old and deprecated depencencies
  • Change the structure of project
  • Add new Configuration method to confige OpenOffice dir and port
  • Add Async multi-thread support

Original project

JThumbnail is based on an old project of the university of Siegen for the benefit of come_IN Computerclubs. and thanks alot to @benjaminpick

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].