개정판 66128b37
issue #937: calculate font size to fit given text boundary
Change-Id: If308140683a42e3fc20f6bb28b75507a93a5273d
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs | ||
---|---|---|
627 | 627 |
DoubleCollection DashSize = control.DashSize; |
628 | 628 |
double Opacity = control.Opac; |
629 | 629 |
List<Point> PointSet = GetPdfPointSystem(control.PointSet); |
630 |
//bookmark = new Dictionary<string, object>(); |
|
631 |
//bookmark.Add("Title", "Commented Page : " + markupItem.PAGENUMBER); |
|
632 |
//bookmark.Add("Page", a + " Fit"); |
|
633 |
//bookmark.Add("Page", "2 /XYZ 50 500 50 50"); |
|
634 |
//var pointRect = MathSet.GetPointsToRectX(PointSet); |
|
635 |
|
|
636 |
//PdfDestination.INDIRECT |
|
637 |
//bookmark.Add("Page", String.Format("{0} /XYZ {1} {2} {3}", markupItem.PAGENUMBER, pointRect.Left, pointRect.Top, 1f)); |
|
638 |
//bookmark.Add("Action", "GoTo"); |
|
639 |
//bookmark.Add("Kids", outlines); |
|
640 |
//root.Add(bookmark); |
|
641 |
|
|
630 |
|
|
642 | 631 |
Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawRectangle(PointSet, LineSize, contentByte, DashSize, _SetColor, PaintStyle, Opacity); |
643 | 632 |
} |
644 | 633 |
break; |
... | ... | |
722 | 711 |
bool reverse = (area < 0); |
723 | 712 |
if (PaintStyle == PaintSet.None) |
724 | 713 |
{ |
725 |
Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, PaintStyle, Opacity); |
|
714 |
Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
|
|
726 | 715 |
} |
727 | 716 |
else |
728 | 717 |
{ |
729 |
Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, PaintStyle, Opacity); |
|
718 |
Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
|
|
730 | 719 |
} |
731 | 720 |
} |
732 | 721 |
break; |
... | ... | |
760 | 749 |
|
761 | 750 |
if (PaintStyle == PaintSet.None) |
762 | 751 |
{ |
763 |
Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, PaintStyle, Opacity); |
|
752 |
Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
|
|
764 | 753 |
} |
765 | 754 |
else |
766 | 755 |
{ |
767 |
Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, PaintStyle, Opacity); |
|
756 |
Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
|
|
768 | 757 |
} |
769 | 758 |
} |
770 | 759 |
else |
내보내기 Unified diff