468 |
468 |
scaleWidth = float.Parse(currentPage.PAGE_WIDTH) / pdfSize.Width;
|
469 |
469 |
scaleHeight = float.Parse(currentPage.PAGE_HEIGHT) / pdfSize.Height;
|
470 |
470 |
|
471 |
|
if (cropBox != null && cropBox.Width < mediaBox.Width || cropBox.Height < cropBox.Height)
|
|
471 |
if (cropBox != null && cropBox.Width < mediaBox.Width || cropBox.Height < mediaBox.Height)
|
472 |
472 |
{
|
473 |
473 |
mediaBox = cropBox;
|
474 |
474 |
}
|
... | ... | |
701 |
701 |
List<Point> PointSet = GetPdfPointSystem(control.PointSet);
|
702 |
702 |
double ArcLength = 30;
|
703 |
703 |
double size = MathSet.DistanceTo(GetPdfPointSystem(control.StartPoint), GetPdfPointSystem(control.EndPoint));
|
|
704 |
|
704 |
705 |
ArcLength = (size * 0.13);
|
705 |
|
if (ArcLength <= 10)
|
|
706 |
|
|
707 |
//강인구 수정(클라우드 사이즈)
|
|
708 |
//if (ArcLength <= 10)
|
|
709 |
//{
|
|
710 |
// ArcLength = 10;
|
|
711 |
//}
|
|
712 |
if (ArcLength <= 3)
|
706 |
713 |
{
|
707 |
714 |
ArcLength = 10;
|
708 |
715 |
}
|
|
716 |
else if (ArcLength <= 10)
|
|
717 |
{
|
|
718 |
ArcLength = 20;
|
|
719 |
}
|
|
720 |
else if (ArcLength <= 30)
|
|
721 |
{
|
|
722 |
ArcLength = 30;
|
|
723 |
}
|
|
724 |
|
709 |
725 |
var PaintStyle = control.PaintState;
|
710 |
726 |
double Opacity = control.Opac;
|
711 |
727 |
DoubleCollection DashSize = control.DashSize;
|
... | ... | |
914 |
930 |
{
|
915 |
931 |
fontsize = Convert.ToInt32(control.fontConfig[3]);
|
916 |
932 |
}
|
917 |
|
}
|
918 |
|
catch (Exception ex)
|
919 |
|
{
|
920 |
|
|
921 |
|
}
|
|
933 |
|
|
934 |
//강인구 수정(2018.04.17)
|
|
935 |
var TextStyle = Common.StringToFont.ConFontStyle(control.fontConfig[1]);
|
|
936 |
|
|
937 |
FontStyle fontStyle = FontStyles.Normal;
|
|
938 |
if (FontStyles.Italic == TextStyle)
|
|
939 |
{
|
|
940 |
fontStyle = FontStyles.Italic;
|
|
941 |
}
|
|
942 |
|
|
943 |
FontWeight fontWeight = FontWeights.Black;
|
|
944 |
|
|
945 |
var TextWeight = Common.StringToFont.ConFontWeight(control.fontConfig[2]);
|
|
946 |
if (FontWeights.Bold == TextWeight)
|
|
947 |
{
|
|
948 |
fontWeight = FontWeights.Bold;
|
|
949 |
}
|
|
950 |
|
|
951 |
TextDecorationCollection decoration = TextDecorations.Baseline;
|
|
952 |
if (control.fontConfig.Count() == 5)
|
|
953 |
{
|
|
954 |
decoration = TextDecorations.Underline;
|
|
955 |
}
|
|
956 |
|
|
957 |
|
922 |
958 |
|
923 |
959 |
if (control.isTrans)
|
924 |
960 |
{
|
925 |
961 |
Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(newStartPoint, tempMidPoint, (int)LineSize, contentByte, _SetColor, Opacity);
|
926 |
962 |
Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(newStartPoint, tempMidPoint, (int)LineSize, contentByte, new DoubleCollection(9999), _SetColor, Opacity);
|
927 |
963 |
Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(tempMidPoint, newEndPoint, (int)LineSize, contentByte, new DoubleCollection(9999), _SetColor, Opacity);
|
928 |
|
Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), LineSize,
|
929 |
|
contentByte, _SetColor, Paint, fontsize, isHighlight, new FontFamily(), new FontStyle(), new FontWeight(), new TextDecorationCollection(), Text, sizeF, Opacity, Angle);
|
|
964 |
//인구 수정 Arrow Text Style적용 되도록 변경
|
|
965 |
Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), LineSize,
|
|
966 |
contentByte, _SetColor, Paint, fontsize, isHighlight, new FontFamily(), fontStyle, fontWeight, decoration, Text, sizeF, Opacity, Angle);
|
|
967 |
//Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), LineSize,
|
|
968 |
// contentByte, _SetColor, Paint, fontsize, isHighlight, new FontFamily(), new FontStyle(), new FontWeight(), new TextDecorationCollection(), Text, sizeF, Opacity, Angle);
|
930 |
969 |
|
931 |
970 |
}
|
932 |
971 |
else
|
... | ... | |
956 |
995 |
Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(tempStartPoint, testP, (int)LineSize, contentByte, _SetColor, Opacity);
|
957 |
996 |
Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(tempStartPoint, testP, (int)LineSize, contentByte, new DoubleCollection(9999), _SetColor, Opacity);
|
958 |
997 |
Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(testP, newEndPoint, (int)LineSize, contentByte, new DoubleCollection(9999), _SetColor, Opacity);
|
|
998 |
|
|
999 |
//인구 수정 Arrow Text Style적용 되도록 변경
|
959 |
1000 |
//Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / 3, tempEndPoint.Y - control.BoxHeight / 3), LineSize, contentByte, _SetColor, Paint, fontsize, isHighlight,
|
960 |
1001 |
// new FontFamily(), new FontStyle(), new FontWeight(), new TextDecorationCollection(), Text, sizeF, Opacity, Angle);
|
961 |
1002 |
Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), LineSize, contentByte, _SetColor, Paint, fontsize, isHighlight,
|
962 |
|
new FontFamily(), new FontStyle(), new FontWeight(), new TextDecorationCollection(), Text, sizeF, Opacity, Angle);
|
|
1003 |
new FontFamily(), fontStyle, fontWeight, decoration, Text, sizeF, Opacity, Angle);
|
963 |
1004 |
}
|
964 |
1005 |
else
|
965 |
1006 |
{
|
966 |
1007 |
Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(newStartPoint, newMidPoint, (int)LineSize, contentByte, _SetColor, Opacity);
|
967 |
1008 |
Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(newStartPoint, newMidPoint, (int)LineSize, contentByte, new DoubleCollection(9999), _SetColor, Opacity);
|
968 |
1009 |
Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(newMidPoint, newEndPoint, (int)LineSize, contentByte, new DoubleCollection(9999), _SetColor, Opacity);
|
969 |
|
Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), LineSize, contentByte, _SetColor, Paint, fontsize, isHighlight, new FontFamily(), new FontStyle(), new FontWeight(), new TextDecorationCollection(), Text, sizeF, Opacity, Angle);
|
970 |
|
}
|
|
1010 |
|
|
1011 |
//인구 수정 Arrow Text Style적용 되도록 변경
|
|
1012 |
//Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), LineSize, contentByte, _SetColor, Paint, fontsize, isHighlight, new FontFamily(), new FontStyle(), new FontWeight(), new TextDecorationCollection(), Text, sizeF, Opacity, Angle);
|
|
1013 |
Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), LineSize, contentByte, _SetColor, Paint, fontsize, isHighlight, new FontFamily(), fontStyle, fontWeight, decoration, Text, sizeF, Opacity, Angle);
|
|
1014 |
|
|
1015 |
|
|
1016 |
}
|
|
1017 |
}
|
|
1018 |
|
|
1019 |
}
|
|
1020 |
catch (Exception ex)
|
|
1021 |
{
|
|
1022 |
|
971 |
1023 |
}
|
972 |
1024 |
}
|
973 |
1025 |
break;
|