Hello!
I have the same situation in the LEADTOOLS v17
Could I ask you why errors rise in the next code:
RasterSupport.Unlock(RasterSupportType.Document, "...");
RasterCodecs _codecs = new RasterCodecs();
_codecs.Save(e.Image, _fileName, RasterImageFormat.RasPdf, 1, 1, 1, 1, CodecsSavePageMode.Append);
Error - "PDF capability is required":
at Leadtools.RasterException.CheckErrorCode(Int32 code)
at Leadtools.Codecs.RasterCodecs.SaveOnePage(Int32 page, SaveParams saveParams)
at Leadtools.Codecs.RasterCodecs.DoSave(SaveParams saveParams)
at Leadtools.Codecs.RasterCodecs.Save(RasterImage image, String fileName, RasterImageFormat format, Int32 bitsPerPixel, Int32 firstPage, Int32 lastPage, Int32 firstSavePageNumber, CodecsSavePageMode pageMode)
at NordicIT.Mark5.Doc.Scanner.MarkScanner._twainSession_AcquirePage(Object sender, TwainAcquirePageEventArgs e)
or:
_codecs.Save(e.Image, _fileName, RasterImageFormat.PdfLeadMrc, 1, 1, 1, 1, CodecsSavePageMode.Append);
Error - "Feature not supported":
at Leadtools.RasterException.CheckErrorCode(Int32 code)
at Leadtools.Codecs.RasterCodecs.SaveOnePage(Int32 page, SaveParams saveParams)
at Leadtools.Codecs.RasterCodecs.DoSave(SaveParams saveParams)
at Leadtools.Codecs.RasterCodecs.Save(RasterImage image, String fileName, RasterImageFormat format, Int32 bitsPerPixel, Int32 firstPage, Int32 lastPage, Int32 firstSavePageNumber, CodecsSavePageMode pageMode)
at NordicIT.Mark5.Doc.Scanner.MarkScanner._twainSession_AcquirePage(Object sender, TwainAcquirePageEventArgs e)
References added on:
Leadtools.dll
Leadtools.Codecs.dll
Leadtools.Twain.dll
Leadtools.Codecs.Pdf.dll
Leadtools.Codecs.Ras.dll
And some other dll-s
Thank you for answers!
Best regards