Table of Contents

Class Content

Namespace
PDFjet.NET
Assembly
PDFjet.dll

Reads the contents of files and streams.

public class Content
Inheritance
Content
Inherited Members

Methods

GetFromStream(Stream)

public static byte[] GetFromStream(Stream stream)

Parameters

stream Stream

Returns

byte[]

GetFromStream(Stream, int)

Returns all the bytes read from the stream, reading bufferSize bytes at a time.

public static byte[] GetFromStream(Stream stream, int bufferSize)

Parameters

stream Stream
bufferSize int

Returns

byte[]

LinesOfTextFile(string)

Returns all the bytes read from the stream.

public static List<string> LinesOfTextFile(string fileName)

Parameters

fileName string

Returns

List<string>

OfBinaryFile(string)

Returns the contents of the specified file as bytes.

public static byte[] OfBinaryFile(string fileName)

Parameters

fileName string

Returns

byte[]

OfTextFile(string)

Returns the contents of the specified text file, which is read as UTF-8.

public static string OfTextFile(string fileName)

Parameters

fileName string

Returns

string