Re: [iText-questions] document.close() fails in Mobile

2013-12-10 Thread maxmcc
Okay, by including a blank page using the lines 



I was able to get the code to write a PDF in the deployed format.  However,
the paragraphs still fail to write, and I am left with a blank document.  I
think that _this_ problem is related to the not.found.as.resource error

W/System.err( 7120): Check 4
D/refill  ( 7120): var1 = 
D/refill  ( 7120): [Hello World!]
W/System.err( 7120): No message found for 1.not.found.as.resource
D/refill  ( 7120): var2 = 
D/refill  ( 7120): [Brace yourselves!]
W/System.err( 7120): No message found for 1.not.found.as.resource
W/System.err( 7120): Successfully added paragraphs

But I'm still at a loss as to why I'm getting that in my deployed form only,
or what resource 1 might be.  

The full extent of my code is in the original post.

Thanks,
Max



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

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/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


Re: [iText-questions] document.close() fails in Mobile

2013-12-10 Thread iText mailing list
On 12/10/2013 8:05 PM, maxmcc wrote:
 the paragraphs still fail to write, and I am left with a blank document.  I
 think that _this_ problem is related to the not.found.as.resource error

An exception is thrown and all exceptions in iText are localized, which 
means the actual text is stored in a language property file with 
extension .lng. If that .lng file is not found, the key of the entry in 
the language property file is used.

In your case, you have an error with key 1.not.found.as.resource. The 
localization handler replaces the 1 with the first parameter passed to 
the exception, but as the .lng file is missing in your APK, the 1 
isn't being resolved.

An educated guess though would be that the value of 1 is in this case 
Helvetica, meaning that the file Helvetica.afm is missing in your APK.

All these errors are very common when creating your own Android version 
of iText, forgetting to include the resources into your APK, such as the 
.lng and .afm files.

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/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


Re: [iText-questions] document.close() fails in Mobile

2013-12-10 Thread maxmcc
Thank you for getting back to me.

I found several people complaining of these errors, and tried to rule them
out, but I would certainly believe that this is the problem I'm having. 
Where in the itextpdf-x.x.x.jar file tree should my .afm files be?  

And just to make sure I understand what you're saying about the error
message, you're saying that when an error occurs, iText creates a .lng file? 
Then, when it goes to report that error, it looks for the .lng file, but if
it can't find it, it reports the key (which is to say filename?) of the
file?  Sorry, I'm still somewhat new to Java, I'm still getting all of the
terminology down.

Thanks for your help,
Max



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

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/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


Re: [iText-questions] document.close() fails in Mobile

2013-12-10 Thread iText mailing list
On 12/11/2013 12:45 AM, maxmcc wrote:
 Where in the itextpdf-x.x.x.jar file tree should my .afm files be?
itextpdf-x.x.x.jar??? Surely you meant to say itextg-x.y.z.jar
Please read the documentation: http://itextpdf.com/product/itextg
Download iTextG and you'll find the files you need under 
com/itextpdf/text/I10n/error and \com\itextpdf\text\pdf\fonts\

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/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