개정판 bae83c92
- convert에서 한글 파일명 오류 수정
- merged pdf 실행하도록 메시지창 출력
Change-Id: I882454f7cf0f521c621f33db8876b568db5a8342
ConvertService/ServiceBase/Markus.Service.Convert/ConvertService.cs | ||
---|---|---|
217 | 217 |
{ |
218 | 218 |
gTempFileName = saveitem.PdfFilePath; |
219 | 219 |
|
220 |
gMarkusPDF.pdfLoad(saveitem.PdfFilePath, saveitem.MinimumFontSize, saveitem.UseResolution); |
|
220 |
if(gTempFileName.ToCharArray().Any(x=>x.IsKor())) |
|
221 |
{ |
|
222 |
gTempFileName = Path.Combine(Path.GetTempPath(), GuidExtension.shortGuid() + ".pdf"); |
|
223 |
|
|
224 |
File.Copy(saveitem.PdfFilePath, gTempFileName,true); |
|
225 |
|
|
226 |
System.Threading.Thread.Sleep(100); |
|
227 |
} |
|
228 |
|
|
229 |
gMarkusPDF.pdfLoad(gTempFileName, saveitem.MinimumFontSize, saveitem.UseResolution); |
|
221 | 230 |
|
222 | 231 |
if(gMarkusPDF.PageCount() > 0) |
223 | 232 |
{ |
... | ... | |
487 | 496 |
System.Threading.Thread.SpinWait(5); |
488 | 497 |
|
489 | 498 |
gMarkusPDF = new MarkusPDF(); |
490 |
gMarkusPDF.pdfLoad(saveitem.PdfFilePath, saveitem.MinimumFontSize, saveitem.UseResolution);
|
|
499 |
gMarkusPDF.pdfLoad(gTempFileName, saveitem.MinimumFontSize, saveitem.UseResolution);
|
|
491 | 500 |
} |
492 | 501 |
|
493 | 502 |
System.Threading.Thread.SpinWait(2); |
... | ... | |
505 | 514 |
} |
506 | 515 |
|
507 | 516 |
gMarkusPDF = new MarkusPDF(); |
508 |
gMarkusPDF.pdfLoad(saveitem.PdfFilePath, saveitem.MinimumFontSize, saveitem.UseResolution);
|
|
517 |
gMarkusPDF.pdfLoad(gTempFileName, saveitem.MinimumFontSize, saveitem.UseResolution);
|
|
509 | 518 |
|
510 | 519 |
currentPageNo = currentPageNo - 1; |
511 | 520 |
} |
내보내기 Unified diff