The type initializer for 'com.lowagie.text.pdf.PdfWriter' threw an exception.
PDF Concatenation Tool
Brought to you by:
uzzy
I converted my application from ASP.Net MVC 2.0 to 5.0. The application works in the 2.0 and throws an exception at PDFWriter for typeinitialization and that is all information I could get out of it. The code is and throws the exception at PDFWriter step. Thanks
public void Generate(DataReader oReader, string appPath, Stream oStream)
{
// Fills the empty space of a column with provided filling character.
SplitCharacter sc = new SplitCharacterImpl();
// Setting page size to standard letter size Document document = new Document(PageSize.LETTER, 36, 18, 36, 36); PdfWriter writer = PdfWriter.getInstance(document, oStream);
...
I do not have privileges to delete the post above but the actual problem is at "static readonly Font Font7Bold = FontFactory.getFont("Arial", 7, Font.BOLD);" The DLL has this function but I get an exception error here and I am initialzing many fonts. It works on MVC 2.0 application. Any help would be great. Thank you