• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp.Pdf / 14305897173

07 Apr 2025 09:38AM UTC coverage: 2.035% (-73.9%) from 75.959%
14305897173

push

github

DomCR
version 0.1.0-beta

125 of 8279 branches covered (1.51%)

Branch coverage included in aggregate %.

648 of 29704 relevant lines covered (2.18%)

4.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ACadSharp.Pdf/Extensions/XYZExtensions.cs
1
using ACadSharp.Objects;
2
using ACadSharp.Pdf.Core;
3
using CSMath;
4
using System;
5

6
namespace ACadSharp.Pdf.Extensions
7
{
8
        public static class XYZExtensions
9
        {
10
                public static string ToPdfArray(this XYZ xyz)
11
                {
×
12
                        throw new NotImplementedException();
×
13
                }
14
        }
15

16
        public static class DoubleExtensions
17
        {
18
                public static double ToPdfUnit(this double value, PlotPaperUnits unit)
19
                {
×
20
                        switch (unit)
×
21
                        {
22
                                case PlotPaperUnits.Inches:
23
                                        return PdfUnitType.Inch.Transform(value);
×
24
                                case PlotPaperUnits.Milimeters:
25
                                        return PdfUnitType.Millimeter.Transform(value);
×
26
                                case PlotPaperUnits.Pixels:
27
                                default:
28
                                        return PdfUnitType.Point.Transform(value);
×
29
                        }
30
                }
×
31

32
                public static double ToPdfUnit(this double value, PdfUnitType unit)
33
                {
×
34
                        return unit.Transform(value);
×
35
                }
×
36
        }
37

38
        public static class ColorExtensions
39
        {
40
                public static string ToPdfString(this Color color)
41
                {
×
42
                        return $"{color.R / 255d} {color.G / 255d} {color.B / 255d} RG";
×
43
                }
×
44
        }
45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc