Exemplo n.º 1
0
 public String GetText(int page_num, textout_t type)
 {
     return tc_mGetText(mu_object, page_num, type);
 }
Exemplo n.º 2
0
 private string tc_mGetText(IntPtr ctx, int pagenum, textout_t type)
 {
     String output;
     try
     {
         if (is64bit)
             output = mGetText64(ctx, pagenum, (int) type);
         else
             output = mGetText32(ctx, pagenum, (int) type);
     }
     catch (DllNotFoundException)
     {
         /* DLL not found */
         String err = "DllNotFoundException: MuPDF DLL not found 28";
         mupdfDLLProblemMain(this, err);
         return null;
     }
     catch (BadImageFormatException)
     {
         /* Using 32 bit with 64 or vice versa */
         String err = "BadImageFormatException: Incorrect MuPDF DLL";
         mupdfDLLProblemMain(this, err);
         return null;
     }
     return output;
 }