Class PrintOutPDFBase
Report preocessing driver, capable of generate Adobe PDF files
Implements
Inherited Members
Namespace: Reportman.Drawing
Assembly: Reportman.Drawing.dll
Syntax
public abstract class PrintOutPDFBase : PrintOut, IDisposable
Constructors
PrintOutPDFBase()
Constructo and initialization
Declaration
public PrintOutPDFBase()
Fields
CalculateOnly
The pdf is not generated but all size calculations are done
Declaration
public bool CalculateOnly
Field Value
| Type | Description |
|---|---|
| bool |
Compressed
The resulting PDF file can be compressed to reduce the file size
Declaration
public bool Compressed
Field Value
| Type | Description |
|---|---|
| bool |
FileName
Destination file where the Adobe PDF format file will be saved
Declaration
public string FileName
Field Value
| Type | Description |
|---|---|
| string |
Properties
LineInfo
Declaration
public List<LineInfo> LineInfo { get; }
Property Value
| Type | Description |
|---|---|
| List<LineInfo> |
PDFConformance
Declaration
public PDFConformanceType PDFConformance { get; set; }
Property Value
| Type | Description |
|---|---|
| PDFConformanceType |
PDFStream
In memory stream containing the Adobe PDF format file
Declaration
public Stream PDFStream { get; }
Property Value
| Type | Description |
|---|---|
| Stream |
Methods
Dispose()
Free memory consumed by graphics resources
Declaration
public override void Dispose()
Overrides
DrawObject(MetaPage, MetaObject)
Draw an object to the PDF file
Declaration
public void DrawObject(MetaPage page, MetaObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaPage | page | MetaPage conatining the object |
| MetaObject | obj | Object to be drawn |
DrawPage(MetaFile, MetaPage)
Draw all objects of the page to current PDF file page
Declaration
public override void DrawPage(MetaFile meta, MetaPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile containing the page |
| MetaPage | page | MetaPage to be drawn |
Overrides
EndDocument(MetaFile)
Finalization
Declaration
public override void EndDocument(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile to process |
Overrides
GetBitmapInfoProvider()
Declaration
public abstract IBitmapInfoProvider GetBitmapInfoProvider()
Returns
| Type | Description |
|---|---|
| IBitmapInfoProvider |
GetFontInfoProvider()
Declaration
public abstract FontInfoProvider GetFontInfoProvider()
Returns
| Type | Description |
|---|---|
| FontInfoProvider |
GetPageSize(out int)
Get page size
Declaration
public override Point GetPageSize(out int indexqt)
Parameters
| Type | Name | Description |
|---|---|---|
| int | indexqt | Output parameters, index for PageSizeArray |
Returns
| Type | Description |
|---|---|
| Point | Page size in twips |
Overrides
GraphicExtent(MemoryStream, Point, int)
Obtain graphic extent
Declaration
public override Point GraphicExtent(MemoryStream astream, Point extent, int dpi)
Parameters
| Type | Name | Description |
|---|---|---|
| MemoryStream | astream | Stream containing a bitmap or a Jpeg image |
| Point | extent | Initial bounding box |
| int | dpi | Resolution in Dots per inch of the image |
Returns
| Type | Description |
|---|---|
| Point | Size in twips of the image |
Overrides
NewDocument(MetaFile)
Initialization
Declaration
public override void NewDocument(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile to process |
Overrides
NewPage(MetaFile, MetaPage)
Creates a new page
Declaration
public override void NewPage(MetaFile meta, MetaPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | |
| MetaPage | page |
Overrides
Print(MetaFile)
Generate the PDF file in a single pass
Declaration
public override bool Print(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
SetOrientation(OrientationType)
Sets page orientation
Declaration
public override void SetOrientation(OrientationType PageOrientation)
Parameters
| Type | Name | Description |
|---|---|---|
| OrientationType | PageOrientation | Input value |
Overrides
SetPageSize(PageSizeDetail)
Sets page size
Declaration
public override Point SetPageSize(PageSizeDetail psize)
Parameters
| Type | Name | Description |
|---|---|---|
| PageSizeDetail | psize | Input value |
Returns
| Type | Description |
|---|---|
| Point | Size in twips of the page |
Overrides
TextExtent(TextObjectStruct, Point)
Obtain text extent
Declaration
public override Point TextExtent(TextObjectStruct aobj, Point extent)
Parameters
| Type | Name | Description |
|---|---|---|
| TextObjectStruct | aobj | |
| Point | extent |
Returns
| Type | Description |
|---|---|
| Point |
Overrides
TextExtentLineInfo(TextObjectStruct, Point)
Obtain text extent, fills LineInfo
Declaration
public Point TextExtentLineInfo(TextObjectStruct aobj, Point extent)
Parameters
| Type | Name | Description |
|---|---|---|
| TextObjectStruct | aobj | |
| Point | extent |
Returns
| Type | Description |
|---|---|
| Point |
WordExtent(string, Point)
Obtain word extent using current settings
Declaration
public Point WordExtent(string text, Point extent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | |
| Point | extent |
Returns
| Type | Description |
|---|---|
| Point |