[ 
https://issues.apache.org/jira/browse/PDFBOX-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16636781#comment-16636781
 ] 

Amit Maheshwari commented on PDFBOX-4324:
-----------------------------------------

Hello [~tilman]

As you have mentioned in above comment, I was trying to test couple of cases 
using PDFBox 2.0.11, But I guess i could not successfully build running sample 
application.

Actually i am willing to use it in .Net (4.6) , I tried to convert jar into dll 
using IKVM but when I tried to use that dll in my project I am getting 
following error at the time of `PDDocument.load(filepath)` . I have added 
reference commons.logging.dll (converted from jar) too.

 
{code:java}
// code placeholder
System.TypeInitializationException: The type initializer for 
'org.apache.pdfbox.io.ScratchFile' threw an exception. ---> 
org.apache.commons.logging.LogConfigurationException: 
java.lang.NullPointerException (Caused by java.lang.NullPointerException)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(String name)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(String name)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Class clazz)
at org.apache.commons.logging.LogFactory.getLog(Class clazz)
at org.apache.pdfbox.io.ScratchFile..cctor()
--- End of inner exception stack trace ---
at org.apache.pdfbox.io.ScratchFile..ctor(MemoryUsageSetting memUsageSetting)
at org.apache.pdfbox.pdmodel.PDDocument.load(File file, String password, 
InputStream keyStore, String alias, MemoryUsageSetting memUsageSetting)
at org.apache.pdfbox.pdmodel.PDDocument.load(File file, String password, 
MemoryUsageSetting memUsageSetting)
at org.apache.pdfbox.pdmodel.PDDocument.load(File file)
at PDFPOC.Program.loadPDDocument(String documentPath)
{code}
Can you help me out in this matter? or Is there any helpful document for the 
same?

> while extracting text from region : "Error: expected hex character and not 
> s:115"
> ---------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4324
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4324
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 2.0.2
>            Reporter: Amit Maheshwari
>            Priority: Major
>         Attachments: SRI NAGAR.PDF, ToUnicode.txt
>
>
> I am getting following error when I try to extract text of any specific 
> region of 2nd page of attached pdf (while 1st page is working fine)
>  
> Error Message:
> "Error: expected hex character and not s:115"
>  
> Stack-trace:
> at org.apache.pdfbox.contentstream.PDFStreamEngine.operatorException(Operator 
> operator, List operands, IOException e)
>  at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(Operator 
> operator, List operands)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDContentStream
>  )
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDContentStream 
> )
>  at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDPage page)
>  at org.apache.pdfbox.text.PDFTextStreamEngine.processPage(PDPage )
>  at org.apache.pdfbox.text.PDFTextStripper.processPage(PDPage page)
>  at org.apache.pdfbox.text.PDFTextStripperByArea.extractRegions(PDPage page)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to