Search Results for

    Show / Hide Table of Contents

    Class PrintOutPDFBase

    Report preocessing driver, capable of generate Adobe PDF files

    Inheritance
    object
    PrintOut
    PrintOutPDFBase
    PrintOutPDFFreeType
    PrintOutPDF
    Implements
    IDisposable
    Inherited Members
    PrintOut.DefaultPrinterName
    PrintOut.ForcePrinterName
    PrintOut.Previewing
    PrintOut.PageSizeArray
    PrintOut.CurrentMetafile
    PrintOut.PRINTOUT_MAX_PAGES
    PrintOut.FromPage
    PrintOut.ToPage
    PrintOut.Copies
    PrintOut.FOrientation
    PrintOut.EmptyReportThrowException
    PrintOut.NoData
    PrintOut.DrawFound
    PrintOut.PageSizeName(int)
    PrintOut.EndPage(MetaFile)
    PrintOut.SelectPrinter(PrinterSelectType)
    PrintOut.DrawChart(Series, MetaFile, int, int, object)
    PrintOut.ProcessNoDataToPrint()
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public abstract class PrintOutPDFBase : PrintOut, IDisposable

    Constructors

    View Source

    PrintOutPDFBase()

    Constructo and initialization

    Declaration
    public PrintOutPDFBase()

    Fields

    View Source

    CalculateOnly

    The pdf is not generated but all size calculations are done

    Declaration
    public bool CalculateOnly
    Field Value
    Type Description
    bool
    View Source

    Compressed

    The resulting PDF file can be compressed to reduce the file size

    Declaration
    public bool Compressed
    Field Value
    Type Description
    bool
    View Source

    FileName

    Destination file where the Adobe PDF format file will be saved

    Declaration
    public string FileName
    Field Value
    Type Description
    string

    Properties

    View Source

    ForceComplexShaping

    Routes to PDFCanvas.ForceComplexShaping. When true, TextExtent/TextExtentLineInfo always populate LineInfo.Glyphs by going through the DirectWrite/HarfBuzz shaper, even for plain (non-HTML, non-RTL) text. Required for callers that need glyph-indexed rendering (e.g. ExtTextOutW with ETO_GLYPH_INDEX) on plain text.

    Declaration
    public bool ForceComplexShaping { get; set; }
    Property Value
    Type Description
    bool
    View Source

    LineInfo

    Declaration
    public List<LineInfo> LineInfo { get; }
    Property Value
    Type Description
    List<LineInfo>
    View Source

    PDFConformance

    Declaration
    public PDFConformanceType PDFConformance { get; set; }
    Property Value
    Type Description
    PDFConformanceType
    View Source

    PDFStream

    In memory stream containing the Adobe PDF format file

    Declaration
    public Stream PDFStream { get; }
    Property Value
    Type Description
    Stream

    Methods

    View Source

    Dispose()

    Free memory consumed by graphics resources

    Declaration
    public override void Dispose()
    Overrides
    PrintOut.Dispose()
    View Source

    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

    View Source

    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
    PrintOut.DrawPage(MetaFile, MetaPage)
    View Source

    EndDocument(MetaFile)

    Finalization

    Declaration
    public override void EndDocument(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta

    MetaFile to process

    Overrides
    PrintOut.EndDocument(MetaFile)
    View Source

    GetBitmapInfoProvider()

    Declaration
    public abstract IBitmapInfoProvider GetBitmapInfoProvider()
    Returns
    Type Description
    IBitmapInfoProvider
    View Source

    GetFontInfoProvider()

    Declaration
    public abstract FontInfoProvider GetFontInfoProvider()
    Returns
    Type Description
    FontInfoProvider
    View Source

    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
    PrintOut.GetPageSize(out int)
    View Source

    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
    PrintOut.GraphicExtent(MemoryStream, Point, int)
    View Source

    NewDocument(MetaFile)

    Initialization

    Declaration
    public override void NewDocument(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta

    MetaFile to process

    Overrides
    PrintOut.NewDocument(MetaFile)
    View Source

    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
    PrintOut.NewPage(MetaFile, MetaPage)
    View Source

    PreparePrint(MetaFile)

    Layout (BeginPrint) runs before NewDocument, so the shaper must be forced here too: otherwise line breaks would be computed with the simple metrics and then drawn with the shaped ones.

    Declaration
    public override bool PreparePrint(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta
    Returns
    Type Description
    bool
    Overrides
    PrintOut.PreparePrint(MetaFile)
    View Source

    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
    PrintOut.Print(MetaFile)
    View Source

    SetOrientation(OrientationType)

    Sets page orientation

    Declaration
    public override void SetOrientation(OrientationType PageOrientation)
    Parameters
    Type Name Description
    OrientationType PageOrientation

    Input value

    Overrides
    PrintOut.SetOrientation(OrientationType)
    View Source

    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
    PrintOut.SetPageSize(PageSizeDetail)
    View Source

    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
    PrintOut.TextExtent(TextObjectStruct, Point)
    View Source

    TextExtentLineInfo(TextObjectStruct, Point)

    Obtain text extent, fills LineInfo (original signature for backward compatibility)

    Declaration
    public Point TextExtentLineInfo(TextObjectStruct aobj, Point extent)
    Parameters
    Type Name Description
    TextObjectStruct aobj
    Point extent
    Returns
    Type Description
    Point
    View Source

    TextExtentLineInfo(TextObjectStruct, ref Point)

    Obtain text extent and return LineInfo list directly

    Declaration
    public override List<LineInfo> TextExtentLineInfo(TextObjectStruct aobj, ref Point extent)
    Parameters
    Type Name Description
    TextObjectStruct aobj
    Point extent
    Returns
    Type Description
    List<LineInfo>
    Overrides
    PrintOut.TextExtentLineInfo(TextObjectStruct, ref Point)
    View Source

    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
    View Source

    WordExtentLineInfo(string, ref Point, bool)

    Same measurement WordExtent performs, but returning the shaped LineInfo so the caller can reproduce the word glyph by glyph (glyph-exact justified printing). Uses the current canvas font, set by a previous TextExtentLineInfo call.

    Declaration
    public List<LineInfo> WordExtentLineInfo(string text, ref Point extent, bool rightToLeft = false)
    Parameters
    Type Name Description
    string text
    Point extent
    bool rightToLeft
    Returns
    Type Description
    List<LineInfo>

    Implements

    IDisposable
    • View Source
    In this article
    Back to top Generated by DocFX