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
1
vote
1 answer

I had an app that fills a form with itextg 5.5.0 and now it doesn´t work

I have a problem beacuse I had an app that it was filling a form with itexg(5.5.0) and now Itdoesn´t work; I have tried update to the last version 5.5.1 with the other two librerys. Well with the old version I had this error: 05-30 12:57:56.554:…
0
votes
0 answers

Pdf doesn't show all japanese characters

I am making a pdf with iTextg in android. It works for some Japanese characters but not all. i am using "arialuni.ttf" in fonts which is around 1.4mb. When am using Arial-unicode-ms (22.4mb), things work fine but sze is too much for android…
Rohit
  • 810
  • 2
  • 9
  • 34
0
votes
1 answer

Add lineChart to Pdf file using Afreechart and itextg

I am trying to add a Line Chart to Pdf file in android using itext and AFreeChart. I have done this in java using itextpdf and JFreeChart. But i am stuck at the part where graph is added to pdf. Please help. I don't know how to bind the canvas to…
Black
  • 81
  • 1
  • 14
0
votes
2 answers

itextpdf - itextg Android lint error

I'm trying to use itextg but I'm getting some gradle errors. Any idea? I tried version 5.5.9 and 5.5.10. Execution failed for task ':app:lint'. Lint found errors in the project; aborting build. Fix the issues identified by lint, or add the following…
Yamila
  • 443
  • 1
  • 9
  • 20
0
votes
1 answer

create multiple page pdf in Android Studio using itextg

I want to create multiple page pdf from Android listview. I have successfully achieved converting all the listview items into pdf even if they are not all visible using itextg. The problem I faced is that if the items in the listview or the captured…
Olana Kenea
  • 39
  • 2
  • 11
0
votes
0 answers

Setting top margin iText Android

I am using iTextg to split an image to span multiple pages, but I am not able to set Top Margin for each page. I tried setting margins in Document() constructor, I also tried setMargins()method before I use the document.open() method. Also adding…
SuperHaker
  • 178
  • 1
  • 15
0
votes
0 answers

Image to PDF in Android using iTEXTG

I am making a module that needs to scan from an image taken by the camera. so basically, it converts jpeg into a PDF. I am done accessing the camera and retrieving the bitmap too. my problem is how to get the URI and pass it to the class that…
JJCADIZ
  • 143
  • 2
  • 14
0
votes
0 answers

Enhance Text quality using paint

I need to generate Hindi PDFs and I am using iTextg for this purpose. To "type" in Hindi, I am using Android's static Layout to convert text to Bitmap. However I am getting really poor text quality. My Code is as follows public Bitmap…
user3425867
  • 644
  • 6
  • 14
0
votes
0 answers

How to save the pdf in the device using iTextG?

I recently wrote this small java code on android studio to test the iTextG library for android.This code is supposed to take the text from the editText field and create a pdf file from the text. public void createPDF(View view){ //reference to…
Sourav Das
  • 33
  • 1
  • 5
0
votes
0 answers

Itext Pdf VerifyError: Rejecting class

I'm creating demo for convert "html content to pdf" using "itext" library.Generating pdf normal way pdf successfully but when i'm adding below option build.gradle defaultConfig { ... jackOptions { enabled true } …
Sanket990
  • 665
  • 1
  • 10
  • 22
0
votes
1 answer

Why this error occurs: Unhandled exception: com.itextpdf.text.DocumentException on Android?

I am trying to create a PDF on Android but only to show some information when I press a button, not to store it on the mobile phone. I am getting this error: Unhandled exception: com.itextpdf.text.DocumentException but I do not understand why it…
Francisco Romero
  • 12,787
  • 22
  • 92
  • 167
0
votes
0 answers

Getting Uri and Bitmap Information of Imaged opened from the app explorer and converting it into PDF

EDIT First of all, I am new with Android and don't have much grip when it comes to gallery functionality and manipulating its method so please have a little patience and guide me of what I am doing wrong. Scenario I am setting my app photos inside a…
Umair
  • 438
  • 1
  • 8
  • 19
0
votes
1 answer

How can I get My Full Activity in PDF

First of all, I'm french and I will try my best to explain my problem in a good english. So, I wanted to convert in PDF that screen : listeTrouActivity.java But as you can see, there is scroll views and the hole column is going down to 18 holes. So…
Thomas Fenot
  • 19
  • 10
0
votes
0 answers

How to sign a pdf file with iTextG 5.4.3 (Android) without using tempFiles (only memory)

Anybody has an example of how to sign a pdf file with using files only with memory in Android with iTextG 5.4.3. I tried with java examples but it throws a NullPointerException when I call to preClosed() of PdfSignatureAppearance. Here is the code…
0
votes
0 answers

Adding iTextG jar to Android Studio

I'm facing a problem with adding the itextg-5.5.4.jar to my Android project in Android Studio. I copied the jar file to my libs folder and added it as a library. I can use the classes in my project but when i try to start the app on my device, a…
pawlinsky
  • 420
  • 1
  • 6
  • 18