FixedLayoutFormats

FixedLayoutFormats structure

Encapsulates all fixed-layout (also know as “fixed-page”) formats, which includes PDF and XPS (this does not include raster images)

public struct FixedLayoutFormats : IDocumentFormat, IEquatable<FixedLayoutFormats>

Properties

Name Description
Extension { get; } Returns an extension (without leading dot character) of this fixed-layout format in lower case
Mime { get; } Returns a MIME code for this format
Name { get; } Returns a formal full name of this fixed layout format

Methods

Name Description
static FromExtension(string) Returns instance of FixedLayoutFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed
Equals(FixedLayoutFormats) Determines whether this instance is equal to the other specified FixedLayoutFormats instance
Equals(IDocumentFormat) Determines whether this instance is equal to the other specified IDocumentFormat instance
override Equals(object) Determines whether this instance is equal to the other specified object, that is presumably of boxed FixedLayoutFormats
override GetHashCode() Returns a hash-code, that is immutable for this instance
override ToString() Returns the name of this particular format, same as ‘Name’ property
operator == Checks two given FixedLayoutFormats instances on equality
explicit operator Returns a byte value from underlying field of specified FixedLayoutFormats instance (2 operators)
operator != Checks two given FixedLayoutFormats instances on inequality

Fields

Name Description
static readonly Pdf Portable Document Format (PDF) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. Learn more about this file format here.
static readonly Xps XPS file represents page layout files that are based on XML Paper Specifications created by Microsoft. It was developed as a replacement of EMF file format and is similar to PDF file format, but uses XML in layout, appearance, and printing information of a document. Learn more about this file format here.
static readonly All Returns an internal class, that provides enumerable possibilities over all existing fixed-layout formats

Other Members

Name Description
class AllEnumerable Implements IEnumerable generic interface, that enables a ‘foreach’ possibility for the FixedLayoutFormats type

Remarks

Various document viewing or publishing applications allow users to open (Adobe Acrobat, XPS Viewer), and sometimes edit (Adobe InDesign) documents of specific formats. These applications typically produce so-called “fixed-page” format documents. Such a document format describes precisely where a document’s content is placed on every page. Internally, the PDF or XPS format contains a description of every page, as well as drawing instructions, specifying the layout of the content on the page. This is similar to image formats, describing where the content is shown either in raster or vector form.

See Also