Hi there,

I'm developing a cross platform (iOS/Android) app that uses native code
plugins.  I using iText on the Android side to generate a PDF out of HTML
data that isn't known at compile time.  I'm having a problem that seems like
it was common a few years ago, but hasn't cropped up recently.  

My plugin code works fine when I run it on my phone from Eclipse, but when I
zip it all up as a plugin to use in my app, the document fails to close and
I get a the.document.has.no.pages error.  My code is below:



Below is the console log:

D/refill  (17225): var1 = 
D/refill  (17225): [Hello World!]
W/System.err(17225): No message found for 1.not.found.as.resource
D/refill  (17225): var2 = 
D/refill  (17225): [Brace yourselves!]
W/System.err(17225): No message found for 1.not.found.as.resource
W/System.err(17225): Successfully added paragraphs
W/System.err(17225): Check 6
W/System.err(17225): Failed to close document
W/System.err(17225): ExceptionConverter: java.io.IOException: No message
found for the.document.has.no.pages
W/System.err(17225): ExceptionConverter: java.io.IOException: No message
found for the.document.has.no.pages
W/System.err(17225):    at
com.itextpdf.text.pdf.PdfPages.writePageTree(PdfPages.java:112)
W/System.err(17225):    at
com.itextpdf.text.pdf.PdfWriter.close(PdfWriter.java:1261)
W/System.err(17225):    at
com.itextpdf.text.pdf.PdfDocument.close(PdfDocument.java:880)
W/System.err(17225):    at com.itextpdf.text.Document.close(Document.java:415)



As I say, it works fine out of eclipse, and it's only when I try to deploy
it that it fails.

Thanks,
Max



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/document-close-fails-in-Mobile-tp4659533.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to