Questions tagged [itextg]

iTextG is a port of iText, created for use on Android and Google App Engine

iTextG is a special version of iText built for Android and Google App Engine.

Differences between the iText core library and the Android/GAE port, are:

  • iTextG uses SpongyCastle instead of Bouncy Castle. Make sure to download and include the right jars: scprov-jdk15on and scpkix-jdk15on
  • References to any of the classes not on the Google App Engine whitelist have been removed.

Important notes:

  • Concerning the use of iTextG on Google App Engine: Refrain from using the constructor of PdfReader that uses a path.
  • Concerning the use of iTextG on Android: Android 4.0 (and higher) changed how it uses Certificates: The KeyChain API will not allow SpongyCastle from getting a certificate (at the time of writing: September 2013). You can use the certificates outside of this API.
36 questions
7
votes
3 answers

Unable to compile 'com.itextpdf:itextg:5.5.11' in Android Studio with Gradle

Defining the dependency of the version 5.5.10: dependencies { ... compile 'com.itextpdf:itextg:5.5.10' } works fine. But 5.5.11 or 5.5.12 do not compile. Has this been released yet? If not, any idea when it may be?
Rahul Menezes
  • 121
  • 2
  • 4
4
votes
0 answers

How to display Arabic in PDF created using iText in android

I am using iText 5.5.10 to create a PDF. When I use English words it works fine, but when I use Arabic words it shows empty lines. What is the problem, and how can I solve it? Thanks in advance. public void createPDF1(View view) throws IOException,…
sakr dev
  • 49
  • 3
4
votes
1 answer

Android ItextG Image tag is not rendering

I am working with iTextPdf (iTextG for Android)library to convert Html to PDF document for my android application. Everything is working fine for me except the logo on the receipt. My html contains tag with the source http url for the…
Salman Nazir
  • 2,759
  • 2
  • 28
  • 42
3
votes
1 answer

Add an image to iText pdf in Android

I have an String containing images like "My string [img src=image_from_drawable/] blablabla". I'm able to parse this string as Spannable to show that drawable on my TextView, with the following code: static public Spannable formatAbility(String…
2
votes
1 answer

SVG to PDF. How to?

I'm trying to output an SVG file into a PDF. I've tried a few approaches, but I keep running into problems. I used this source as reference: Convert SVG to PDF and tried the following: // Save this SVG into a file (required by SVG -> PDF…
Kartik Prabhu
  • 411
  • 1
  • 4
  • 16
2
votes
1 answer

iTextG Android Lint Error

:) I got an empty app. I wanted to add the dependencies. If I run the gradle build task everything is fine. If I add itextg (itext for Android) to the list, lint throws an error. This is my dependency: compile 'com.itextpdf:itext-pdfa:5.5.6-1' It…
Dominic Fuchs
  • 315
  • 1
  • 3
  • 10
2
votes
0 answers

Itext work with android runtime error happen

I am trying to generate pdf using android app. So I used itext java library and got an error: 04-11 14:32:50.406: E/dalvikvm(7771): Could not find class 'com.itextpdf.text.Font', referenced from method ceylon.linux.androidpdf.MainActivity.
Lahiru Prasanna
  • 1,012
  • 2
  • 15
  • 32
1
vote
0 answers

PDFDocument - multiple pages

I am using the PDFDocument class to convert RelativeLayout which gets populated at runtime to PDF. I know how to do this for 1 page of PDF, however, if at runtime, the RelativeLayout has no of pages > 1, then I do not know how to do this. I think I…
1
vote
0 answers

How to remove white space from bottom of PDF itext

I am trying to make a giant PDF that will contain all information on one page as there can be no breaks between the information in the document. it probably wont ever be printed so the size of the PDF is not an issue. Using Itext the only way I have…
1
vote
1 answer

Adding image to PDF, Android Studio

I'm developing app in Android Studio using iTextG, where you can fill in a form, click the button and in return You receive a PDF. At the end of the document I need to add an image. After pressing the button the app is crashing with note "MyApp has…
Marcineroo
  • 51
  • 1
  • 5
1
vote
1 answer

Blank screen pdf displayed in android

I am using following gradle file for pdf generation: compile 'com.itextpdf:itextg:5.5.10' Since my app has chinese characters,I have added itext-asian.jar file in my classpath.Initially it was giving error 'More than one file was found with OS…
user3792429
  • 203
  • 1
  • 16
1
vote
0 answers

Issue with facebook sdk and itextg

In my proyect I have this dependecies: compile ('com.twitter.sdk.android:twitter:2.2.0@aar'){ transitive=true; } compile 'com.google.android.gms:play-services-maps:11.2.0' compile 'com.google.android.gms:play-services-auth:11.2.0' compile…
1
vote
1 answer

Database tables are not getting shown in the generated PDF file

I am trying to generate a report in PDF format in which data is coming from Sqlite Database.I am using itextg library for generating PDF. But the problem is ,the generated pdf file shows only below content. 1.Expense Report Report Generated on Tue…
user7431071
1
vote
0 answers

iText generates a file containing only the PDF header

I was able to generate a pdf file using iText but when I open it I always get an error that the file seems to be damaged. I already added the library itextg-5.5.8.jar Anyone know how to fix this? Here's my code import android.os.Bundle; import…
Yuu
  • 619
  • 3
  • 13
  • 34
1
vote
1 answer

Adding itextg to gradle

I want to add itextg via gradle to avoid having to maintain a set of library jars. Maybe it's me but I can't find the correct gradle compile statement anywhere. dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile…
G_V
  • 2,396
  • 29
  • 44
1
2 3