개정판 6a19b48d
issue #00000 페이지 이미지 download 로직 수정
Change-Id: I4da03c36b5a135eea80b57b20ada38239afd1082
KCOM/Controls/PrintControl.xaml.cs | ||
---|---|---|
628 | 628 | |
629 | 629 |
//Export 버튼 클릭 이벤트 |
630 | 630 |
[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions] |
631 |
[System.Security.Permissions.FileIOPermission(System.Security.Permissions.SecurityAction.LinkDemand)] |
|
631 |
//[System.Security.Permissions.FileIOPermission(System.Security.Permissions.SecurityAction.LinkDemand)]
|
|
632 | 632 |
async void ExportMethod(object sender, RoutedEventArgs e) |
633 | 633 |
{ |
634 | 634 |
try |
... | ... | |
714 | 714 |
FileStream fs = new FileStream(SaveDig.FileName, FileMode.Create, FileAccess.Write); |
715 | 715 | |
716 | 716 |
Document doc = new Document(); |
717 |
try |
|
718 |
{ |
|
719 |
iTextSharp.text.Version.GetInstance(); |
|
720 |
} |
|
721 |
catch (System.NullReferenceException ex) |
|
722 |
{ |
|
723 | ||
724 |
} |
|
725 | ||
717 | 726 |
PdfWriter writer = PdfWriter.GetInstance(doc, fs); |
718 | 727 | |
719 | 728 |
doc.Open(); |
720 | ||
729 |
|
|
721 | 730 |
float height = doc.PageSize.Height; |
722 | 731 |
float width = doc.PageSize.Width; |
723 | 732 | |
... | ... | |
742 | 751 |
doc.NewPage(); |
743 | 752 |
doc.Add(Export_img); |
744 | 753 |
} |
754 |
doc.Close(); |
|
755 |
writer.Close(); |
|
745 | 756 |
break; |
746 | 757 |
} |
747 | 758 |
case (1): |
내보내기 Unified diff