[]
        
(Showing Draft Content)

C1.Pdf.C1PdfDocument.DrawFile

DrawFile Method

DrawFile(string, RectangleF, float)

Draws a file content to PDF document.

Declaration
public void DrawFile(string fileName, RectangleF rc, float offset = 0)
Parameters
Type Name Description
string fileName

The full file path.

RectangleF rc

RectangleF structure that specifies the location of the drawn text, in points from the top left corner of the page.

float offset

Offset of the first line to draw (usually the return value of a previous call to DrawStringHtml).

DrawFile(Stream, string, RectangleF, float)

Draws a stream content to PDF document.

Declaration
public void DrawFile(Stream stream, string ext, RectangleF rc, float offset = 0)
Parameters
Type Name Description
Stream stream

The stream with context data.

string ext

The file extension for content definitions.

RectangleF rc

RectangleF structure that specifies the location of the drawn context, in points from the top left corner of the page.

float offset

Offset of the first line to draw (usually the return value of a previous call to DrawStringHtml).