개정판 dc0bfdad
issue #1195: typewriter 형식의 주석이 Flattening 되지 않고 오류를 발생. Form flattening 만 하는 것으로 변경.
Change-Id: I713e1626c7bc8b7b35d667ff9224f1ac8a167cbe
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs | ||
---|---|---|
348 | 348 |
FileInfo TestFile = new FileInfo(System.IO.Path.GetTempFileName()); |
349 | 349 |
|
350 | 350 |
PdfReader pdfReader = new PdfReader(tempFileInfo); |
351 |
for (int i = 1; i < pdfReader.NumberOfPages; i++) |
|
351 |
for (int i = 1; i <= pdfReader.NumberOfPages; i++)
|
|
352 | 352 |
{ |
353 | 353 |
var mediaBox = pdfReader.GetPageSize(i); |
354 | 354 |
var cropbox = pdfReader.GetCropBox(i); |
... | ... | |
377 | 377 |
var memStream = new MemoryStream(); |
378 | 378 |
var stamper = new PdfStamper(pdfReader, memStream) |
379 | 379 |
{ |
380 |
FormFlattening = true, |
|
381 |
FreeTextFlattening = true, |
|
382 |
AnnotationFlattening = true,
|
|
380 |
FormFlattening = true,
|
|
381 |
//FreeTextFlattening = true,
|
|
382 |
//AnnotationFlattening = true,
|
|
383 | 383 |
}; |
384 |
|
|
384 |
|
|
385 | 385 |
stamper.Close(); |
386 | 386 |
pdfReader.Close(); |
387 | 387 |
var array = memStream.ToArray(); |
내보내기 Unified diff