PdfARenderer Class |
Namespace: Atalasoft.PdfDoc.Generating.Rendering
The PdfARenderer type exposes the following members.
Name | Description | |
---|---|---|
PdfARenderer |
Initializes a new instance of the PdfARenderer class.
|
Name | Description | |
---|---|---|
CmykColorSpace |
Gets or sets the CMYK color space that will be provided to each CMYK image.
| |
ConvertIncompatiblePagesToImages |
Gets or sets a value indicating whether the page that cannot be converted to PDF/A,
will be converted to the image, instead of throwing PdfAException.
ImageExtractor is required to use this flag.
| |
CurrentPage | (Inherited from PdfRenderer.) | |
DefaultRgbColorSpace |
Gets default RGB color space resource.
| |
ErrorOccurred |
Gets or sets a value indicating whether an error occurred in the process of rendering a page. ErrorOccurred will be cleared
before rendering begins.
(Inherited from DocumentRenderer.) | |
IgnoreUnsupportedAnnotsAndActions |
Gets or sets a value indicating whether annotations and actions that not supported by the PDF/A-1b standard
will be ignored, instead of throwing PdfAException.
| |
ImageExtractor |
Gets or sets the image extractor.
| |
RgbColorSpace |
Gets or sets the RGB color space that will be used in OutputIntents of PDF/A document.
If value is not specified, DefaultRgbColorSpace will be used.
| |
SaveOptions | (Inherited from PdfRenderer.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LLBeginDoc | (Overrides PdfRendererLLBeginDoc(PdfGeneratedDocument).) | |
LLBeginPage |
Low Level the begin page.
(Inherited from PdfRenderer.) | |
LLEndDoc | (Overrides PdfRendererLLEndDoc(PdfGeneratedDocument).) | |
LLEndPage |
This method represents the Low-Level implementation of EndPage. A subclass of DocumentRenderer would implement this
method to do any processing to finish up after a page has been rendered. For example, a particular instance might need to
remove temporary files created earlier. The default implementation does nothing.
(Inherited from PdfRenderer.) | |
LLGenerate | (Overrides PdfRendererLLGenerate(PdfGeneratedDocument, BasePage, PdfPageRenderer).) | |
MakePageRenderer |
Makes the page renderer.
(Inherited from PdfRenderer.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDocumentProgress |
Raises the [E:DocumentProgress] event.
(Inherited from DocumentRenderer.) | |
OnStreamlessFontFound | ||
PreprocessPageResources | (Overrides PdfRendererPreprocessPageResources(PdfPageRenderer, PdfGeneratedPage).) | |
Render(PdfGeneratedDocument) |
Renders the entire PdfGeneratedDocument.
(Inherited from DocumentRenderer.) | |
Render(PdfGeneratedDocument, ICollectionBasePage) |
Renders a subset of pages from the specified document. This method is intended to allow the rendering of a subset
of pages from a document. If pages is an empty enumeration, the output is undefined.
(Inherited from DocumentRenderer.) | |
RenderBookmarkTree | (Inherited from PdfRenderer.) | |
RenderForm | (Overrides PdfRendererRenderForm(PdfGeneratedDocument, Boolean).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
DocumentProgress |
Occurs when progress is made in the overall process of rendering the document. This event is fired when rendering starts, when rendering
completes, when each page starts and when each page completes. If the document contains no pages, then precisely one DocumentProgress
event will be fired.
(Inherited from DocumentRenderer.) | |
StreamlessFontFound |
Occurs when not embedded font will be found.
|
Exception | Condition |
---|---|
PdfAActionException | Occurs, when input document contains actions unsupported by PDF/A. |
PdfAAnnotationException | Occurs, when input document contains annotations unsupported by PDF/A, or when annotation appearance doesn't complaint PDF/A. |
PdfAException | General error. See the exception message for details. |
PdfAImageAndColorSpaceException | Occurs, when input PDF document contains content with CMYK colorspace and property CmykColorSpace is not set. |
PdfAFontException | Occurs, when PdfARenderer can't create PDF/A complaint document because of issues with fonts. See the details in exception message. |
public MemoryStream SaveToMemoryStream(PdfGeneratedDocument doc) { MemoryStream stm = new MemoryStream(); PdfARenderer renderer = new PdfARenderer(stm); renderer.Render(doc); return stm; }