System.Reflection.Assembly.LoadFrom("iTextAsian.dll") is required before the program reads 'cjkfonts.properties' in VJ# 2.0. In contrast, it is not reuqired in VJ# 1.1. This matter is one of the incompatibilities between v1.1 and v2.0.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One question - any reason not to use Assembly.Load() instead? With LoadFrom I have to assume that iTextAsian.dll is in the same directory as iText.dll (usually but not always true).
thanks - dave
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's a same with classpath or cp option in Java. I list DLLs frequently used below.
Apache.Xml.Commons.dll and Apache.Crimson.dll - XML parser. You can use the other parser like Xerces <https://sourceforge.net/project/showfiles.php?group_id=151482&package_id=170731>.
iTextAsian.dll - on using Asian cmaps
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi;
I have a problem where sometimes (usually it works fine) the line:
InputStream is = getResourceStream(RESOURCE_PATH + "cjkfonts.properties");
In com.lowagie.text.pdf.CJKFont returns null when called. The call to
is.close() then throws an exception as is is null.
Any idea why this sometimes does not work? This is uncer .NET 2.0 and uses the version for .NET 2.0 only.
Thanks - dave
System.Reflection.Assembly.LoadFrom("iTextAsian.dll") is required before the program reads 'cjkfonts.properties' in VJ# 2.0. In contrast, it is not reuqired in VJ# 1.1. This matter is one of the incompatibilities between v1.1 and v2.0.
Thank you - that fixed it.
One question - any reason not to use Assembly.Load() instead? With LoadFrom I have to assume that iTextAsian.dll is in the same directory as iText.dll (usually but not always true).
thanks - dave
Of course, we can also use Assembly.Load(String) method. It depends on the senario that which is the best way to load assebmbly.
Hi;
Also, is there a list of things like this that I need to do to initialize iText?
thanks - dave
It's a same with classpath or cp option in Java. I list DLLs frequently used below.
Apache.Xml.Commons.dll and Apache.Crimson.dll - XML parser. You can use the other parser like Xerces <https://sourceforge.net/project/showfiles.php?group_id=151482&package_id=170731>.
iTextAsian.dll - on using Asian cmaps