i want convert pdf document to image, i wrote the following code:
- Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("C:\\Users\\SAPIR\\Desktop\\der\\PDF\\se.pdf");
Image emf = doc.SaveAsImage(0, Spire.Pdf.Graphics.PdfImageType.Metafile);
I get the exception System.TypeInitializationException
Additional information: Rebooting type for 'SPR?' Raises an exception.
inner exception :Input string was not in the correct format
Workspace: win 10 ,framwork 4.5 'vs 2013
i tried to execute this application on two different computers, one with win 2007 and the other with win 2010 and everything worked fine , someone know the cause of this exception-which occured on one computer (while on the others it works fine)?
it very urgent,I appreciate any help ,
thank you in advance