Hi Daniel
I build Apache PDFBox 1.5.0 source using in different machine with
environment as follows
OS:
===
Windows 7 Ultimate
Java
====
JDK 1.6.0
The build was successful {7 dll files and 11 exe files} and I used the dlls
in my .net application but it throws errors for particular PDF resumes
Here is the list of dlls builded
1) bcmail-jdk15-1.44.dll
2) bcprov-jdk15-1.44.dll
3) commons-logging.dll
4) fontbox-1.5.0-SNAPSHOT.dll
5) jempbox-1.5.0-SNAPSHOT.dll
6) junit.dll
7) pdfbox-1.5.0-SNAPSHOT.dll
Here is the error.
Exception : Stack Trace : at java.awt.Font.createFont(Int32 fontFormat,
InputStream fontStream)
at org.apache.pdfbox.pdmodel.font.PDType1CFont.prepareAwtFont(CFFFont )
at org.apache.pdfbox.pdmodel.font.PDType1CFont.getawtFont()
at org.apache.pdfbox.pdmodel.font.PDType1Font..ctor(COSDictionary
fontDictionary)
at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(COSDictionary
dic)
at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(COSDictionary
dic, Map fontCache)
at org.apache.pdfbox.pdmodel.PDResources.getFonts(Map fontCache)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDPage aPage,
PDResources resources, COSStream cosStream)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDPage aPage,
PDResources resources, COSStream cosStream)
at org.apache.pdfbox.util.PDFTextStripper.processPage(PDPage page,
COSStream content)
at org.apache.pdfbox.util.PDFTextStripper.processPages(List pages)
at org.apache.pdfbox.util.PDFTextStripper.writeText(PDDocument doc,
Writer outputStream)
at org.apache.pdfbox.util.PDFTextStripper.getText(PDDocument doc)
at WindowsFormsApplication2.Form6.btnConvert_Click(Object sender,
EventArgs e) in D:\VS
2008\WindowsFormsApplication2\WindowsFormsApplication2\Form6.cs:line 37
can you help me to resolve the problem
Kumaran
-----Original Message-----
From: Kumaran [mailto:[email protected]]
Sent: Thursday, March 24, 2011 3:45 PM
To: [email protected]
Subject: RE: how to get dot net version dll from Apache PDFBox 1.5.0 source
Hi Daniel
I am using IKVM Version - ikvm-0.44.0.5
This exception is bubbled while Apache PDFBox 1.5.0 source is builded using
ant
System.TypeLoadException: Type
'System.Security.SecuritySafeCriticalAttribute' not found in assembly
'mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
The details of machine & software are given below
OS:
===
Windows XP Service pack 2
Java
====
JDK 1.6.0
So please help me to resolve the problem
Kumaran
-----Original Message-----
From: Daniel Wilson [mailto:[email protected]]
Sent: Thursday, March 24, 2011 1:21 AM
To: T.L.
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: how to get dot net version dll from Apache PDFBox 1.5.0 source
Kumaran,
The errors you list are IKVM / .Net errors. What version of IKVM are you
using?
I'm getting Java errors ... so must have something set up wrong ...
Daniel
On Wed, Mar 23, 2011 at 9:39 AM, T.L. <[email protected]> wrote:
> Hi,
>
> it would be nice if there is a standard .net version release that is
> correspondent to java version release.
>
> Luong
>
> On Wed, Mar 23, 2011 at 2:20 PM, Daniel Wilson
> <[email protected]> wrote:
> > Kumaran,
> >
> > I'll try to check this out. I haven't built in a few months and am
> getting
> > some errors myself ... but that may be due to something being out of
> date.
> >
> > Until a few months ago, I was maintaining the ability to build the
> > .Net version ... so hopefully I'll have an answer for you later today.
> >
> > Daniel
> >
> > On Tue, Mar 22, 2011 at 4:49 PM, Kumaran <[email protected]> wrote:
> >
> >> HI
> >>
> >>
> >>
> >> I want to know the detail procedure to get dot net version dll from
> Apache
> >> PDFBox 1.5.0 source
> >>
> >>
> >>
> >> I have done the above as mentioned in documentation a but I am
> >> getting error as follow
> >>
> >>
> >>
> >> Errer:
> >>
> >>
> >>
> >> [echo] Building PDFBox
> >>
> >> [exec] System.TypeLoadException: Type
> >> 'System.Security.SecuritySafeCriticalAttribute' not found in
> >> assembly 'mscorlib, Version=2.0.0.0, Culture=neutral,
> >> PublicKeyToken=b77a5c561934e089'
> >>
> >> [exec] at IKVM.Reflection.Reader.ModuleReader.ResolveType(Int32
> >> metadataToken, IGenericContext context)
> >>
> >> [exec] at IKVM.Reflection.Reader.ModuleReader.ResolveType(Int32
> >> metadataToken, Type[] genericTypeArguments, Type[]
> genericMethodArguments)
> >>
> >> [exec] at IKVM.Reflection.Reader.ModuleReader.GetMemberRef(Int32
> >> index, Type[] genericTypeArguments, Type[] genericMethodArguments)
> >>
> >> [exec] at
IKVM.Reflection.Reader.ModuleReader.ResolveMethod(Int32
> >> metadataToken, Type[] genericTypeArguments, Type[]
> genericMethodArguments)
> >>
> >> [exec] at IKVM.Reflection.Module.GetCustomAttributes(Int32
> >> metadataToken, Type attributeType)
> >>
> >> [exec] at
> >> IKVM.Reflection.Reader.MethodDefImpl.GetCustomAttributesData(Type
> >> attributeType)
> >>
> >> [exec] at
> >> IKVM.Reflection.CustomAttributeData.__GetCustomAttributes(MemberInf
> >> o
> >> member,
> >> Type attributeType, Boolean inherit)
> >>
> >> [exec] at IKVM.Reflection.MemberInfo.IsDefined(Type
> attributeType,
> >> Boolean inherit)
> >>
> >> [exec] at
IKVM.Internal.AttributeHelper.IsHideFromJava(MemberInfo
> >> mi)
> >>
> >> [exec] at
> >> IKVM.Internal.CompiledTypeWrapper.AddMethodOrConstructor(MethodBase
> method,
> >> List`1 methods)
> >>
> >> [exec] at IKVM.Internal.CompiledTypeWrapper.LazyPublishMethods()
> >>
> >> [exec] at IKVM.Internal.TypeWrapper.GetMethods()
> >>
> >> [exec] at IKVM.Internal.TypeWrapper.GetMethodWrapper(String
name,
> >> String sig, Boolean inherit)
> >>
> >> [exec] at
> >> IKVM.Internal.ClassFile.ConstantPoolItemMethodref.Link(TypeWrapper
> >> thisType)
> >>
> >> [exec] at IKVM.Internal.ClassFile.Link(TypeWrapper thisType)
> >>
> >> [exec] at IKVM.Internal.DynamicTypeWrapper.JavaTypeImpl.Finish()
> >>
> >> [exec] at IKVM.Internal.AotTypeWrapper.Finish()
> >>
> >> [exec] at IKVM.Internal.CompilerClassLoader.Compile()
> >>
> >> [exec] at IKVM.Internal.CompilerClassLoader.Compile(String
> >> runtimeAssembly, List`1 optionsList)
> >>
> >> [exec] at IkvmcCompiler.Main(String[] args)
> >>
> >>
> >>
> >> Regards
> >>
> >> Kumaran
> >>
> >>
> >
>