Wed Aug 25, 2021 1:27 pm
Brian,
We had another issue cropping up now converting doc to tif
Unhandled Exception: System.TypeLoadException: Could not load type 'spr?' from a
ssembly 'Spire.Pdf, Version=7.8.11.0, Culture=neutral, PublicKeyToken=663f351905
198cb3'.
at Spire.Doc.Document.?()
at Spire.Doc.Document..ctor()
at Spire.Doc.Document..ctor(String fileName)
at TiffConversion.Program.ProcessWORDFile(String inputWRDfile, String tmpDire
ctory, String tifOutputDir)
Listed below is my method and the code breaks at the below highlighted line.
public static void ProcessWORDFile(string inputWRDfile, string tmpDirectory, string tifOutputDir)
{
Document document = new Spire.Doc.Document(inputWRDfile);
string inputWRDFileName = Path.GetFileName(inputWRDfile);
string docOrdocx = inputWRDFileName.Substring(inputWRDFileName.Length - 4);
string strTifFile;
if (docOrdocx.ToUpper() == "DOCX")
strTifFile = inputWRDFileName.Substring(0, inputWRDFileName.Length - 4) + "tif";
else
strTifFile = inputWRDFileName.Substring(0, inputWRDFileName.Length - 3) + "tif";
JoinTiffImages(SaveAsImage(document), tifOutputDir + strTifFile, EncoderValue.CompressionLZW);
}
Also this was working before I applied the hotfix for spire.pdf libraries on the same project