[]
Represents a page in a GcPdfDocument.
public class Page : PdfDictWrapper, IContentItem, IPdfDict
Gets the list annotations associated with the current page.
public AnnotationCollection Annotations { get; }
Gets or sets the tab order to be used for annotations on the page.
public AnnotationsTabsOrder? AnnotationsTabsOrder { get; set; }
Gets or sets a rectangle, in points, defining the extent of the page's meaningful content (including potential white space) as intended by the page's creator. Default value is CropBox.
public RectangleF? ArtBox { get; set; }
Gets the list of ArticleBead objects displayed on this page.
public PageArticleBeadCollection ArticleBeads { get; }
Gets the list of embedded files associated with this page.
public AssociatedFiles AssociatedFiles { get; }
Gets or sets a rectangle, in points, defining the region to which the contents of the page should be clipped when output in a production environment. Default value is CropBox.
public RectangleF? BleedBox { get; set; }
Gets the bounds of the current page in points. The return value is the same as returned by MediaBox.
public RectangleF Bounds { get; }
Gets the PageContentStreamCollection containing content streams representing content of this page.
Note that while manipulating the ContentStreams collection (inserting, removing or moving elements) is allowed, the result of such manipulations may produce an invalid PDF if the original document was created or modified by a tool other than GcPdf. Generally speaking, it is safe to insert new content streams at the first position in the collection, or add them to the end of it, provided any content in the new stream(s) was created by rendering on GetGraphics(Page). Any other operations on this collection in documents that were not created by GcPdf might yield invalid PDFs.
public PageContentStreamCollection ContentStreams { get; }
Gets or sets a rectangle, in points, defining the visible region of default user space. When the page is displayed or printed, its contents are to be clipped (cropped) to this rectangle and then imposed on the output medium in some implementation-defined manner. Default value is MediaBox.
public RectangleF? CropBox { get; set; }
Gets the GcPdfDocument object owning this object.
public GcPdfDocument Doc { get; }
Gets an instance of GcPdfGraphics that can be used to draw on the current page, graphics created from the last page content stream, if ContentStreams collection is empty then new PageContentStream automatically added.
public GcPdfGraphics Graphics { get; }
Gets the index of the page in its document.
public int Index { get; }
Gets or sets a value indicating whether the current page has landscape orientation.
public bool Landscape { get; set; }
Gets or sets the bounds of the page in points.
public RectangleF MediaBox { get; set; }
Gets the PageCollection collection containing this Page.
public PageCollection Owner { get; }
Gets or sets the paper kind of the current page.
public PaperKind PaperKind { get; set; }
Gets the IPdfDict object defining page-piece dictionary associated with the page.
public IPdfDict PieceInfo { get; }
Gets or sets the number of degrees by which the page should be rotated clockwise when displayed or printed. The value must be a multiple of 90. Default value: 0.
public int Rotate { get; set; }
Gets or sets the size of the current page in points.
This property is a wrapper around MediaBox or CropBox properties. If CropBox is not null then this property gets or sets its value, otherwise it gets or sets the value of MediaBox.
public SizeF Size { get; set; }
Gets or sets an arbitrary application-defined object associated with the current page.
public object Tag { get; set; }
Gets or sets the page’s display duration (also called its advance timing): the maximum length of time, in seconds, that the page shall be displayed during presentations before the viewer application shall automatically advance to the next page Default: null (the viewer shall not advance automatically).
public float? TransitionDuration { get; set; }
Gets or sets the TransitionEffect object describing the transition effect that shall be used when displaying the page during presentations
public TransitionEffect TransitionEffect { get; set; }
Gets or sets a rectangle, in points, defining the intended dimensions of the finished page after trimming Default value is CropBox.
public RectangleF? TrimBox { get; set; }
Gets or sets a positive number greater than 1 giving the size of default user space units, in multiples of 1/72 inch.
Default value: 1.0 (user unit is 1/72 inch).
public float UserUnit { get; set; }
As of December 2018, it seems that only Adobe Acrobat readers respect this property.
Converts specified visual coordinates (usually in the coordinate system with the origin
in the top left corner of the page and the Y axis going down, see fromBottomLeft
)
to coordinates that take into account Rotate, CropBox
and MediaBox (if CropBox
is not specified) values.
This method should be used when positioning annotations or destinations on a page. Do not use this method when drawing on Graphics.
public Quadrilateral AdjustCoordinates(Quadrilateral value, bool fromBottomLeft = false, float deviceDpiX = 72, float deviceDpiY = 72)
value
QuadrilateralThe Quadrilateral to adjust.
fromBottomLeft
boolIf true, the source coordinates' origin is in the bottom left corner of the page with Y axis going up (by default it is in the top left corner with Y axis going down).
deviceDpiX
floatThe horizontal device resolution.
deviceDpiY
floatThe vertical device resolution.
The adjusted Quadrilateral.
Converts specified visual coordinates (usually in the coordinate system with the origin
in the top left corner of the page and the Y axis going down, see fromBottomLeft
)
to coordinates that take into account Rotate, CropBox
and MediaBox (if CropBox
is not specified) values.
This method should be used when positioning annotations or destinations on a page. Do not use this method when drawing on Graphics.
public PointF AdjustCoordinates(PointF value, bool fromBottomLeft = false, float deviceDpiX = 72, float deviceDpiY = 72)
value
System.Drawing.PointFThe System.Drawing.PointF to convert.
fromBottomLeft
boolIf true, the source coordinates' origin is in the bottom left corner of the page with Y axis going up (by default it is in the top left corner with Y axis going down).
deviceDpiX
floatThe horizontal device resolution.
deviceDpiY
floatThe vertical device resolution.
The adjusted System.Drawing.PointF.
Converts specified visual coordinates (usually in the coordinate system with the origin
in the top left corner of the page and the Y axis going down, see fromBottomLeft
)
to coordinates that take into account Rotate, CropBox
and MediaBox (if CropBox
is not specified) values.
This method should be used when positioning annotations or destinations on a page. Do not use this method when drawing on Graphics.
public RectangleF AdjustCoordinates(RectangleF value, bool fromBottomLeft = false, float deviceDpiX = 72, float deviceDpiY = 72)
value
System.Drawing.RectangleFThe System.Drawing.RectangleF to adjust.
fromBottomLeft
boolIf true, the source coordinates' origin is in the bottom left corner of the page with Y axis going up (by default it is in the top left corner with Y axis going down).
deviceDpiX
floatThe horizontal device resolution.
deviceDpiY
floatThe vertical device resolution.
The adjusted System.Drawing.RectangleF.
Deletes a specified text from the current page.
public void DeleteText(FindTextParams findTextParams, DeleteTextMode mode)
findTextParams
FindTextParamsThe text to search for.
mode
DeleteTextModeThe text delete mode.
Deletes the specified text range from the current page.
public void DeleteText(ViewState viewState, TextMapFragment fragment, DeleteTextMode mode)
viewState
ViewStateThe ViewState used to determine what document content should be considered.
fragment
TextMapFragmentThe text range.
mode
DeleteTextModeThe text delete mode.
Deletes the specified text range from the current page.
public void DeleteText(TextMapFragment fragment, DeleteTextMode mode)
fragment
TextMapFragmentThe text range.
mode
DeleteTextModeThe text delete mode.
Draws the page on a GcGraphics.
public void Draw(GcGraphics graphics, RectangleF bounds, ViewState viewState, bool drawAnnotations = true, bool drawFormFields = true, RenderingCache renderingCache = null, bool ignoreErrors = true)
graphics
GcGraphicsThe GcGraphics on which to draw the page.
bounds
System.Drawing.RectangleFThe draw bounds.
viewState
ViewStateThe ViewState used to determine what document content would be considered.
drawAnnotations
boolIndicates whether to draw the annotations.
drawFormFields
boolIndicates whether to draw the form fields.
renderingCache
RenderingCacheThe RenderingCache object used to cache objects created during rendering.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
Draws the page on a GcGraphics.
public void Draw(GcGraphics graphics, RectangleF bounds, bool drawAnnotations = true, bool drawFormFields = true, RenderingCache renderingCache = null, bool print = false, bool ignoreErrors = true)
graphics
GcGraphicsThe GcGraphics on which to draw the page.
bounds
System.Drawing.RectangleFThe draw bounds.
drawAnnotations
boolIndicates whether to draw the annotations.
drawFormFields
boolIndicates whether to draw the form fields.
renderingCache
RenderingCacheThe RenderingCache object used to cache objects created during rendering.
print
boolIndicates whether the image is generated for printing.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
Draws all page annotations on a GcGraphics.
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, RenderingCache renderingCache = null)
graphics
GcGraphicsThe GcGraphics on which to draw the annotations.
bounds
System.Drawing.RectangleFThe draw bounds.
renderingCache
RenderingCacheThe RenderingCache object used to cache objects created during rendering.
Draws specified annotations on a GcGraphics.
Note that the specified annotations must belong to the current page.
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, IList<AnnotationBase> annotations, ViewState viewState, RenderingCache renderingCache = null, bool ignoreErrors = true)
graphics
GcGraphicsThe GcGraphics on which to draw the annotations.
bounds
System.Drawing.RectangleFThe draw bounds.
annotations
System.Collections.Generic.IList<T><AnnotationBase>The list of annotations to draw.
viewState
ViewStateThe ViewState object.
renderingCache
RenderingCacheThe RenderingCache object used to cache objects created during rendering.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
Draws specified annotations on a GcGraphics.
Note that the specified annotations must belong to the current page.
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, IList<AnnotationBase> annotations, RenderingCache renderingCache = null, bool ignoreErrors = true)
graphics
GcGraphicsThe GcGraphics on which to draw the annotations.
bounds
System.Drawing.RectangleFThe draw bounds.
annotations
System.Collections.Generic.IList<T><AnnotationBase>The list of annotations to draw.
renderingCache
RenderingCacheThe RenderingCache object used to cache objects created during rendering.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
Gets the list of images on this page.
public IList<PdfImageInfo> GetImages(float dpiX, float dpiY, bool ignoreErrors)
dpiX
floatThe horizontal resolution used to calculate the bounds of images on the page.
dpiY
floatThe vertical resolution used to calculate the bounds of images on the page.
ignoreErrors
boolIndicates whether to ignore errors in PDF during processing.
The list of images on the current page.
Gets the list of images on this page.
public IList<PdfImageInfo> GetImages(float dpiX = 72, float dpiY = 72)
dpiX
floatThe horizontal resolution used to calculate the bounds of images on the page.
dpiY
floatThe vertical resolution used to calculate the bounds of images on the page.
The list of images on the current page.
Returns the page label specified via PageLabelingRange, returns empty string if page does not belong to document.
public string GetLabel()
The page label.
Returns the list of PDF operators forming the page content.
public OperatorList GetOperators(ViewState viewState = null, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
viewState
ViewStateThe ViewState used to determine what document content would be considered.
dpiX
floatThe horizontal resolution.
dpiY
floatThe vertical resolution.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
The OperatorList object.
Gets the PageLabelingRange object that specifies the label of this page, or null if no such range exists.
public PageLabelingRange GetPageLabelingRange()
The PageLabelingRange that corresponds to this page.
Gets the size of the page on a device with specified horizontal and vertical resolutions.
public SizeF GetRenderSize(float deviceDpiX = 72, float deviceDpiY = 72)
deviceDpiX
floatThe horizontal device resolution.
deviceDpiY
floatThe vertical device resolution.
Gets a System.IO.Stream containing the content of this Page.
Notes:
public Stream GetStream()
A stream with the current page's content.
Tries to recognize a table within specified bounds, if the table is found returns an object that allows accessing the table's rows, columns and cells.
public ITable GetTable(RectangleF bounds, ViewState viewState, TableExtractOptions options = null, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
bounds
System.Drawing.RectangleFThe bounds within which to look for a table.
viewState
ViewStateThe ViewState object.
options
TableExtractOptionsThe table extraction options.
dpiX
floatThe horizontal resolution. This determines the unit of measurement used by horizontal values in options
.
dpiY
floatThe vertical resolution. This determines the unit of measurement used by vertical values in options
.
ignoreErrors
boolIndicates whether to ignore errors in PDF content streams.
The ITable object containing information about the table, or null if no table could be found within the specified bounds.
Tries to recognize a table within specified bounds, if the table is found returns an object that allows accessing the table's rows, columns and cells.
public ITable GetTable(RectangleF bounds, TableExtractOptions options = null, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
bounds
System.Drawing.RectangleFThe bounds within which to look for a table.
options
TableExtractOptionsThe table extraction options.
dpiX
floatThe horizontal resolution. This determines the unit of measurement used by horizontal values in options
.
dpiY
floatThe vertical resolution. This determines the unit of measurement used by vertical values in options
.
ignoreErrors
boolIndicates whether to ignore errors in PDF content streams.
The ITable object containing information about the table, or null if no table could be found within the specified bounds.
Retrieves all text on the current page.
public string GetText(ViewState viewState, bool ignoreErrors = true)
viewState
ViewStateThe ViewState object.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during processing.
The page text, or null if the page does not contain any text.
Retrieves all text on the current page.
public string GetText(bool ignoreErrors = true)
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during processing.
The page text, or null if the page does not contain any text.
Builds and returns a text map for the current page.
Note that the X/Y resolutions of pixels used by the text map's methods and properties are the
X/Y resolutions passed to this method (dpiX
and dpiY
).
Note also that the current value of the RecognitionAlgorithm property affects the map that is created.
public ITextMap GetTextMap(ViewState viewState, bool includeTextPosition, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
viewState
ViewStateThe ViewState object.
includeTextPosition
boolIndicates whether to include information about text positions in content stream. This must be true to enable using the map's DeleteText(TextMapFragment, DeleteTextMode) or ReplaceText(TextMapFragment, string, Font, float?) methods. If those methods are not going to be used, pass false to improve speed/memory usage of the text map.
dpiX
floatThe horizontal resolution of the map (the default is 72dpi).
dpiY
floatThe vertical resolution of the map (the default is 72dpi).
ignoreErrors
boolIndicates whether to ignore errors in PDF content streams during rendering.
Builds and returns a text map for the current page.
Note that the X/Y resolutions of pixels used by the text map's methods and properties are the
X/Y resolutions passed to this method (dpiX
and dpiY
).
Note also that the current value of the RecognitionAlgorithm property affects the map that is created.
public ITextMap GetTextMap(ViewState viewState, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
viewState
ViewStateThe ViewState object.
dpiX
floatThe horizontal resolution of the map (the default is 72dpi).
dpiY
floatThe vertical resolution of the map (the default is 72dpi).
ignoreErrors
boolIndicates whether to ignore errors in PDF content streams during rendering.
Builds and returns a text map for the current page.
Note that the X/Y resolutions of pixels used by the text map's methods and properties are the
X/Y resolutions passed to this method (dpiX
and dpiY
).
Note also that the current value of the RecognitionAlgorithm property affects the map that is created.
public ITextMap GetTextMap(bool includeTextPosition, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
includeTextPosition
boolIndicates whether to include information about text positions in content stream. This must be true to enable using the map's DeleteText(TextMapFragment, DeleteTextMode) or ReplaceText(TextMapFragment, string, Font, float?) methods. If those methods are not going to be used, pass false to improve speed/memory usage of the text map.
dpiX
floatThe horizontal resolution of the map (the default is 72dpi).
dpiY
floatThe vertical resolution of the map (the default is 72dpi).
ignoreErrors
boolIndicates whether to ignore errors in PDF content streams during rendering.
Builds and returns a text map for the current page.
Note that the X/Y resolutions of pixels used by the text map's methods and properties are the
X/Y resolutions passed to this method (dpiX
and dpiY
).
Note also that the current value of the RecognitionAlgorithm property affects the map that is created.
public ITextMap GetTextMap(float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
dpiX
floatThe horizontal resolution of the map (the default is 72dpi).
dpiY
floatThe vertical resolution of the map (the default is 72dpi).
ignoreErrors
boolIndicates whether to ignore errors in PDF content streams during rendering.
Gets the list of fonts referenced from content streams on this page.
public ICollection<Font> GetUsedFonts()
The list of fonts referenced from this page.
Returns the matrix used to convert coordinates in content stream of this page to device coordinates.
public Matrix3x2 GetUserToDeviceMatrix(float deviceDpiX, float deviceDpiY, bool ignoreRotate = false)
deviceDpiX
floatThe horizontal device resolution.
deviceDpiY
floatThe vertical device resolution.
ignoreRotate
boolIndicates whether to ignore rotation specified for page with Rotate property.
Removes the content associated with specified PDF layers.
Note that if any content was removed from a page by this method, all remaining content on that page will be merged into a single content stream, and the ContentStreams collection will contain just that single element.
public void RemoveLayersContent(params OptionalContentGroup[] layers)
layers
OptionalContentGroup[]The array of OptionalContentGroup objects.
Replaces a specified text on the current page.
Note that the results may be affected by the current value of the RecognitionAlgorithm property.
public void ReplaceText(FindTextParams findTextParams, string newText, Font font = null, float? fontSize = null)
findTextParams
FindTextParamsThe text to search for.
newText
stringThe replacement text.
font
FontThe font to use on newText
, if null the current font will be used.
fontSize
float?The font size to use on newText
, if null the current font size will be used.
Replaces a specified text range on the current page.
public void ReplaceText(ViewState viewState, TextMapFragment fragment, string newText, Font font = null, float? fontSize = null)
viewState
ViewStateThe ViewState used to determine what document content should be considered.
fragment
TextMapFragmentThe text range.
newText
stringThe replacement text.
font
FontThe font to use on newText
, if null the current font will be used.
fontSize
float?The font size to use on newText
, if null the current font size will be used.
Replaces a specified text range on the current page.
public void ReplaceText(TextMapFragment fragment, string newText, Font font = null, float? fontSize = null)
fragment
TextMapFragmentThe text range.
newText
stringThe replacement text.
font
FontThe font to use on newText
, if null the current font will be used.
fontSize
float?The font size to use on newText
, if null the current font size will be used.
Saves the page as an image to a stream in BMP format.
public void SaveAsBmp(Stream stream, ViewState viewState, SaveAsImageOptions options = null)
stream
System.IO.StreamThe output stream.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a stream in BMP format.
public void SaveAsBmp(Stream stream, SaveAsImageOptions options = null)
stream
System.IO.StreamThe output stream.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a file in BMP format.
public void SaveAsBmp(string filePath, ViewState viewState, SaveAsImageOptions options = null)
filePath
stringThe output file path.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a file in BMP format.
public void SaveAsBmp(string filePath, SaveAsImageOptions options = null)
filePath
stringThe output file path.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a stream in GIF format.
public void SaveAsGif(Stream stream, ViewState viewState, SaveAsImageOptions options = null)
stream
System.IO.StreamThe output stream.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a stream in GIF format.
public void SaveAsGif(Stream stream, SaveAsImageOptions options = null)
stream
System.IO.StreamThe output stream.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a file in GIF format.
public void SaveAsGif(string filePath, ViewState viewState, SaveAsImageOptions options = null)
filePath
stringThe output file path.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a file in GIF format.
public void SaveAsGif(string filePath, SaveAsImageOptions options = null)
filePath
stringThe output file path.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a stream in JPEG format.
public void SaveAsJpeg(Stream stream, ViewState viewState, SaveAsImageOptions options = null)
stream
System.IO.StreamThe output stream.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a stream in JPEG format.
public void SaveAsJpeg(Stream stream, SaveAsImageOptions options = null)
stream
System.IO.StreamThe output stream.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a file in JPEG format.
public void SaveAsJpeg(string filePath, ViewState viewState, SaveAsImageOptions options = null)
filePath
stringThe output file path.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a file in JPEG format.
public void SaveAsJpeg(string filePath, SaveAsImageOptions options = null)
filePath
stringThe output file path.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a stream in PNG format.
public void SaveAsPng(Stream stream, ViewState viewState, SaveAsImageOptions options = null)
stream
System.IO.StreamThe output stream.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a stream in PNG format.
public void SaveAsPng(Stream stream, SaveAsImageOptions options = null)
stream
System.IO.StreamThe output stream.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a file in PNG format.
public void SaveAsPng(string filePath, ViewState viewState, SaveAsImageOptions options = null)
filePath
stringThe output file path.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page as an image to a file in PNG format.
public void SaveAsPng(string filePath, SaveAsImageOptions options = null)
filePath
stringThe output file path.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page to a stream in SVG format.
public void SaveAsSvg(Stream stream, ViewState viewState, SaveAsImageOptions options = null, XmlWriterSettings xmlSettings = null)
stream
System.IO.StreamThe output stream.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
xmlSettings
System.Xml.XmlWriterSettingsThe output XML formatting settings.
Saves the page to a stream in SVG format.
public void SaveAsSvg(Stream stream, SaveAsImageOptions options = null, XmlWriterSettings xmlSettings = null)
stream
System.IO.StreamThe output stream.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
xmlSettings
System.Xml.XmlWriterSettingsThe output XML formatting settings.
Saves the page to a file in SVG format.
public void SaveAsSvg(string filePath, ViewState viewState, SaveAsImageOptions options = null, XmlWriterSettings xmlSettings = null)
filePath
stringThe output file path.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
xmlSettings
System.Xml.XmlWriterSettingsThe output XML formatting settings.
Saves the page to a file in SVG format.
public void SaveAsSvg(string filePath, SaveAsImageOptions options = null, XmlWriterSettings xmlSettings = null)
filePath
stringThe output file path.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
xmlSettings
System.Xml.XmlWriterSettingsThe output XML formatting settings.
Saves the page as an image to a stream in TIFF format.
public void SaveAsTiff(Stream stream, ViewState viewState, SaveAsImageOptions options = null, TiffFrameSettings frameSettings = null)
stream
System.IO.StreamThe output stream.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
frameSettings
TiffFrameSettingsFrame settings that are used for encoding the TIFF frame.
Saves the page as an image to a stream in TIFF format.
public void SaveAsTiff(Stream stream, SaveAsImageOptions options = null, TiffFrameSettings frameSettings = null)
stream
System.IO.StreamThe output stream.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
frameSettings
TiffFrameSettingsFrame settings that are used for encoding the TIFF frame.
Saves the page as an image to a file in TIFF format.
public void SaveAsTiff(string filePath, ViewState viewState, SaveAsImageOptions options = null, TiffFrameSettings frameSettings = null)
filePath
stringThe output file path.
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
frameSettings
TiffFrameSettingsFrame settings that are used for encoding the TIFF frame.
Saves the page as an image to a file in TIFF format.
public void SaveAsTiff(string filePath, SaveAsImageOptions options = null, TiffFrameSettings frameSettings = null)
filePath
stringThe output file path.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
frameSettings
TiffFrameSettingsFrame settings that are used for encoding the TIFF frame.
Saves the page to a byte array in SVGZ format.
public byte[] ToSvgz(ViewState viewState, SaveAsImageOptions options = null)
viewState
ViewStateThe document view state.
options
SaveAsImageOptionsThe SaveAsImageOptions object.
Saves the page to a byte array in SVGZ format.
public byte[] ToSvgz(SaveAsImageOptions options = null)
options
SaveAsImageOptionsThe SaveAsImageOptions object.