All Projects → alaeddinejebali → Android-ConvertToPDF

alaeddinejebali / Android-ConvertToPDF

Licence: other
How to convert a document to a PDF using iText and Aspose?

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android-ConvertToPDF

Android-PDF
Create PDF in Android using iText
Stars: ✭ 53 (+211.76%)
Mutual labels:  pdf-generation, itext
Openpdf
OpenPDF is a free Java library for creating and editing PDF files with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository. ⛺
Stars: ✭ 2,174 (+12688.24%)
Mutual labels:  pdf-generation, itext
pydf
PDF generation in python using wkhtmltopdf for heroku and docker
Stars: ✭ 68 (+300%)
Mutual labels:  pdf-generation
DrawPDF
Draw/Write pdf using Swift
Stars: ✭ 17 (+0%)
Mutual labels:  pdf-generation
pdf-annotation-service
Client and service for embedding highlights into PDF documents
Stars: ✭ 32 (+88.24%)
Mutual labels:  pdf-generation
elasticsearch-report-engine
An Elasticsearch plugin to return query results as either PDF,HTML or CSV.
Stars: ✭ 49 (+188.24%)
Mutual labels:  pdf-generation
django-renderpdf
📄 A Django app to render django templates as PDF files.
Stars: ✭ 37 (+117.65%)
Mutual labels:  pdf-generation
umdoc
A Markdown to LaTeX to PDF converter
Stars: ✭ 15 (-11.76%)
Mutual labels:  pdf-generation
xrechnung-visualization
XSL transformators for web and pdf rendering of German CIUS XRechnung or EN16931-1:2017 [MIRROR OF GitLab]
Stars: ✭ 26 (+52.94%)
Mutual labels:  pdf-generation
weasydoc
Convert R Markdown to PDF Using Weasyprint (or Prince XML)
Stars: ✭ 40 (+135.29%)
Mutual labels:  pdf-generation
MarkdownIt
Efficient Code Editor to live render Markdown and save as Markdown,Html and Pdf with Instant Hosting in The Web.
Stars: ✭ 31 (+82.35%)
Mutual labels:  pdf-generation
cefHtmlSnapshot
Command-line utility for Windows take snapshots of HTML pages and save them as images or PDF
Stars: ✭ 23 (+35.29%)
Mutual labels:  pdf-generation
casile
The CaSILE toolkit, a book publishing workflow employing SILE and other wizardry.
Stars: ✭ 36 (+111.76%)
Mutual labels:  pdf-generation
wkhtmltopdf-flask-aas
Wkhtmltopdf Flask As a Service
Stars: ✭ 17 (+0%)
Mutual labels:  pdf-generation
docraptor-ruby
A native Ruby client for the DocRaptor HTML to PDF generation API
Stars: ✭ 20 (+17.65%)
Mutual labels:  pdf-generation
AusweisBot
Telegram bot to generate self-authorizations for moving around during covid-19 pandemic in France
Stars: ✭ 13 (-23.53%)
Mutual labels:  pdf-generation
chromic pdf
Convenient HTML to PDF/A rendering library for Elixir based on Chrome & Ghostscript
Stars: ✭ 196 (+1052.94%)
Mutual labels:  pdf-generation
laravel-browsershot
Browsershot wrapper for Laravel 5
Stars: ✭ 108 (+535.29%)
Mutual labels:  pdf-generation
siteshooter
📷 Automate full website screenshots and PDF generation with multiple viewport support.
Stars: ✭ 63 (+270.59%)
Mutual labels:  pdf-generation
JasperViewerFX
The JasperViewerFX is a free JavaFX library which aims to avoid use of JasperReport's swing viewer
Stars: ✭ 27 (+58.82%)
Mutual labels:  pdf-generation

Using iText

To use the library.

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Using Aspose

  • The project is "/ConvertToPdf-Aspose/"
  • Download Aspose zip from http://www.aspose.com/community/files/74/android-components/aspose.pdf-for-android/default.aspx
  • When you extract it you'll find:
  • Add "aspose-words-x.xx-android-jdkxx.jar" to your "lib" folder (with Android-Studio, you may need to right-click the "lib/aspose-words-x.xx-android-jdkxx.jar" -> "Add as Library...")
  • Add "aw-classes_dex2jar.jar" to your "lib" folder (with Android-Studio, you may need to right-click the "lib/aw-classes_dex2jar.jar" -> "Add as Library...")
  • Add permission and MultiDex to your AndroidManifest
<application android:name="android.support.multidex.MultiDexApplication"
(...)
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  • Add those lines to your "app/build.gradle"
	(...)
	
    defaultConfig {
        multiDexEnabled true
    }
	
	(...)
    
	dexOptions {
        javaMaxHeapSize "4g"
    }
	
	(...)
	
	dependencies {
		provided files('libs/aw-classes_dex2jar.jar')
		compile 'com.google.code.gson:gson:2.3'
		compile 'com.android.support:multidex:1.0.0'
	}	
	
  • Copy/paste "resources" folder to "/main/assets/"

  • Convert your files

    try{
        Document document = new Document(filePath);
        document.save(outputPath);
    } catch (Exception e) {
        e.printStackTrace();
    }
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].