개정판 2e1d6c99
issue #1185: pdfsize 와 cropbox size 가 다른 케이스 수정.
Change-Id: I76d19eaa614dbd112b0be4db9e30de8e3eabdd3d
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs | ||
---|---|---|
474 | 474 |
|
475 | 475 |
foreach (var markupItem in MarkupDataSet) |
476 | 476 |
{ |
477 |
pdfSize = pdfReader.GetCropBox(markupItem.PAGENUMBER);
|
|
477 |
pdfSize = pdfReader.GetPageSizeWithRotation(markupItem.PAGENUMBER);
|
|
478 | 478 |
var currentPage = DocPageItem.Where(d => d.PAGE_NUMBER == markupItem.PAGENUMBER).FirstOrDefault(); |
479 | 479 |
|
480 | 480 |
mediaBox = pdfReader.GetPageSize(markupItem.PAGENUMBER); |
481 |
var cropBox = pdfReader.GetCropBox(markupItem.PAGENUMBER); |
|
481 |
var cropBox = pdfReader.GetCropBox(markupItem.PAGENUMBER);
|
|
482 | 482 |
|
483 |
//강인구 테스트 |
|
483 |
if (cropBox != null && cropBox.Width < mediaBox.Width || cropBox.Height < mediaBox.Height) |
|
484 |
{ |
|
485 |
pdfSize = cropBox; |
|
486 |
} |
|
484 | 487 |
scaleWidth = float.Parse(currentPage.PAGE_WIDTH) / pdfSize.Width; |
485 | 488 |
scaleHeight = float.Parse(currentPage.PAGE_HEIGHT) / pdfSize.Height; |
486 | 489 |
|
487 |
|
|
488 |
//if (cropBox != null && cropBox.Width < mediaBox.Width || cropBox.Height < mediaBox.Height) |
|
489 |
//{ |
|
490 |
// mediaBox = cropBox; |
|
491 |
//} |
|
492 |
|
|
493 | 490 |
pdfLink.CURRENT_PAGE = markupItem.PAGENUMBER; |
494 | 491 |
_entity.SaveChanges(); |
495 | 492 |
|
내보내기 Unified diff