|
Can anyone help me to better understand the use of AcroFields.setFieldCache()
when filling form fields? I have looked at the Subscribe.java example (http://itextpdf.com/examples/iia.php?id=161) and the example code in the JavaDoc (http://api.itextpdf.com/itext/com/itextpdf/text/pdf/AcroFields.html#setFieldCache()). In these examples, an empty HashMap is being created and then assigned to the AcroFields object -- but what I don't understand is how appearances are loaded into the HashMap. The code examples don't really make it clear what's happening with the cache. Is there anything that I need to do besides loading an empty HashMap into the object in order to benefit from caching? Thanks! -- View this message in context: http://itext-general.2136553.n4.nabble.com/Some-help-with-AcroFields-setFieldCache-tp4656294.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ iText-questions mailing list [hidden email] 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 |
|
On 12/09/2012 17:25, msinatl wrote:
> I don't understand is how appearances are > loaded into the HashMap. The cache is loaded automagically the first time an appearance needs to be created. Isn't that how a cache usually works? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ iText-questions mailing list [hidden email] 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 |
|
In that case, why not just instantiate
the empty HashMap at the same time AcroFields.getFields() is called and
save the developer the extra lines of code?
From: "1T3XT BVBA [via iText - General]" <[hidden email]> To: msinatl <[hidden email]> Date: 09/12/2012 01:01 PM Subject: Re: Some help with AcroFields.setFieldCache()? On 12/09/2012 17:25, msinatl wrote: > I don't understand is how appearances are > loaded into the HashMap. The cache is loaded automagically the first time an appearance needs to be created. Isn't that how a cache usually works? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ iText-questions mailing list [hidden email] 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 If you reply to this email, your message will be added to the discussion below: http://itext-general.2136553.n4.nabble.com/Some-help-with-AcroFields-setFieldCache-tp4656299p4656300.html To unsubscribe from Some help with AcroFields.setFieldCache()?, click here. NAML |
|
On 12/09/2012 19:03, msinatl wrote:
In that case, why not just instantiate the empty HashMap at the same time AcroFields.getFields() is called and save the developer the extra lines of code?That wouldn't make sense, would it? You'd be making a new HashMap for every AcroFields instance. That wouldn't be a cache, that would be overhead. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ iText-questions mailing list [hidden email] 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 |
| Powered by Nabble | Edit this page |
