First commit
Send all results
This commit is contained in:
55
PdfSharp/Pdf/enums/DocumentState.cs
Normal file
55
PdfSharp/Pdf/enums/DocumentState.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the state of the document
|
||||
/// </summary>
|
||||
[Flags]
|
||||
enum DocumentState
|
||||
{
|
||||
/// <summary>
|
||||
/// The document was created from scratch.
|
||||
/// </summary>
|
||||
Created = 0x0001,
|
||||
|
||||
/// <summary>
|
||||
/// The document was created by opening an existing PDF file.
|
||||
/// </summary>
|
||||
Imported = 0x0002,
|
||||
|
||||
/// <summary>
|
||||
/// The document is disposed.
|
||||
/// </summary>
|
||||
Disposed = 0x8000,
|
||||
}
|
||||
}
|
52
PdfSharp/Pdf/enums/PdfColorMode.cs
Normal file
52
PdfSharp/Pdf/enums/PdfColorMode.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies what color model is used in a PDF document.
|
||||
/// </summary>
|
||||
public enum PdfColorMode
|
||||
{
|
||||
/// <summary>
|
||||
/// All color values are written as specified in the XColor objects they come from.
|
||||
/// </summary>
|
||||
Undefined,
|
||||
|
||||
/// <summary>
|
||||
/// All colors are converted to RGB.
|
||||
/// </summary>
|
||||
Rgb,
|
||||
|
||||
/// <summary>
|
||||
/// All colors are converted to CMYK.
|
||||
/// </summary>
|
||||
Cmyk,
|
||||
}
|
||||
}
|
52
PdfSharp/Pdf/enums/PdfCustomValueCompression.cs
Normal file
52
PdfSharp/Pdf/enums/PdfCustomValueCompression.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// This class is undocumented and may change or drop in future releases.
|
||||
/// </summary>
|
||||
public enum PdfCustomValueCompressionMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Use document default to determine compression.
|
||||
/// </summary>
|
||||
Default,
|
||||
|
||||
/// <summary>
|
||||
/// Leave custom values uncompressed.
|
||||
/// </summary>
|
||||
Uncompressed,
|
||||
|
||||
/// <summary>
|
||||
/// Compress custom values using FlateDecode.
|
||||
/// </summary>
|
||||
Compressed,
|
||||
}
|
||||
}
|
52
PdfSharp/Pdf/enums/PdfFlateEncodeMode.cs
Normal file
52
PdfSharp/Pdf/enums/PdfFlateEncodeMode.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Sets the mode for the Deflater (FlateEncoder).
|
||||
/// </summary>
|
||||
public enum PdfFlateEncodeMode
|
||||
{
|
||||
/// <summary>
|
||||
/// The default mode.
|
||||
/// </summary>
|
||||
Default,
|
||||
|
||||
/// <summary>
|
||||
/// Fast encoding, but larger PDF files.
|
||||
/// </summary>
|
||||
BestSpeed,
|
||||
|
||||
/// <summary>
|
||||
/// Best compression, but takes more time.
|
||||
/// </summary>
|
||||
BestCompression,
|
||||
}
|
||||
}
|
63
PdfSharp/Pdf/enums/PdfFontEmbedding.cs
Normal file
63
PdfSharp/Pdf/enums/PdfFontEmbedding.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the embedding options of an XFont when converted into PDF.
|
||||
/// Font embedding is not optional anymore. So Always is the only option.
|
||||
/// </summary>
|
||||
public enum PdfFontEmbedding
|
||||
{
|
||||
/// <summary>
|
||||
/// All fonts are embedded.
|
||||
/// </summary>
|
||||
Always,
|
||||
|
||||
/// <summary>
|
||||
/// Fonts are not embedded. This is not an option anymore.
|
||||
/// </summary>
|
||||
[Obsolete("Fonts must always be embedded.")]
|
||||
None,
|
||||
|
||||
/// <summary>
|
||||
/// Unicode fonts are embedded, WinAnsi fonts are not embedded.
|
||||
/// </summary>
|
||||
[Obsolete("Fonts must always be embedded.")]
|
||||
Default,
|
||||
|
||||
/// <summary>
|
||||
/// Not yet implemented.
|
||||
/// </summary>
|
||||
[Obsolete("Fonts must always be embedded.")]
|
||||
Automatic,
|
||||
}
|
||||
}
|
68
PdfSharp/Pdf/enums/PdfFontEncoding.cs
Normal file
68
PdfSharp/Pdf/enums/PdfFontEncoding.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the encoding schema used for an XFont when converted into PDF.
|
||||
/// </summary>
|
||||
public enum PdfFontEncoding
|
||||
{
|
||||
// TABLE
|
||||
|
||||
/// <summary>
|
||||
/// Cause a font to use Windows-1252 encoding to encode text rendered with this font.
|
||||
/// Same as Windows1252 encoding.
|
||||
/// </summary>
|
||||
WinAnsi = 0,
|
||||
|
||||
///// <summary>
|
||||
///// Cause a font to use Windows-1252 (aka WinAnsi) encoding to encode text rendered with this font.
|
||||
///// </summary>
|
||||
//Windows1252 = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Cause a font to use Unicode encoding to encode text rendered with this font.
|
||||
/// </summary>
|
||||
Unicode = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Unicode encoding.
|
||||
/// </summary>
|
||||
[Obsolete("Use WinAnsi or Unicode")]
|
||||
Automatic = 1, // Force Unicode when used.
|
||||
|
||||
// Implementation note: PdfFontEncoding uses incorrect terms.
|
||||
// WinAnsi correspond to WinAnsiEncoding, while Unicode uses glyph indices.
|
||||
// Furthermre the term WinAnsi is an oxymoron.
|
||||
// Reference: TABLE D.1 Latin-text encodings / Page 996
|
||||
}
|
||||
}
|
62
PdfSharp/Pdf/enums/PdfOutlineStyle.cs
Normal file
62
PdfSharp/Pdf/enums/PdfOutlineStyle.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
// Review: OK - StL/14-10-05
|
||||
|
||||
using System;
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the font style for the outline (bookmark) text.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum PdfOutlineStyle // Reference: TABLE 8.5 Ouline Item flags / Page 587
|
||||
{
|
||||
/// <summary>
|
||||
/// Outline text is displayed using a regular font.
|
||||
/// </summary>
|
||||
Regular = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Outline text is displayed using an italic font.
|
||||
/// </summary>
|
||||
Italic = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Outline text is displayed using a bold font.
|
||||
/// </summary>
|
||||
Bold = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Outline text is displayed using a bold and italic font.
|
||||
/// </summary>
|
||||
BoldItalic = 3,
|
||||
}
|
||||
}
|
98
PdfSharp/Pdf/enums/PdfPageDestinationType.cs
Normal file
98
PdfSharp/Pdf/enums/PdfPageDestinationType.cs
Normal file
@@ -0,0 +1,98 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
// ReSharper disable InconsistentNaming because we use PDF names.
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the type of a page destination in outline items, annotations, or actions..
|
||||
/// </summary>
|
||||
public enum PdfPageDestinationType // Reference: TABLE 8.2 Destination Syntax / Page 582
|
||||
{
|
||||
// Except for FitR the documentation text is outdated.
|
||||
|
||||
/// <summary>
|
||||
/// Display the page with the coordinates (left, top) positioned at the upper-left corner of
|
||||
/// the window and the contents of the page magnified by the factor zoom.
|
||||
/// </summary>
|
||||
Xyz,
|
||||
|
||||
/// <summary>
|
||||
/// Display the page with its contents magnified just enough to fit the
|
||||
/// entire page within the window both horizontally and vertically.
|
||||
/// </summary>
|
||||
Fit,
|
||||
|
||||
/// <summary>
|
||||
/// Display the page with the vertical coordinate top positioned at the top edge of
|
||||
/// the window and the contents of the page magnified just enough to fit the entire
|
||||
/// width of the page within the window.
|
||||
/// </summary>
|
||||
FitH,
|
||||
|
||||
/// <summary>
|
||||
/// Display the page with the horizontal coordinate left positioned at the left edge of
|
||||
/// the window and the contents of the page magnified just enough to fit the entire
|
||||
/// height of the page within the window.
|
||||
/// </summary>
|
||||
FitV,
|
||||
|
||||
/// <summary>
|
||||
/// Display the page designated by page, with its contents magnified just enough to
|
||||
/// fit the rectangle specified by the coordinates left, bottom, right, and topentirely
|
||||
/// within the window both horizontally and vertically. If the required horizontal and
|
||||
/// vertical magnification factors are different, use the smaller of the two, centering
|
||||
/// the rectangle within the window in the other dimension. A null value for any of
|
||||
/// the parameters may result in unpredictable behavior.
|
||||
/// </summary>
|
||||
FitR,
|
||||
|
||||
/// <summary>
|
||||
/// Display the page with its contents magnified just enough to fit the rectangle specified
|
||||
/// by the coordinates left, bottom, right, and topentirely within the window both
|
||||
/// horizontally and vertically.
|
||||
/// </summary>
|
||||
FitB,
|
||||
|
||||
/// <summary>
|
||||
/// Display the page with the vertical coordinate top positioned at the top edge of
|
||||
/// the window and the contents of the page magnified just enough to fit the entire
|
||||
/// width of its bounding box within the window.
|
||||
/// </summary>
|
||||
FitBH,
|
||||
|
||||
/// <summary>
|
||||
/// Display the page with the horizontal coordinate left positioned at the left edge of
|
||||
/// the window and the contents of the page magnified just enough to fit the entire
|
||||
/// height of its bounding box within the window.
|
||||
/// </summary>
|
||||
FitBV,
|
||||
}
|
||||
}
|
67
PdfSharp/Pdf/enums/PdfPageLayout.cs
Normal file
67
PdfSharp/Pdf/enums/PdfPageLayout.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the page layout to be used by a viewer when the document is opened.
|
||||
/// </summary>
|
||||
public enum PdfPageLayout
|
||||
{
|
||||
/// <summary>
|
||||
/// Display one page at a time.
|
||||
/// </summary>
|
||||
SinglePage,
|
||||
|
||||
/// <summary>
|
||||
/// Display the pages in one column.
|
||||
/// </summary>
|
||||
OneColumn,
|
||||
|
||||
/// <summary>
|
||||
/// Display the pages in two columns, with oddnumbered pages on the left.
|
||||
/// </summary>
|
||||
TwoColumnLeft,
|
||||
|
||||
/// <summary>
|
||||
/// Display the pages in two columns, with oddnumbered pages on the right.
|
||||
/// </summary>
|
||||
TwoColumnRight,
|
||||
|
||||
/// <summary>
|
||||
/// (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the left.
|
||||
/// </summary>
|
||||
TwoPageLeft,
|
||||
|
||||
/// <summary>
|
||||
/// (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the right.
|
||||
/// </summary>
|
||||
TwoPageRight,
|
||||
}
|
||||
}
|
69
PdfSharp/Pdf/enums/PdfPageMode.cs
Normal file
69
PdfSharp/Pdf/enums/PdfPageMode.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how the document should be displayed by a viewer when opened.
|
||||
/// </summary>
|
||||
public enum PdfPageMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Neither document outline nor thumbnail images visible.
|
||||
/// </summary>
|
||||
UseNone,
|
||||
|
||||
/// <summary>
|
||||
/// Document outline visible.
|
||||
/// </summary>
|
||||
UseOutlines,
|
||||
|
||||
/// <summary>
|
||||
/// Thumbnail images visible.
|
||||
/// </summary>
|
||||
UseThumbs,
|
||||
|
||||
/// <summary>
|
||||
/// Full-screen mode, with no menu bar, windowcontrols, or any other window visible.
|
||||
/// </summary>
|
||||
FullScreen,
|
||||
|
||||
/// <summary>
|
||||
/// (PDF 1.5) Optional content group panel visible.
|
||||
/// </summary>
|
||||
UseOC,
|
||||
|
||||
/// <summary>
|
||||
/// (PDF 1.6) Attachments panel visible.
|
||||
/// </summary>
|
||||
UseAttachments,
|
||||
}
|
||||
}
|
47
PdfSharp/Pdf/enums/PdfReadingDirection.cs
Normal file
47
PdfSharp/Pdf/enums/PdfReadingDirection.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how the document should be displayed by a viewer when opened.
|
||||
/// </summary>
|
||||
public enum PdfReadingDirection
|
||||
{
|
||||
/// <summary>
|
||||
/// Left to right.
|
||||
/// </summary>
|
||||
LeftToRight,
|
||||
|
||||
/// <summary>
|
||||
/// Right to left (including vertical writing systems, such as Chinese, Japanese, and Korean)
|
||||
/// </summary>
|
||||
RightToLeft,
|
||||
}
|
||||
}
|
50
PdfSharp/Pdf/enums/PdfTextStringEncoding.cs
Normal file
50
PdfSharp/Pdf/enums/PdfTextStringEncoding.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how text strings are encoded. A text string is any text used outside of a page content
|
||||
/// stream, e.g. document information, outline text, annotation text etc.
|
||||
/// </summary>
|
||||
public enum PdfTextStringEncoding
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies that hypertext uses PDF DocEncoding.
|
||||
/// </summary>
|
||||
PDFDocEncoding = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that hypertext uses unicode encoding.
|
||||
/// </summary>
|
||||
Unicode = 1,
|
||||
}
|
||||
}
|
55
PdfSharp/Pdf/enums/PdfUseFlateDecoderForJpegImages.cs
Normal file
55
PdfSharp/Pdf/enums/PdfUseFlateDecoderForJpegImages.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Pdf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies whether to compress JPEG images with the FlateDecode filter.
|
||||
/// </summary>
|
||||
public enum PdfUseFlateDecoderForJpegImages
|
||||
{
|
||||
/// <summary>
|
||||
/// PDFsharp will try FlateDecode and use it if it leads to a reduction in PDF file size.
|
||||
/// When FlateEncodeMode is set to BestCompression, this is more likely to reduce the file size,
|
||||
/// but it takes considerably more time to create the PDF file.
|
||||
/// </summary>
|
||||
Automatic,
|
||||
|
||||
/// <summary>
|
||||
/// PDFsharp will never use FlateDecode - files may be a few bytes larger, but file creation is faster.
|
||||
/// </summary>
|
||||
Never,
|
||||
|
||||
/// <summary>
|
||||
/// PDFsharp will always use FlateDecode, even if this leads to larger files;
|
||||
/// this option is meant for testing purposes only and should not be used for production code.
|
||||
/// </summary>
|
||||
Always,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user