You are viewing limited content. For full access, please sign in.

Question

Question

Empower 2014 - EDM351 - Advanced Applied SDK - What would you like to see?

asked on December 18, 2013

 Hello Laserfiche Community! 

 

I'm currently hard at work putting together my Empower 2014 presentation for EDM351 - Advanced Applied SDK and I'd like to get your answers to the following question.

 

What topics would you like to see in a class like this?  

 

All replies are welcome, whether you are attending or not! And if you are going to Empower 2014, love the SDK, and are not going to my class yet... the Wednesday session still has 12 spots so sign up!

 

My current agenda is:

 

  • How to design an SDK web application and service
  • Using RA to maximize application performance
  • Best practices for processing server notifications

 

1 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on July 11, 2014

Click here for the presentation power point of Empower 2014 presentation for EDM351 - Advanced Applied SDK

0 0

Replies

replied on December 18, 2013

How to run OCR jobs on multiple threads?

 

Most common pitfalls and how to avoid them.

 

What is a better way of handling mimetypes when importing different sets of documents? Currently I am using my own custom collection of mimetypes to lookup using the document's extension.

 

I'll add more as it comes to me.

 

Thanks.

 

 

1 0
replied on December 18, 2013

Thanks for the response!

 

I'd probably not cover mime type handling in the class, so here is a code snippet for how I would do it. This relies on the mime type being known to the machine so I'd try and integrate your custom collection with this.

 

        public static string GetMimeType(string extension, out bool wasFound)
        {
            wasFound = false;
            string mimeType = "application/octet-stream";
            if (!string.IsNullOrEmpty(extension))
            {
                if (!extension.StartsWith("."))
                {
                    extension = "." + extension;
                }

                try
                {
                    bool setMimeType = false;
                    RegistryKey key = Registry.ClassesRoot.OpenSubKey(extension.ToLowerInvariant(), false);
                    if (key != null)
                    {
                        string value = System.Convert.ToString(key.GetValue("Content Type", string.Empty));                        
                        if (!string.IsNullOrEmpty(value))
                        {
                            mimeType = value;
                            wasFound = true;
                        }

                        key.Close();
                    }
                    
                    wasFound = setMimeType;
                }
                catch (SecurityException)
                {
                    // No rights to key.
                }
            }

            return mimeType;
        }

 

2 0
replied on May 29, 2014

I stumbled across this thread when trying to determine if the Laserfiche OCR engine can process more than one document at a time.  I am investigating building multi-threading into an OCR scheduling application but I am unsure whether or not this is possible from an engine stand point.  

 

I am trying to avoid building a multi-threading capability to process OCR on documents more efficiently only to find out the OCR engine can only process one document at a time.  

 

Does anyone have any insight here?  

 

 

0 0
replied on May 29, 2014

I have written a similar application. It is unstable, probably have to tweak some more. However, have you looked into Distributed Processing service application from Laserfiche? I recommend trying that out and see if that will accomplish what you are trying to do. Also because it works with workflows and web access.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.