SKDocument.CreatePdf Method

Definition

Overloads

CreatePdf(SKWStream, SKDocumentPdfMetadata, Single)
Obsolete.

Create a PDF-backed document with the specified metadata, writing the results into a stream.

CreatePdf(String, Single)

Create a PDF-backed document, writing the results into a file.

CreatePdf(Stream, Single)

Create a PDF-backed document, writing the results into a stream.

CreatePdf(Stream, SKDocumentPdfMetadata)

Create a PDF-backed document with the specified metadata, writing the results into a stream.

CreatePdf(String, SKDocumentPdfMetadata)

Create a PDF-backed document with the specified metadata, writing the results into a file.

CreatePdf(SKWStream, SKDocumentPdfMetadata)

Create a PDF-backed document, writing the results into a stream.

CreatePdf(String)

Create a PDF-backed document, writing the results into a file.

CreatePdf(Stream)

Create a PDF-backed document, writing the results into a stream.

CreatePdf(SKWStream)

Create a PDF-backed document, writing the results into a stream.

CreatePdf(SKWStream, Single)

Create a PDF-backed document, writing the results into a stream.

CreatePdf(SKWStream, SKDocumentPdfMetadata, Single)

Caution

Use CreatePdf(SKWStream, SKDocumentPdfMetadata) instead.

Create a PDF-backed document with the specified metadata, writing the results into a stream.

public static SkiaSharp.SKDocument CreatePdf (SkiaSharp.SKWStream stream, SkiaSharp.SKDocumentPdfMetadata metadata, float dpi = 72);
[System.Obsolete("Use CreatePdf(SKWStream, SKDocumentPdfMetadata) instead.")]
public static SkiaSharp.SKDocument CreatePdf (SkiaSharp.SKWStream stream, SkiaSharp.SKDocumentPdfMetadata metadata, float dpi);

Parameters

stream
SKWStream

The stream to write to.

metadata
SKDocumentPdfMetadata

The document metadata to include.

dpi
Single

The DPI (pixels-per-inch) at which features without native PDF support will be rasterized.

Returns

Returns the new PDF-backed document.

Attributes

Remarks

PDF pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.

Applies to

CreatePdf(String, Single)

Create a PDF-backed document, writing the results into a file.

public static SkiaSharp.SKDocument CreatePdf (string path, float dpi = 72);
public static SkiaSharp.SKDocument CreatePdf (string path, float dpi);

Parameters

path
String

The path of the file to write to.

dpi
Single

The DPI (pixels-per-inch) at which features without native PDF support will be rasterized.

Returns

Returns the new PDF-backed document.

Remarks

PDF pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.

Applies to

CreatePdf(Stream, Single)

Create a PDF-backed document, writing the results into a stream.

public static SkiaSharp.SKDocument CreatePdf (System.IO.Stream stream, float dpi);

Parameters

stream
Stream

The stream to write to.

dpi
Single

The DPI (pixels-per-inch) at which features without native PDF support will be rasterized.

Returns

Returns the new PDF-backed document.

Remarks

PDF pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.

Applies to

CreatePdf(Stream, SKDocumentPdfMetadata)

Create a PDF-backed document with the specified metadata, writing the results into a stream.

public static SkiaSharp.SKDocument CreatePdf (System.IO.Stream stream, SkiaSharp.SKDocumentPdfMetadata metadata);

Parameters

stream
Stream

The stream to write to.

metadata
SKDocumentPdfMetadata

The document metadata to include.

Returns

Returns the new PDF-backed document.

Applies to

CreatePdf(String, SKDocumentPdfMetadata)

Create a PDF-backed document with the specified metadata, writing the results into a file.

public static SkiaSharp.SKDocument CreatePdf (string path, SkiaSharp.SKDocumentPdfMetadata metadata);

Parameters

path
String

The path of the file to write to.

metadata
SKDocumentPdfMetadata

The document metadata to include.

Returns

Returns the new PDF-backed document.

Applies to

CreatePdf(SKWStream, SKDocumentPdfMetadata)

Create a PDF-backed document, writing the results into a stream.

public static SkiaSharp.SKDocument CreatePdf (SkiaSharp.SKWStream stream, SkiaSharp.SKDocumentPdfMetadata metadata);

Parameters

stream
SKWStream

The stream to write to.

metadata
SKDocumentPdfMetadata

The document metadata to include.

Returns

Returns the new PDF-backed document.

Applies to

CreatePdf(String)

Create a PDF-backed document, writing the results into a file.

public static SkiaSharp.SKDocument CreatePdf (string path);

Parameters

path
String

The path of the file to write to.

Returns

Returns the new PDF-backed document.

Applies to

CreatePdf(Stream)

Create a PDF-backed document, writing the results into a stream.

public static SkiaSharp.SKDocument CreatePdf (System.IO.Stream stream);

Parameters

stream
Stream

The stream to write to.

Returns

Returns the new PDF-backed document.

Applies to

CreatePdf(SKWStream)

Create a PDF-backed document, writing the results into a stream.

public static SkiaSharp.SKDocument CreatePdf (SkiaSharp.SKWStream stream);

Parameters

stream
SKWStream

The stream to write to.

Returns

Returns the new PDF-backed document.

Applies to

CreatePdf(SKWStream, Single)

Create a PDF-backed document, writing the results into a stream.

public static SkiaSharp.SKDocument CreatePdf (SkiaSharp.SKWStream stream, float dpi = 72);
public static SkiaSharp.SKDocument CreatePdf (SkiaSharp.SKWStream stream, float dpi);

Parameters

stream
SKWStream

The stream to write to.

dpi
Single

The DPI (pixels-per-inch) at which features without native PDF support will be rasterized.

Returns

Returns the new PDF-backed document.

Remarks

PDF pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.

Applies to