mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 19:54:52 +08:00
Adding 'TextDirection.Rotate180'
This commit is contained in:
@@ -87,6 +87,10 @@
|
|||||||
{
|
{
|
||||||
if (System.Math.Abs(StartBaseLine.Y - EndBaseLine.Y) < 10e-5m)
|
if (System.Math.Abs(StartBaseLine.Y - EndBaseLine.Y) < 10e-5m)
|
||||||
{
|
{
|
||||||
|
if (StartBaseLine.X > EndBaseLine.X)
|
||||||
|
{
|
||||||
|
return TextDirection.Rotate180;
|
||||||
|
}
|
||||||
return TextDirection.Horizontal;
|
return TextDirection.Horizontal;
|
||||||
}
|
}
|
||||||
else if (System.Math.Abs(StartBaseLine.X - EndBaseLine.X) < 10e-5m)
|
else if (System.Math.Abs(StartBaseLine.X - EndBaseLine.X) < 10e-5m)
|
||||||
|
@@ -1,8 +1,4 @@
|
|||||||
using System;
|
namespace UglyToad.PdfPig.Content
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace UglyToad.PdfPig.Content
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Direction of the text.
|
/// Direction of the text.
|
||||||
@@ -19,6 +15,11 @@ namespace UglyToad.PdfPig.Content
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Horizontal,
|
Horizontal,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Horizontal text, upside down.
|
||||||
|
/// </summary>
|
||||||
|
Rotate180,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Rotated text going down.
|
/// Rotated text going down.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Reference in New Issue
Block a user