개정판 645f6f94
issue #1184: #1185: pdf 의 size 를 가져올때 crop box 를 가져와서 계산하도록 수정.
Change-Id: Idbd9952ddf564a0b7222c64a45c90af47b9cc26b
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs | ||
---|---|---|
223 | 223 |
} |
224 | 224 |
} |
225 | 225 |
|
226 |
documentItem = _entity.DOCUMENT_ITEM.Where(data => data.DOCUMENT_ID == DocInfoItem.DOCUMENT_ID).FirstOrDefault(); |
|
226 |
documentItem = _entity.DOCUMENT_ITEM.Where(data => data.DOCUMENT_ID == DocInfoItem.DOCUMENT_ID && data.PROJECT_NO == FinalPDF.PROJECT_NO).FirstOrDefault();
|
|
227 | 227 |
if (documentItem == null) |
228 | 228 |
{ |
229 | 229 |
throw new Exception("DocInfo와 DocumentItem의 documentItemID가 같지 않습니다. 데이터를 확인해주세요"); |
... | ... | |
474 | 474 |
|
475 | 475 |
foreach (var markupItem in MarkupDataSet) |
476 | 476 |
{ |
477 |
pdfSize = pdfReader.GetPageSizeWithRotation(markupItem.PAGENUMBER);
|
|
477 |
pdfSize = pdfReader.GetCropBox(markupItem.PAGENUMBER);
|
|
478 | 478 |
var currentPage = DocPageItem.Where(d => d.PAGE_NUMBER == markupItem.PAGENUMBER).FirstOrDefault(); |
479 | 479 |
|
480 | 480 |
mediaBox = pdfReader.GetPageSize(markupItem.PAGENUMBER); |
내보내기 Unified diff