프로젝트

일반

사용자정보

개정판 37656a07

ID37656a07e151e2ab3070f3bf9619135c099afae7
상위 8ae6dbbf
하위 5a288f04

함의성이(가) 6년 이상 전에 추가함

issue #569

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
480 480
        try:
481 481
            filePath = os.path.join(os.path.dirname(os.path.realpath(__file__)) , 'bin64', 'PDF_TO_IMAGE.exe')
482 482
            os.system("\"" + filePath + "\"")
483
            #os.system("E:\Projects\DTIPID\DTI_PID\PDF_TO_IMAGE\\bin\Debug\PDF_TO_IMAGE.exe")
483 484
        except Exception as ex:
484 485
            print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
485 486

  
DTI_PID/PDF_TO_IMAGE/ConvertImage.cs
129 129

  
130 130
        private void Btn_Convert_Click(object sender, EventArgs e)
131 131
        {
132

  
132 133
            int iDpi = 0;
133 134
            if(Txt_PDFPath.Text != "" && int.TryParse(Combo_DPI.Text,out iDpi) == true)
134 135
            {
......
185 186
                                    sFileName = pagePath + "_" + fDpix + ".jpeg";
186 187
                                }
187 188
                                else
188
                                {
189
                           
190
                                    
191
                                    var widthData =int.Parse( Txt_Width.Text);
189
                                {    
190
                                    var widthData =int.Parse(Txt_Width.Text);
192 191
                                    int heightData = int.Parse(Txt_Height.Text);
193 192
                  
194 193
                                    var rotation = doc.GetPage(i).GetRotation();
......
217 216
                                    }
218 217
                                    catch (Exception ex)
219 218
                                    {
220

  
219
                                        MessageBox.Show("err" + "\n" + ex.ToString() + "\n" + ex.Message);
221 220
                                    }
222 221

  
223 222
                                }
......
227 226
                        }
228 227
                        catch (Exception ex)
229 228
                        {
229
                            MessageBox.Show("err2" + "\n" + ex.ToString() + "\n" + ex.Message);
230 230
                            // return false;
231 231
                        }
232 232
                    }

내보내기 Unified diff