-3

Has anyone tried with success translating or porting iText Java source code to Objective-c?

Is it possible at all ?

If not, how can one programmatically sign PDFs on ios?

Dan
  • 5,153
  • 4
  • 31
  • 42

1 Answers1

0

It's not feasible to port iText to iOS using j2objc or RoboVM, since iText depends on Java AWT classes that neither project supports.

What might be more reasonable is to generate PDF files on a Java-based web server, then download them to your iOS device. This has the advantage of supporting Android devices without any PDF code.

tball
  • 1,984
  • 11
  • 21
  • 1
    iText **does not** depend on Java AWT. There is a version of iText, called [iTextG](http://itextpdf.com/product/itextg) that was created for use on Android and GAE where Java AWT isn't supported either. – Bruno Lowagie May 08 '15 at 06:52
  • From consumer point of view its more convenient (_as thought secure_) to be able to sign PDF documents offline and, yes, its far from a trivial task :( – Yaroslav Alexeevich May 08 '15 at 21:43
  • I based my comment by listing the imports in the iText open source. It's great to hear there's a portable alternative, but porting its SpongyCastle dependency sounds like a very big task. – tball May 10 '15 at 05:59