Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, May 30, 2012 6:40:01 AM(UTC)

BKV  
BKV

Groups: Registered
Posts: 10


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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, May 31, 2012 5:14:26 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Our moderator split your post from the thread it was in, because having the same error does not always mean it's the same problem.

Are you using version 17.0? If yes, the "PDF capability is required" error means that to save to PDF format, you have to unlock the PDF save support in your code using the RasterSupport.Unlock Method.
If you have the LEADTOOLS PDF Plug-in but you don't have the unlock keys, please send your LEADTOOLS v17 serial numbers in a new email to sales@leadtools.com and ask about the PDF save unlock key.

About the "Feature not supported" issue, the problem might be related to missing filter DLLs in your project. According to the documentation, you need to add the following DLLs as references in your project to save PdfLeadMrc format:
+----------------+
Leadtools.Mrc.dll
Leadtools.PdfCompressor.dll
Leadtools.Pdf.dll
Leadtools.Codecs.Cmp.dll
Leadtools.Codecs.Jb2.dll
Leadtools.Codecs.Raw.dll
Leadtools.Codecs.Fax.dll
+----------------+

For more information, please see the help topic "Files To Be Included With Your Application" in the LEADTOOLS .Net help file.

If the problem persists after adding the DLLs, please send this issue in a new email to support@leadtools.com and include the following information in your email:
1. Your LEADTOOLS serial number (do NOT post it here).
2. A link to this forum post.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.086 seconds.