[
https://issues.apache.org/jira/browse/PDFBOX-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13913217#comment-13913217
]
Fred Andrews commented on PDFBOX-1946:
--------------------------------------
I should have been clearer, I have made all these changes, and then
things do work just fine. There are log entries which indicate some
font files still were not found, but it does not seem to impact the
capability of the TextStripper, which is what I have been working with.
The need for this is that the latest versions of Java make it extremely
cumbersome and frightening for end users to change their Applet
privileges, even for signed Applets. Since my Applet is for a demo of
capability, asking users to change their privileges is a non-starter.
I'll work on putting then in via svn.
Regards
--
Fred Andrews
[email protected]
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
> Running within an Applet has many AccessControlException 's
> -----------------------------------------------------------
>
> Key: PDFBOX-1946
> URL: https://issues.apache.org/jira/browse/PDFBOX-1946
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.4
> Environment: Running within an Applet
> Reporter: Fred Andrews
>
> I've identified 6 modules that should be modified to avoid
> AccessControlException's while running within an Applet. My solution would
> be to catch each AccessControlException and then use a default or continue
> on. For most of these, that is probably the best solution, for a few
> especially PDFStreamEngine someone may have a better idea.
> The modules that have issues:
> pdfbox\pdfparser\BaseParser -- line 131 call to Boolean.getBoolean, line 170
> call to Integer.getInteger
> pdfbox\util\PDFTextStripper -- line 79 call to System.getProperty()
> pdfbox\util\ResourceLoader -- line 67 call to getSystemClassLoader()
> pdfbox\pdmodel\graphics\color\PDColorState -- line 50, call to Color.getColor
> pdfbox/encoding/Encoding -- line 78, call to System.getProperty
> pdfbox\util\PDFStreamEngine -- Line 351 & 364 check for font == null (will be
> null if had resource loading problems)
> Not sure what the best way is to proceed. Please advise.
> Thanks
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)